welco/welco/kb/templates/kb/page_detail.html

31 lines
731 B
HTML

{% extends "kb/base.html" %}
{% load i18n %}
{% block appbar %}
<h2>{% trans 'Knowledge Base' %} - {{ object.title }}</h2>
{% if can_manage %}
<a rel="popup" href="{% url 'kb-page-delete' slug=object.slug %}">{% trans 'Delete' %}</a>
<a href="{% url 'kb-page-edit' slug=object.slug %}">{% trans 'Edit' %}</a>
{% endif %}
{% endblock %}
{% block breadcrumb %}
{{ block.super }}
{% if object %}
<a href="{% url 'kb-page-view' slug=object.slug %}">{{object.title}}</a>
{% endif %}
{% endblock %}
{% block content %}
<div id="page-content">
{{ object.content|safe }}
<p class="keywords">
{% trans 'Keywords:' %}
{% for tag in object.tags.all %}{{tag}}{% if not forloop.last %}, {% endif %}{% endfor %}
</p>
</div>
{% endblock %}