Commit 82cdec6e2019cfda03aa9f4aabfb7fa04fe24805
1 parent
1805ce38
Exists in
master
and in
2 other branches
Visualize new updated
Showing
1 changed file
with
33 additions
and
1 deletions
Show diff stats
news/templates/news/view.html
1 | -{{news}} | 1 | +{% extends 'news/list.html' %} |
2 | + | ||
3 | +{% load widget_tweaks static i18n django_bootstrap_breadcrumbs permission_tags pagination %} | ||
4 | + | ||
5 | +{% block breadcrumbs %} | ||
6 | + {{ block.super }} | ||
7 | + {% trans 'Visualize News' as visualize_news %} | ||
8 | + {% breadcrumb visualize_news 'news:view' %} | ||
9 | +{% endblock %} | ||
10 | + | ||
11 | +{% block render_breadcrumbs %} | ||
12 | + {% render_breadcrumbs %} | ||
13 | +{% endblock %} | ||
14 | + | ||
15 | + | ||
16 | +{% block content %} | ||
17 | + | ||
18 | +{% if messages %} | ||
19 | + {% for message in messages %} | ||
20 | + <script type="text/javascript"> | ||
21 | + {% if message.tags == "danger" %} | ||
22 | + alertify.error('{{message}}'); | ||
23 | + {% else %} | ||
24 | + alertify.success('{{message}}'); | ||
25 | + {% endif %} | ||
26 | + </script> | ||
27 | + {% endfor %} | ||
28 | +{% endif %} | ||
29 | + | ||
30 | +{{new.title}} | ||
31 | +<br>{{new.creator}} | ||
32 | +<br>{{new.create_date}} | ||
33 | +{% endblock %} |