]> git.ipfire.org Git - ipfire.org.git/blobdiff - templates/index.html
Add wishes to the donation page.
[ipfire.org.git] / templates / index.html
index b4b3745466d5b4741b86304d1a3da5056593d9ef..63f3902201bca42f231fa47a43ee122f70dbe71c 100644 (file)
                                                        <small>{{ _("The IPFire Crowdfunding Platform") }}</small>
                                                </h3>
 
-                                               <table class="table-wishlist-widget">
-                                                       {% for item in wishlist_items %}
-                                                               <tr>
-                                                                       <td>
-                                                                               {% if item.is_new() %}
-                                                                                       <span class="label label-success pull-right">{{ _("NEW") }}</span>
-                                                                               {% elif item.remaining_days and item.remaining_days <= 10 %}
-                                                                                       <span class="pull-right">
-                                                                                               {{ _("one day left", "%(num)s days left", item.remaining_days) % { "num" : item.remaining_days } }}
-                                                                                       </span>
-                                                                               {% else %}
-                                                                                       <span class="pull-right">
-                                                                                               {{ _("%d%% funded") % item.percentage }}
-                                                                                       </span>
-                                                                               {% end %}
-
-                                                                               <a href="http://wishlist.ipfire.org/wish/{{ item.slug }}" target="_blank">{{ item.title }}</a>
-
-                                                                               <br class="separator-small">
-
-                                                                               <div class="progress progress-small">
-                                                                                       <div class="progress-bar progress-{{ item.progressbar_colour }}" style="width: {{ "%.2f%%" % item.percentage_bar }};"></div>
-                                                                               </div>
-                                                                       </td>
-                                                               </tr>
-                                                       {% end %}
-                                               </table>
+                                               {% module WishlistItems(wishlist_items) %}
                                        {% end %}
                                </div>