|
14 | 14 | <div class="row column">
|
15 | 15 | {% if news_item.best_image_url %}
|
16 | 16 | <div class="orbit article-orbit" data-orbit>
|
17 |
| - <ul class="orbit-container article-orbit"> |
18 |
| - <li class="is-active orbit-slide overlay"> |
19 |
| - <img class="orbit-image" |
20 |
| - src="{{ news_item.best_image_url }}" |
21 |
| - alt="{{ news_item.title|striptags|unescape }}"> |
22 |
| - <div class="row column"> |
23 |
| - <figcaption class="orbit-caption"> |
24 |
| - {# HeadingA11y #} <h3>{{ news_item.title|safe }}</h3> |
25 |
| - <p>{{ news_item.byline }} {% trans "on" %} {{ news_item.posted|date:"Y-m-d" }}</p> |
26 |
| - </figcaption> |
27 |
| - </div> |
28 |
| - </li> |
29 |
| - </ul> |
30 |
| - </div> |
| 17 | + <ul class="orbit-container article-orbit"> |
| 18 | + <li class="is-active orbit-slide overlay"> |
| 19 | + <img class="orbit-image" |
| 20 | + src="{{ news_item.best_image_url }}" |
| 21 | + alt="{{ news_item.title|striptags|unescape }}"> |
| 22 | + <div class="row column"> |
| 23 | + <figcaption class="orbit-caption"> |
| 24 | + <h1>{{ news_item.title|safe }}</h1> |
| 25 | + <p class="byline">{{ news_item.byline }} {% trans "on" %} {{ news_item.posted|date:"Y-m-d" }}</p> |
| 26 | + </figcaption> |
| 27 | + </div> |
| 28 | + </li> |
| 29 | + </ul> |
| 30 | + </div> |
31 | 31 | <br />
|
32 | 32 | {% else %}
|
33 |
| - {# HeadingA11y #} <h1>{{ news_item.title|safe }}</h1> |
34 |
| - {# HeadingA11y #} <h6>{{ news_item.byline }} on {{ news_item.posted|date:"Y-m-d" }}</h6> |
| 33 | + <h1>{{ news_item.title|safe }}</h1> |
| 34 | + <p class="byline">{{ news_item.byline }} on {{ news_item.posted|date:"Y-m-d" }}</p> |
35 | 35 | {% endif %}
|
36 | 36 | <div class="row">
|
37 | 37 | <div class="large-9 columns">
|
38 | 38 | {{ news_item.body|safe }}
|
39 | 39 | </div>
|
40 |
| - <div class="large-3 columns"> |
41 |
| - {# HeadingA11y #} <h7>{% trans 'Tags ' %}<i aria-hidden="true" class="fa fa-tags"> </i></h7> |
42 |
| - <p>{% for tag in news_item.tags.all %}<a href="{% url 'core_news_list_tag' tag.text %}" class="button success tiny">{{ tag.text }}</a>{% if not forloop.last %} {% endif %}{% endfor %}</p> |
43 |
| - </div> |
| 40 | + {% if news_item.tags.all %} |
| 41 | + <div class="large-3 columns"> |
| 42 | + <h2>{% trans 'Tags ' %}<i aria-hidden="true" class="fa fa-tags"> </i></h2> |
| 43 | + <p>{% for tag in news_item.tags.all %}<a href="{% url 'core_news_list_tag' tag.text %}" class="button success tiny">{{ tag.text }}</a>{% if not forloop.last %} {% endif %}{% endfor %}</p> |
| 44 | + </div> |
| 45 | + {% endif %} |
44 | 46 | </div>
|
45 | 47 |
|
46 | 48 | <br />
|
|
0 commit comments