1
0
forked from mirror/MrDoc
MrDoc/template/app_doc/project_doc_search.html
2020-06-09 09:08:13 +08:00

27 lines
1020 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 继承自模板app_doc/docs_base.html -->
{% extends 'app_doc/docs_base.html' %}
<!-- 引入静态文件 -->
{% load staticfiles %}
{% block title %}搜索“{{kw}}”的结果 - {{ project.name }}{% endblock %}
{% block head_toolbar %}
{% if request.user == project.create_user %}
<a class="btn pull-left" aria-label="" href="{% url 'create_doc' %}?pid={{project.id}}" target="_blank">
<i class="fa fa-edit"></i> 添加文档
</a>
{% endif %}
{% endblock %}
{% block content_head %}
<h1>搜索“{{kw}}”共有{{ search_result.count }}个结果 - {{project.name}}</h1><hr>
{% endblock %}
{% block page_content %}
{% for result in search_result %}
<div>
<p><a href="{% url 'doc' pro_id=project.id doc_id=result.id %}" target="_blank">{{ result.name }}</a> - <span style="font-size: 14px;color: #999;">{{result.modify_time}}</span></p>
<p>{{ result.pre_content|truncatechars:300 }}</p>
</div>
{% endfor %}
{% endblock %}