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
fb525728
Commit
fb525728
authored
Jan 09, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查看属组.html
parent
9e329643
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
0 deletions
+77
-0
urls.py
juser/urls.py
+2
-0
views.py
juser/views.py
+8
-0
group_list.html
templates/juser/group_list.html
+67
-0
No files found.
juser/urls.py
View file @
fb525728
...
...
@@ -7,5 +7,7 @@ urlpatterns = patterns('juser.views',
# url(r'^blog/', include('blog.urls')),
(
r'^user_add/$'
,
'user_add'
),
(
r'^user_list/$'
,
'user_list'
),
(
r'^group_add/$'
,
'group_add'
),
(
r'^group_list/$'
,
'group_list'
),
)
juser/views.py
View file @
fb525728
...
...
@@ -43,6 +43,14 @@ def group_add(request):
'error'
:
error
,
'msg'
:
msg
})
def
group_list
(
request
):
return
render_to_response
(
'juser/group_list.html'
)
def
user_list
(
request
):
pass
def
user_add
(
request
):
return
render_to_response
(
'juser/user_add.html'
,
{
'header_title'
:
u'添加用户 | Add User'
,
'path1'
:
'juser'
,
'path2'
:
'user_add'
})
...
...
templates/juser/group_list.html
0 → 100644
View file @
fb525728
{% extends 'base.html' %}
{% block content %}
{% include 'nav_cat_bar.html' %}
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"row"
>
<div
class=
"col-lg-10"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5>
属组信息
<small>
show group info.
</small></h5>
<div
class=
"ibox-tools"
>
<a
class=
"collapse-link"
>
<i
class=
"fa fa-chevron-up"
></i>
</a>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"fa fa-wrench"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
<li><a
href=
"#"
>
未启用 1
</a>
</li>
<li><a
href=
"#"
>
未启用 2
</a>
</li>
</ul>
<a
class=
"close-link"
>
<i
class=
"fa fa-times"
></i>
</a>
</div>
</div>
<div
class=
"ibox-content"
style=
"display: block;"
>
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
#
</th>
<th>
Data
</th>
<th>
User
</th>
<th>
Value
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
1
</td>
<td><span
class=
"pie"
style=
"display: none;"
>
0.52,1.041
</span><svg
class=
"peity"
height=
"16"
width=
"16"
><path
d=
"M 8 8 L 8 0 A 8 8 0 0 1 14.933563796318165 11.990700825968545 Z"
fill=
"#1ab394"
></path><path
d=
"M 8 8 L 14.933563796318165 11.990700825968545 A 8 8 0 1 1 7.999999999999998 0 Z"
fill=
"#d7d7d7"
></path></svg></td>
<td>
Samantha
</td>
<td
class=
"text-navy"
>
<i
class=
"fa fa-level-up"
></i>
40%
</td>
</tr>
<tr>
<td>
2
</td>
<td><span
class=
"pie"
style=
"display: none;"
>
226,134
</span><svg
class=
"peity"
height=
"16"
width=
"16"
><path
d=
"M 8 8 L 8 0 A 8 8 0 1 1 2.2452815972907922 13.55726696367198 Z"
fill=
"#1ab394"
></path><path
d=
"M 8 8 L 2.2452815972907922 13.55726696367198 A 8 8 0 0 1 7.999999999999998 0 Z"
fill=
"#d7d7d7"
></path></svg></td>
<td>
Jacob
</td>
<td
class=
"text-warning"
>
<i
class=
"fa fa-level-down"
></i>
-20%
</td>
</tr>
<tr>
<td>
3
</td>
<td><span
class=
"pie"
style=
"display: none;"
>
0.52/1.561
</span><svg
class=
"peity"
height=
"16"
width=
"16"
><path
d=
"M 8 8 L 8 0 A 8 8 0 0 1 14.933563796318165 11.990700825968545 Z"
fill=
"#1ab394"
></path><path
d=
"M 8 8 L 14.933563796318165 11.990700825968545 A 8 8 0 1 1 7.999999999999998 0 Z"
fill=
"#d7d7d7"
></path></svg></td>
<td>
Damien
</td>
<td
class=
"text-navy"
>
<i
class=
"fa fa-level-up"
></i>
26%
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
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