Browse Source

Signed-off-by: zry <admin@z-touhou.org>

zry 8 năm trước cách đây
mục cha
commit
f1112dcdb4
2 tập tin đã thay đổi với 9 bổ sung9 xóa
  1. 8 8
      templates/home/ajax.comment.html
  2. 1 1
      templates/home/post.bk.list.html

+ 8 - 8
templates/home/ajax.comment.html

@@ -31,15 +31,15 @@
 			发表于
 			&nbsp;
 			{{ i.time|date:"Y-m-d H:i:s" }}
+			{% if owner%}
+			<a role="button" class="btn btn-danger btn-xs" href="javascript:dellm('{{i.cmid}}');">删除</a>
+			{% if i.reviewed %}
+			<a role="button" class="btn btn-warning btn-xs" href="javascript:reviewedCancel('{{i.cmid}}');">取消审核</a>
+			{% else %}
+			<a role="button" class="btn btn-success btn-xs" href="javascript:reviewedOK('{{i.cmid}}');">审核通过</a>
+			{% endif %}
+			{% endif %}
 		</h5>
-		{% if owner%}
-		<a role="button" class="btn btn-danger btn-xs" href="javascript:dellm('{{i.cmid}}');">删除</a>
-		{% if i.reviewed %}
-		<a role="button" class="btn btn-warning btn-xs" href="javascript:reviewedCancel('{{i.cmid}}');">取消审核</a>
-		{% else %}
-		<a role="button" class="btn btn-success btn-xs" href="javascript:reviewedOK('{{i.cmid}}');">审核通过</a>
-		{% endif %}
-		{% endif %}
 		<blockquote>{{i.content|linebreaks}}</blockquote>
 	</li>
 	{% endfor %}

+ 1 - 1
templates/home/post.bk.list.html

@@ -28,7 +28,7 @@
 			<span class="glyphicon glyphicon-th-list"></span>
 			文章列表
 		</a>
-		{% url "pichublog_catadd" as pichublog_catadd %}
+		{% url "pichublog_postadd" as pichublog_catadd %}
 		<a class="btn btn-primary {%if request.path = pichublog_postadd %} active {% endif %}" href="{{ pichublog_catadd }}">
 			<span class="glyphicon glyphicon-plus"></span>
 			新建文章