diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-04-25 00:09:35 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-04-25 00:09:35 +0900 |
| commit | bea631d3f5e7d533185187e284cd392da73de325 (patch) | |
| tree | 53bf1b5863d57b067ae535dfc988e97e25b0979f /templates/themes/recent/recent.html | |
| parent | 501f2694ffc48968abbf75309522af4171805935 (diff) | |
Changes to add recent news to the Recent Posts Theme for the front page
Diffstat (limited to 'templates/themes/recent/recent.html')
| -rw-r--r-- | templates/themes/recent/recent.html | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/templates/themes/recent/recent.html b/templates/themes/recent/recent.html index c7802aaf..7ae8f5c2 100644 --- a/templates/themes/recent/recent.html +++ b/templates/themes/recent/recent.html @@ -33,7 +33,24 @@ <div class="ban" id="global2"> <h2>CYBERPUNK IS DUCK</h2> Pour out the Soykaf, lurk, and read the <a href="https://lainchan.org/rules">rules</a> before posting! </div> <center> <img alt="mascot" class="lain_banner" src="static/duck.png"></center> <br> - + <div class="ban" id="global3"> + <h2>Latest News</h2> + {% if recent_news|count == 0 %} + <p style="text-align:center" class="unimportant">(No news to show.)</p> + {% else %} + {% for entry in recent_news %} + <h4 id="{{ entry.id }}"> + {% if entry.subject %} + {{ entry.subject }} + {% else %} + <em>no subject</em> + {% endif %} + <span class="unimportant"> — by {{ entry.name }} at {{ entry.time|date(config.post_date, config.timezone) }}</span> + </h4> + <p>{{ entry.body }}</p> + {% endfor %} + {% endif %} + </div> <div class="ban" id="global"> <div class="box left"> <h2>Recent Images</h2> @@ -59,6 +76,7 @@ </li> {% endfor %} </ul> + </div> </div> <div class="box right"> <h2>Stats</h2> |
