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
4294ecaf
Commit
4294ecaf
authored
Dec 10, 2015
by
yumaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复了rule 和 role 的detail 页面
parent
b0f2b346
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
119 deletions
+105
-119
perm_role_detail.html
templates/jperm/perm_role_detail.html
+55
-65
perm_rule_detail.html
templates/jperm/perm_rule_detail.html
+50
-54
No files found.
templates/jperm/perm_role_detail.html
View file @
4294ecaf
...
@@ -30,21 +30,15 @@
...
@@ -30,21 +30,15 @@
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div>
<div>
<div
class=
"text-left"
>
<div
class=
"text-left"
>
<table
class=
"table table-striped"
id=
"ugedit"
>
<table
class=
"table"
id=
"ugedit"
>
<thead>
<td
class=
"text-navy text-left"
>
时间
</td>
<tr>
<td
class=
"text-navy text-right"
>
名称
</td>
<th
class=
"text-center"
>
时间
</th>
<th
class=
"text-center"
>
名称
</th>
</tr>
</thead>
<tbody>
{% for rule in rules %}
{% for rule in rules %}
<tr
class=
"gradeX"
>
<tr
class=
"gradeX"
>
<td
class=
"text-
center
"
>
{{ rule.date_added | date:"Y-m-d H:i:s"}}
</td>
<td
class=
"text-
left
"
>
{{ rule.date_added | date:"Y-m-d H:i:s"}}
</td>
<td
class=
"text-
center
"
>
<a
href=
"/jperm/perm_rule_detail/?id={{ rule.id }}"
>
{{ rule.name }}
</a>
</td>
<td
class=
"text-
right
"
>
<a
href=
"/jperm/perm_rule_detail/?id={{ rule.id }}"
>
{{ rule.name }}
</a>
</td>
</tr>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -74,38 +68,31 @@
...
@@ -74,38 +68,31 @@
</div>
</div>
</div>
</div>
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div
class=
"text-center"
style=
"float: left;"
>
<div
class=
"text-center"
>
<table
class=
"table table-striped"
id=
"ugedit"
>
<table
class=
"table"
id=
"agedit"
>
<thead>
<td
class=
"text-navy text-left"
>
用户
</td>
<tr>
<td
class=
"text-navy text-right"
>
用户组
</td>
<th
class=
"text-center"
>
用户
</th>
<tr>
</tr>
<td>
</thead>
<table
class=
"table progress-striped text-left"
>
{% for user in users %}
<tbody>
<tr
class=
"gradeX"
>
{% for user in users %}
<td>
<a
href=
"/jasset/asset_detail/?id={{ user.id }}"
>
{{ user.name }}
</a>
</td>
<tr
class=
"gradeX"
>
</tr>
<td
class=
"text-center"
>
<a
href=
"/juser/user_detail/?id={{ user.id }}"
>
{{ user.name }}
</a>
</td>
{% endfor %}
</tr>
</table>
{% endfor %}
</td>
</tbody>
<td>
</table>
<table
class=
"table progress-striped text-right"
>
</div>
{% for group in user_groups %}
<div
class=
"text-center"
style=
"float: right;"
>
<tr
class=
"gradeX-"
>
<table
class=
"table table-striped"
id=
"ugedit"
>
<td>
<a
href=
"/jasset/asset_list/?group_id={{ group.id }}"
>
{{ group.name }}
</a>
</td>
<thead>
</tr>
<tr>
{% endfor %}
<th
class=
"text-center"
>
用户组
</th>
</table>
</tr>
</td>
</thead>
<tbody>
</tr>
{% for group in user_groups %}
<tr
class=
"gradeX"
>
<td
class=
"text-center"
>
<a
href=
"/juser/user_list/?gid={{ group.id }}"
>
{{ group.name }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -114,7 +101,7 @@
...
@@ -114,7 +101,7 @@
<div
class=
"col-sm-4"
>
<div
class=
"col-sm-4"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<div
class=
"ibox-title"
>
<span
class=
"label label-primary"
><b>
授权主机/主机组
</b></span>
<span
class=
"label label-primary"
><b>
授权主机
组
/主机组
</b></span>
<div
class=
"ibox-tools"
>
<div
class=
"ibox-tools"
>
<a
class=
"collapse-link"
>
<a
class=
"collapse-link"
>
<i
class=
"fa fa-chevron-up"
></i>
<i
class=
"fa fa-chevron-up"
></i>
...
@@ -134,28 +121,31 @@
...
@@ -134,28 +121,31 @@
</div>
</div>
</div>
</div>
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div
class=
"text-center"
style=
"float:left;"
>
<div
class=
"text-center"
>
<table
class=
"table table-striped"
id=
"agedit"
>
<table
class=
"table"
id=
"agedit"
>
<tr>
<td
class=
"text-navy text-left"
>
主机
</td>
<th
class=
"text-center"
>
主机
</th>
<td
class=
"text-navy text-right"
>
主机组
</td>
</tr>
<tr>
{% for asset in assets %}
<td>
<tr
class=
"gradeX"
>
<table
class=
"table progress-striped text-left"
>
<td
class=
"text-center"
>
<a
href=
"/jasset/asset_detail/?id={{ asset.id }}"
>
{{ asset.ip }}
</a>
</td>
{% for asset in assets %}
</tr>
<tr
class=
"gradeX"
>
{% endfor %}
<td>
<a
href=
"/jasset/asset_detail/?id={{ asset.id }}"
>
{{ asset.ip }}
</a>
</td>
</table>
</tr>
</div>
{% endfor %}
<div
class=
"text-center"
style=
"float:right;"
>
</table>
<table
class=
"table table-striped"
id=
"agedit"
>
</td>
<tr>
<td>
<th
class=
"text-center"
>
主机组
</th>
<table
class=
"table progress-striped text-right"
>
</tr>
{% for group in asset_groups %}
{% for group in asset_groups %}
<tr
class=
"gradeX-"
>
<tr
class=
"gradeX"
>
<td>
<a
href=
"/jasset/asset_list/?group_id={{ group.id }}"
>
{{ group.name }}
</a>
</td>
<td
class=
"text-center"
>
<a
href=
"/jasset/asset_list/?group_id={{ group.id }}"
>
{{ group.name }}
</a>
</td>
</tr>
</tr>
{% endfor %}
{% endfor %}
</table>
</td>
</tr>
</table>
</table>
</div>
</div>
</div>
</div>
...
...
templates/jperm/perm_rule_detail.html
View file @
4294ecaf
...
@@ -83,38 +83,31 @@
...
@@ -83,38 +83,31 @@
</div>
</div>
</div>
</div>
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div
class=
"text-center"
style=
"float: left;"
>
<div
class=
"text-center"
>
<table
class=
"table table-striped"
id=
"ugedit"
>
<table
class=
"table"
id=
"agedit"
>
<thead>
<td
class=
"text-navy text-left"
>
用户
</td>
<tr>
<td
class=
"text-navy text-right"
>
用户组
</td>
<th
class=
"text-center"
>
用户
</th>
<tr>
</tr>
<td>
</thead>
<table
class=
"table progress-striped text-left"
>
{% for user in users %}
<tbody>
<tr
class=
"gradeX"
>
{% for user in users %}
<td>
<a
href=
"/jasset/asset_detail/?id={{ user.id }}"
>
{{ user.name }}
</a>
</td>
<tr
class=
"gradeX"
>
</tr>
<td
class=
"text-center"
>
<a
href=
"/juser/user_detail/?id={{ user.id }}"
>
{{ user.name }}
</a>
</td>
{% endfor %}
</tr>
</table>
{% endfor %}
</td>
</tbody>
<td>
</table>
<table
class=
"table progress-striped text-right"
>
</div>
{% for group in user_groups %}
<div
class=
"text-center"
style=
"float: right;"
>
<tr
class=
"gradeX-"
>
<table
class=
"table table-striped"
id=
"ugedit"
>
<td>
<a
href=
"/jasset/asset_list/?group_id={{ group.id }}"
>
{{ group.name }}
</a>
</td>
<thead>
</tr>
<tr>
{% endfor %}
<th
class=
"text-center"
>
用户组
</th>
</table>
</tr>
</td>
</thead>
<tbody>
</tr>
{% for group in user_groups %}
<tr
class=
"gradeX"
>
<td
class=
"text-center"
>
<a
href=
"/juser/user_list/?gid={{ group.id }}"
>
{{ group.name }}
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -123,7 +116,7 @@
...
@@ -123,7 +116,7 @@
<div
class=
"col-sm-4"
>
<div
class=
"col-sm-4"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<div
class=
"ibox-title"
>
<span
class=
"label label-primary"
><b>
授权主机/主机组
</b></span>
<span
class=
"label label-primary"
><b>
授权主机
组
/主机组
</b></span>
<div
class=
"ibox-tools"
>
<div
class=
"ibox-tools"
>
<a
class=
"collapse-link"
>
<a
class=
"collapse-link"
>
<i
class=
"fa fa-chevron-up"
></i>
<i
class=
"fa fa-chevron-up"
></i>
...
@@ -143,28 +136,31 @@
...
@@ -143,28 +136,31 @@
</div>
</div>
</div>
</div>
<div
class=
"ibox-content"
>
<div
class=
"ibox-content"
>
<div
class=
"text-center"
style=
"float:left;"
>
<div
class=
"text-center"
>
<table
class=
"table table-striped"
id=
"agedit"
>
<table
class=
"table"
id=
"agedit"
>
<tr>
<td
class=
"text-navy text-left"
>
主机
</td>
<th
class=
"text-center"
>
主机
</th>
<td
class=
"text-navy text-right"
>
主机组
</td>
</tr>
<tr>
{% for asset in assets %}
<td>
<tr
class=
"gradeX"
>
<table
class=
"table progress-striped text-left"
>
<td
class=
"text-center"
>
<a
href=
"/jasset/asset_detail/?id={{ asset.id }}"
>
{{ asset.ip }}
</a>
</td>
{% for asset in assets %}
</tr>
<tr
class=
"gradeX"
>
{% endfor %}
<td>
<a
href=
"/jasset/asset_detail/?id={{ asset.id }}"
>
{{ asset.ip }}
</a>
</td>
</table>
</tr>
</div>
{% endfor %}
<div
class=
"text-center"
style=
"float:right;"
>
</table>
<table
class=
"table table-striped"
id=
"agedit"
>
</td>
<tr>
<td>
<th
class=
"text-center"
>
主机组
</th>
<table
class=
"table progress-striped text-right"
>
</tr>
{% for group in asset_groups %}
{% for group in asset_groups %}
<tr
class=
"gradeX-"
>
<tr
class=
"gradeX"
>
<td>
<a
href=
"/jasset/asset_list/?group_id={{ group.id }}"
>
{{ group.name }}
</a>
</td>
<td
class=
"text-center"
>
<a
href=
"/jasset/asset_list/?group_id={{ group.id }}"
>
{{ group.name }}
</a>
</td>
</tr>
</tr>
{% endfor %}
{% endfor %}
</table>
</td>
</tr>
</table>
</table>
</div>
</div>
</div>
</div>
...
...
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