mirror of
https://github.com/zmister2016/MrDoc.git
synced 2025-04-18 20:40:48 +08:00
修复Django2.1版本下文集页404的错误
This commit is contained in:
parent
35416d93e2
commit
7d8d1151ef
@ -53,7 +53,13 @@
|
||||
{% for doc in new_docs %}
|
||||
<div>
|
||||
<h3><a style="color:#333;" href="{% url 'doc' project.id doc.id %}">{{doc.name}}</a></h3>
|
||||
<p style="color:#999;font-size:12px;">{{ doc.pre_content | slice:200 }}</p>
|
||||
<p style="color:#999;font-size:12px;">
|
||||
{% if doc.pre_content|length > 200 %}
|
||||
{{ doc.pre_content|truncatechars:200 }}……
|
||||
{% else %}
|
||||
{{ doc.pre_content }}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p style="color:#999;font-size:12px;"><i class="fa fa-user"></i> {% if doc.create_user.first_name != '' %} {{doc.create_user.first_name}} {% else %} {{doc.create_user}}{% endif %} - <i class="fa fa-clock-o"></i> {{doc.modify_time}}</p>
|
||||
</div>
|
||||
<hr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user