forked from mirror/MrDoc
优化HTML模板
This commit is contained in:
parent
ccc0cde203
commit
bf5978b901
@ -17,7 +17,7 @@
|
||||
<a class="btn pull-left" aria-label="" href="{% url 'create_doc' %}?pid={{project.id}}" target="_blank">
|
||||
<i class="layui-icon layui-icon-add-1"></i> <span class="layui-hide-xs">{% trans "添加" %}</span>
|
||||
</a>
|
||||
<a class="btn pull-left" aria-label="" href="{% url 'manage_doc' %}" target="_blank">
|
||||
<a class="btn pull-left" aria-label="" href="{% url 'user_center' %}">
|
||||
<i class="fa fa-cubes"></i> <span class="layui-hide-xs">{% trans "管理" %}</span>
|
||||
</a>
|
||||
{% elif colla_user > 0 %}
|
||||
|
@ -30,17 +30,17 @@
|
||||
<div id="nested" class="row">
|
||||
<ul id="nestedDemo" class="list-group col nested-sortable">
|
||||
{% for docs in doc_list %}
|
||||
<li data-sortable-id="{{docs.id}}" class="list-group-item">{{docs.title}}
|
||||
<li data-sortable-id="{{docs.id}}" class="list-group-item"><i class="iconfont mrdoc-icon-wendang"></i> {{docs.title}}
|
||||
{% if docs.children %}
|
||||
<i class="layui-icon layui-icon-down switch-toc"></i>
|
||||
<ul class="list-group nested-sortable">
|
||||
{% for node in docs.children %}
|
||||
<li data-sortable-id="{{node.id}}" class="list-group-item">{{node.title}}
|
||||
<li data-sortable-id="{{node.id}}" class="list-group-item"><i class="iconfont mrdoc-icon-wendang"></i> {{node.title}}
|
||||
{% if node.children %}
|
||||
<i class="layui-icon layui-icon-down switch-toc"></i>
|
||||
<ul class="list-group nested-sortable">
|
||||
{% for doc in node.children %}
|
||||
<li data-sortable-id="{{doc.id}}" class="list-group-item">{{doc.title}}
|
||||
<li data-sortable-id="{{doc.id}}" class="list-group-item"><i class="iconfont mrdoc-icon-wendang"></i> {{doc.title}}
|
||||
<ul class="list-group nested-sortable"></ul>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
@ -14,7 +14,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if request.user == project.create_user %}
|
||||
<a class="btn pull-left" href="{% url 'manage_project' %}" target="_blank">
|
||||
<a class="btn pull-left" href="{% url 'user_center' %}">
|
||||
<i class="fa fa-cubes"></i> <span class="layui-hide-xs">{% trans "管理" %}</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
@ -10,6 +10,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="stylesheet" href="{% static 'PearAdminLayui/component/pear/css/pear.css' %}" />
|
||||
<link href="{% static 'mrdoc/mrdoc-admin.css' %}?version={{mrdoc_version}}" rel="stylesheet">
|
||||
<link href="{% static 'iconFont/iconfont.css' %}?version={{mrdoc_version}}" rel="stylesheet">
|
||||
<link rel="icon" href="{% static 'search/mrdoc_logo_300.png' %}" sizes="192x192" />
|
||||
{% block custom_element %}
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user