khaganat-web/khaganat/templates/npb/paste_detail.html
Rodolphe Breard b0b8f30580 Migrate to Bulma
Bulma is simple and free full-CSS framework. Unlike Bootstrap, it fits
within a single small CSS file. It is also well integrated in Django.
https://bulma.io/
2018-06-03 22:16:40 +02:00

35 lines
1.1 KiB
HTML

{% extends "khaganat/base.html" %}
{% load bulma_tags %}
{% 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 %}
{% 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>
{{ paste.formated_content|safe }}
{% endif %}
{% endblock %}