Commit d31c66e2 by liuyingying

挪动积分

parent 2e9ee869
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<title>Title</title> <title>Title</title>
</head> </head>
<body> <body>
<div id="scoreRecords" class="userlist" style="display: none;"> <div id="scoreRecords" class="userlist">
<div id="addScoreForm" > <div id="addScoreForm" >
<div style="margin-left:-150px;"> <div style="margin-left:-150px;">
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</li> </li>
<li>{{ user.scoreUsed }}</li> <li>{{ user.scoreUsed }}</li>
<li></li> <li></li>
<li style="display: none;">{{ user.identity }}</li> <li >{{ user.identity }}</li>
</ul> </ul>
{% endfor %} {% endfor %}
</div> </div>
......
...@@ -30,5 +30,5 @@ urlpatterns = [ ...@@ -30,5 +30,5 @@ urlpatterns = [
path('edit/cve/', views.edit_cve, name='edit_cve'), path('edit/cve/', views.edit_cve, name='edit_cve'),
path('add/article/', views.add_article, name='add_article'), 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
...@@ -724,7 +724,7 @@ def admin(request): ...@@ -724,7 +724,7 @@ def admin(request):
else: else:
user.identity = '管理员' user.identity = '管理员'
if ScoreRecords.objects.last() is None: if ScoreRecords.objects.last() is None:
records=0; records=0
else: else:
records = ScoreRecords.objects.all(); records = ScoreRecords.objects.all()
return render(request,"admin.html",locals()) return render(request,"hunter/admin.html",locals())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment