Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hunter-ht.cn
Overview
Overview
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
刘莹莹
hunter-ht.cn
Commits
d31c66e2
Commit
d31c66e2
authored
May 12, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
挪动积分
parent
2e9ee869
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
admin.html
hunter/templates/hunter/admin.html
+2
-2
urls.py
hunter/urls.py
+2
-1
views.py
hunter/views.py
+3
-3
No files found.
hunter/templates/hunter/admin.html
View file @
d31c66e2
...
...
@@ -5,7 +5,7 @@
<title>
Title
</title>
</head>
<body>
<div
id=
"scoreRecords"
class=
"userlist"
style=
"display: none;"
>
<div
id=
"scoreRecords"
class=
"userlist"
>
<div
id=
"addScoreForm"
>
<div
style=
"margin-left:-150px;"
>
...
...
@@ -56,7 +56,7 @@
</li>
<li>
{{ user.scoreUsed }}
</li>
<li></li>
<li
style=
"display: none;"
>
{{ user.identity }}
</li>
<li
>
{{ user.identity }}
</li>
</ul>
{% endfor %}
</div>
...
...
hunter/urls.py
View file @
d31c66e2
...
...
@@ -30,5 +30,5 @@ urlpatterns = [
path
(
'edit/cve/'
,
views
.
edit_cve
,
name
=
'edit_cve'
),
path
(
'add/article/'
,
views
.
add_article
,
name
=
'add_article'
),
path
(
'
/
ht/admin/'
,
views
.
admin
,
name
=
'admin'
),
path
(
'ht/admin/'
,
views
.
admin
,
name
=
'admin'
),
]
\ No newline at end of file
hunter/views.py
View file @
d31c66e2
...
...
@@ -724,7 +724,7 @@ def admin(request):
else
:
user
.
identity
=
'管理员'
if
ScoreRecords
.
objects
.
last
()
is
None
:
records
=
0
;
records
=
0
else
:
records
=
ScoreRecords
.
objects
.
all
()
;
return
render
(
request
,
"admin.html"
,
locals
())
records
=
ScoreRecords
.
objects
.
all
()
return
render
(
request
,
"
hunter/
admin.html"
,
locals
())
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