nalodeni.pirati.cz/nalodeni/templates/news/msg_show.html

84 lines
3.1 KiB
HTML
Raw Normal View History

2019-04-03 13:55:34 +03:00
{% extends 'pirati_cz.html' %}
{%block body%}
<div class="row">
<section class="o-section o-section--spaceBot">
<div class="o-section-inner">
<div class="o-section-block">
<div class="medium-12 large-12 columns">
<h2>
{{msg.news}}: {{msg.title}}
{% if 'nwsl_actions' in actions %}
<small>(<a href="{% url 'nalodeni:news_block_create' msg.id %}">nový blok</a>,
<a href="{% url 'nalodeni:news_msg_preview' msg.id %}" target="_blank">náhled</a>,
<a href="{% url 'nalodeni:news_msg_edit' msg.news_id msg.id %}">upravit</a>)</small>
{%endif%}
<small>(<a href="{% url 'nalodeni:news_list_show' msg.news_id%}">zpět</a>)</small>
</h2>
</div>
<div class="medium-12 large-12 columns end">
<p style="text-align: justify">
{{msg.headerText|safe|linebreaks}}
</p>
</div>
{% if blocks|length > 0 %}
{% for b in blocks %}
<div class="medium-12 large-12 columns">
<div class="msg-block">
{% if 'nwsl_actions' in actions %}
(
<a href="{% url 'nalodeni:news_block_edit' b.newsmsg_id b.id %}">Upravit</a>,
<a href="{% url 'nalodeni:news_block_delete' b.id %}">Smazat</a>
)
{%endif%}
{% if b.heading %}
<h3>{{b.heading}} </h3>
{% endif %}
{% if b.content %}
<div style="text-align: justify"> {{ b.content|safe|linebreaks }}</div>
{% endif%}
{% if b.link_text %}
<div style="text-align: center;">
<a href="{{b.link}}" target="_new" style="width: 80%; margin-top: 10px; text-align: center; padding: 0.5rem; font-size: 1.2rem; background-color: #505050; border-color: #303030; color: white;" class="c-cta-button c-cta-button--primary">{{b.link_text}}</a>
</div>
{%endif%}
</div>
</div>
{%comment%}
<div class="medium-12 large-12 columns">
<div class="o-section-inner">
Hodnoceni
</div>
</div>
{%endcomment%}
<div class="medium-12 large-12 columns"> &nbsp;</div>
{% endfor %}
{%else%}
<div class="medium-12 large-12 columns end">
<em>Zpráva nemá žádný obsah.</em>
</div>
{%endif%}
<div class="medium-12 large-12 columns end">
<p style="text-align: justify">
{{msg.footerText|safe|linebreaks}}
</p>
</div>
</div>
</div>
</section>
</div>
<div class="row">
<div class="medium-12 large-12 columns">
<section class="o-section o-section--spaceBot">
<div class="o-section-inner">
&nbsp;
</div>
</section>
</div>
</div>
{%endblock%}