Browse Source

Respect show_details in main theme

Ralfp 12 years ago
parent
commit
e67be21ad2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      templates/cranefly/index.html

+ 2 - 0
templates/cranefly/index.html

@@ -24,6 +24,7 @@
               <td class="forum-icon"><span class="forum-icon-wrap{% if forum.type == 'redirect' %} forum-icon-redirect{% elif not forum.is_read %} forum-icon-new{% endif %}"><i class="icon-{% if forum.type == 'redirect' %}circle-arrow-right{% else %}comment{% endif %} icon-white"></i></span></td>
               <td class="forum-icon"><span class="forum-icon-wrap{% if forum.type == 'redirect' %} forum-icon-redirect{% elif not forum.is_read %} forum-icon-new{% endif %}"><i class="icon-{% if forum.type == 'redirect' %}circle-arrow-right{% else %}comment{% endif %} icon-white"></i></span></td>
               <td class="forum-main">
               <td class="forum-main">
                 <h3{% if not forum.is_read %} class="forum-title-new"{% endif %}><a href="{{ forum.type|url(slug=forum.slug, forum=forum.id) }}">{{ forum.name }}</a></h3>
                 <h3{% if not forum.is_read %} class="forum-title-new"{% endif %}><a href="{{ forum.type|url(slug=forum.slug, forum=forum.id) }}">{{ forum.name }}</a></h3>
+                {% if forum.show_details %}
                 <div class="forum-details">
                 <div class="forum-details">
                   {% if forum.type == 'redirect' %}
                   {% if forum.type == 'redirect' %}
                   <span class="label{% if forum.redirects_delta %} label-success{% endif %}">{{ forum.redirects|intcomma }}</span> {% trans %}Clicks{% endtrans %}
                   <span class="label{% if forum.redirects_delta %} label-success{% endif %}">{{ forum.redirects|intcomma }}</span> {% trans %}Clicks{% endtrans %}
@@ -31,6 +32,7 @@
                   <span class="label{% if forum.posts_delta %} label-success{% endif %}">{{ forum.posts|intcomma }}</span> {% trans %}Posts{% endtrans %}
                   <span class="label{% if forum.posts_delta %} label-success{% endif %}">{{ forum.posts|intcomma }}</span> {% trans %}Posts{% endtrans %}
                   {% endif %}
                   {% endif %}
                 </div>
                 </div>
+                {% endif %}
                 {% if forum.description %}<p class="forum-description">{{ forum.description }}</p>{% endif %}
                 {% if forum.description %}<p class="forum-description">{{ forum.description }}</p>{% endif %}
               </td>
               </td>
             </tr>
             </tr>