首页文集块新增快速创建文档按钮
This commit is contained in:
parent
57ee0aabf3
commit
1e2e38e3a1
@ -166,6 +166,14 @@
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a.index-add-link{
|
||||
color: #999;
|
||||
float: right;
|
||||
}
|
||||
a.index-add-link:hover{
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.layui-card{
|
||||
box-shadow:0 0 0 0;
|
||||
}
|
||||
|
||||
@ -144,11 +144,21 @@
|
||||
<p class="layui-elip" style="font-weight: 700;">
|
||||
{% if p.is_top %}<i class="iconfont mrdoc-icon-totop" title="置顶文集" style="color: red;font-size: 12px;"></i>{% endif %}
|
||||
<svg class="icon" aria-hidden="true"><use xlink:href="#{{p.icon}}"></use></svg> {{ p.name }} <span class="layui-badge-rim">{{p.id|get_doc_count}}</span>
|
||||
{% if p.create_user == request.user %}
|
||||
<a class="index-add-link" href="{% url 'create_doc' %}?pid={{p.id}}" target="_blank" title="新建此文档的下级文档">
|
||||
<i class="layui-icon layui-icon-add-1"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% else %}
|
||||
<p class="layui-elip" style="font-weight: 700;">
|
||||
{% if p.is_top %}<i class="iconfont mrdoc-icon-totop" title="置顶文集" style="color: red;font-size: 12px;"></i>{% endif %}
|
||||
<svg class="icon" aria-hidden="true"><use xlink:href="#mrdoc-icon-pro-2"></use></svg> {{ p.name }} <span class="layui-badge-rim">{{p.id|get_doc_count}}</span>
|
||||
{% if p.create_user == request.user %}
|
||||
<a class="index-add-link" href="{% url 'create_doc' %}?pid={{p.id}}" target="_blank" title="新建此文档的下级文档">
|
||||
<i class="layui-icon layui-icon-add-1"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user