Branch master was renamed to main.

khaganat-web/khaganat/templates/npb/paste_detail.html
2020-02-28 19:06:37 +01:00

42 lines
1.2 KiB
HTML

{% extends "khaganat/base.html" %}
{% load static %}
{% load i18n %}
{% block headers %}
<link rel="stylesheet" href="{% static css_file_name %}">
{% endblock %}
{% block title %}{% trans "Untitled" as untitled %}{{ paste.title|default:untitled }}{% endblock %}
{% block content %}
<div class="column is-light">
<article class="tile is-child notification is-white">
{% if paste.is_suspended %}
{% else %}
{% trans "Untitled" as untitled %}
<a class="button is-danger is-pulled-right" href="{% url 'npb:report_paste' paste.uuid %}">{% trans 'report this paste'|capfirst %}</a>
<h1 class="title is-3">{{ paste.title|default:untitled }}</h1>
<p class="subtitle is-5">
{% trans "anonymous" as anonymous %}
{% blocktrans with author=paste.author|default:anonymous date=paste.created_on %}By {{ author }} on {{ date }}{% endblocktrans %}
{% if paste.edited %}
<br />
{% blocktrans with date=paste.edited_on %}Edited on {{ date }}{% endblocktrans %}
{% endif %}
{% if paste.expire_on %}
<br />
{% blocktrans with date=paste.expire_on %}Expires on {{ date }}{% endblocktrans %}
{% endif %}
</p>
</article>
<article class="tile is-child notification is-paste">
{{ paste.formated_content|safe }}
{% endif %}
</article>
</div>
{% endblock %}