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
166ccf8b
Commit
166ccf8b
authored
Aug 06, 2019
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature] 应用管理:数据库应用添加翻译
parent
573f9a45
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
database.py
apps/applications/models/database.py
+1
-1
database_list.html
apps/applications/templates/applications/database_list.html
+1
-1
database.py
apps/applications/views/database.py
+1
-1
django.po
apps/locale/zh/LC_MESSAGES/django.po
+0
-0
No files found.
apps/applications/models/database.py
View file @
166ccf8b
...
...
@@ -52,7 +52,7 @@ class Database(OrgModelMixin):
max_length
=
128
,
null
=
True
,
verbose_name
=
_
(
'Created by'
)
)
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
verbose_name
=
_
(
'Date
C
reated'
)
auto_now_add
=
True
,
verbose_name
=
_
(
'Date
c
reated'
)
)
date_updated
=
models
.
DateTimeField
(
auto_now
=
True
,
verbose_name
=
_
(
'Date updated'
)
...
...
apps/applications/templates/applications/database_list.html
View file @
166ccf8b
...
...
@@ -3,7 +3,7 @@
{% block table_search %}{% endblock %}
{% block table_container %}
<div
class=
"uc pull-left m-r-5"
>
<a
href=
"{% url 'applications:database-create' %}"
class=
"btn btn-sm btn-primary"
>
{% trans "Create
D
atabase" %}
</a>
<a
href=
"{% url 'applications:database-create' %}"
class=
"btn btn-sm btn-primary"
>
{% trans "Create
d
atabase" %}
</a>
</div>
<table
class=
"table table-striped table-bordered table-hover "
id=
"database_list_table"
>
<thead>
...
...
apps/applications/views/database.py
View file @
166ccf8b
...
...
@@ -43,7 +43,7 @@ class DatabaseCreateView(PermissionsMixin, SuccessMessageMixin, CreateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
{
'app'
:
_
(
'Applications'
),
'action'
:
_
(
'Create
D
atabase'
),
'action'
:
_
(
'Create
d
atabase'
),
'type'
:
'create'
,
}
kwargs
.
update
(
context
)
...
...
apps/locale/zh/LC_MESSAGES/django.po
View file @
166ccf8b
This diff is collapsed.
Click to expand it.
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