Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
b5242070
Commit
b5242070
authored
Nov 03, 2014
by
guanghongwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 mytags位置
parent
5bc67eba
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
jumpserver.iml
.idea/jumpserver.iml
+1
-1
settings.py
webroot/AutoSa/AutoSa/settings.py
+1
-0
__init__.py
webroot/AutoSa/AutoSa/templatetags/__init__.py
+0
-0
mytags.py
webroot/AutoSa/AutoSa/templatetags/mytags.py
+1
-1
No files found.
.idea/jumpserver.iml
View file @
b5242070
...
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 2.7.
8 (C:\Python27\
python.exe)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 2.7.
6 (C:/Python27/
python.exe)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
...
...
webroot/AutoSa/AutoSa/settings.py
View file @
b5242070
...
...
@@ -48,6 +48,7 @@ INSTALLED_APPS = (
'django.contrib.staticfiles'
,
'UserManage'
,
'Assets'
,
'AutoSa'
,
#'RunCommand',
)
...
...
webroot/AutoSa/
UserManage
/templatetags/__init__.py
→
webroot/AutoSa/
AutoSa
/templatetags/__init__.py
View file @
b5242070
File moved
webroot/AutoSa/
UserManage
/templatetags/mytags.py
→
webroot/AutoSa/
AutoSa
/templatetags/mytags.py
View file @
b5242070
...
...
@@ -7,6 +7,6 @@ register = template.Library()
@register.filter
(
name
=
'stamp2str'
)
def
stamp2str
(
value
):
try
:
return
time
.
strftime
(
'
%
Y/
%
m/
%
d
%
H:
%
M:
%
S'
,
time
.
localtime
(
value
))
return
time
.
strftime
(
'
%
Y/
%
m/
%
d
%
H:
%
M:
%
S'
,
time
.
localtime
(
value
))
except
AttributeError
:
return
'0000/00/00 00:00:00'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment