Commit d31c66e2 by liuyingying

挪动积分

parent 2e9ee869
......@@ -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>
......
......@@ -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
......@@ -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())
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