-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1595 from ubyssey/finish-ams-elections
AMS elections timeline and header menu
- Loading branch information
Showing
5 changed files
with
203 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
section/templates/section/objects/grouped_articles_timeline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% load humanize %} | ||
{% load cache %} | ||
{% load wagtailcore_tags %} | ||
{% load wagtailimages_tags %} | ||
{% load video_filters %} | ||
{% load articletags %} | ||
|
||
<div class="landing-stream-block__timeline landing-stream-block_blurb-with-timeline landing_stream_block u-container u-container--large u-container--padded {% if self.hide_mobile %}hide-mobile{% endif %}"> | ||
<div class="landing_stream_block--header landing_stream_block--header-blurb"> | ||
<h2>{% if link %}<a href="{{link}}">{{title}}</a>{% else %}{{title}}{%endif%}</h2> | ||
{% if description %} | ||
{{description|safe}} | ||
{% endif %} | ||
</div> | ||
|
||
<div class="landing_stream_block--flex-container hide-mobile"> | ||
<table class="grouped_timeline" style="--timeline-colour: #{{self.highlight_colour}}"> | ||
<thead><tr> | ||
{% for group in article_groups %} | ||
<th class="grouped_timeline--group-header"> | ||
<div class="grouped_timeline--group-header-date">{{group.title|safe}}</div> | ||
<h3 class="grouped_timeline--group-header-label">{{group.description|safe}}</h3> | ||
</th> | ||
{% endfor %} | ||
</tr></thead> | ||
<tbody> | ||
<tr> | ||
{% for group in article_groups %} | ||
<td> | ||
<ul> | ||
{% for article in group.articles %} | ||
<li>{% if article.article %} | ||
<a href="{% pageurl article.article %}">{% if article.alias %}{{article.alias}}{% else %}{{article.title}}{% endif %}</a> | ||
{% else %} | ||
{% if article.alias %}{{article.alias}}{% endif %} | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters