]> git.ipfire.org Git - ipfire.org.git/blobdiff - templates/modules/news-item.html
Make all absolute links use https:// instead of http://
[ipfire.org.git] / templates / modules / news-item.html
index a97410c296a55f9f2f4a899806b49885486e614a..ab36de2799dade162bcd493dbdaf5aea517a437e 100644 (file)
@@ -1,22 +1,34 @@
 <div class="row">
-       <div class="span12">
+       <div class="col-lg-12 col-md-12">
                {% if show_heading %}
                        <h2>
                                {% if announcement %}
                                        {{ _("Announcement") }}:
                                {% end %}
-                               <a href="/news/{{ escape(item.slug) }}">{{ escape(item.title) }}</a>
+                               <a href="https://www.ipfire.org/news/{{ item.slug }}">{{ item.title }}</a>
                        </h2>
                {% end %}
 
-               {{ item.text }}
-       </div>
-</div>
-<div class="row">
-       <div class="span12">
-               <p class="pull-right">
-                       <a href="/author/{{ item.author_id }}">{{ item.author }}</a> -
-                       {{ locale.format_date(item.date, full_format=True) }}
+               {% raw item.text %}
+
+               <hr>
+
+               {% if release %}
+                       <div class="btn-toolbar ac">
+                               <a class="btn btn-primary btn-lg" href="//downloads.ipfire.org/release/{{ release.sname }}">
+                                       <span class="fa fa-download"></span> {{ _("Download %s") % escape(release.name) }}<br>
+                               </a>
+
+                               <a class="btn btn-success btn-lg" href="//www.ipfire.org/donate">
+                                       {{ _("Donate!") }}
+                               </a>
+                       </div>
+
+                       <br>
+               {% end %}
+
+               <p class="text-muted ac">
+                       {{ _("Published by %(author)s, %(time)s") % { "author" : item.author, "time" : locale.format_date(item.published, full_format=True) } }}
                </p>
        </div>
 </div>