comparison gpp/templates/core/admin_dashboard.html @ 146:023132c90021

Another tweak for #30; only show the admin dashboard items if they are non-zero.
author Brian Neal <bgneal@gmail.com>
date Wed, 09 Dec 2009 22:58:05 +0000
parents 71cb4208dc98
children e1d1a70d312d
comparison
equal deleted inserted replaced
145:71cb4208dc98 146:023132c90021
1 {% if user.is_staff %} 1 {% if user.is_staff %}
2 {% if flagged_posts or flagged_comments or flagged_profiles or event_requests or new_stories or new_downloads or new_links %}
2 <ul id="dashboard-list"> 3 <ul id="dashboard-list">
3 <li><a href="/admin/forums/flaggedpost/">Posts</a>: 4 {% if flagged_posts %}
4 <span {% if flagged_posts %}class="alert"{% endif %}>{{ flagged_posts }}</span></li> 5 <li><a href="/admin/forums/flaggedpost/">Posts</a>: {{ flagged_posts }}</li>
5 <li><a href="/admin/comments/commentflag/">Comments</a>: 6 {% endif %}
6 <span {% if flagged_comments %}class="alert"{% endif %}>{{ flagged_comments }}</span></li> 7 {% if flagged_comments %}
7 <li><a href="/admin/bio/userprofileflag/">Profiles</a>: 8 <li><a href="/admin/comments/commentflag/">Comments</a>: {{ flagged_comments }}</li>
8 <span {% if flagged_profiles %}class="alert"{% endif %}>{{ flagged_profiles }}</span></li> 9 {% endif %}
9 <li><a href="/admin/gcalendar/event/">Calendar</a>: 10 {% if flagged_profiles %}
10 <span {% if event_requests %}class="alert"{% endif %}>{{ event_requests }}</span></li> 11 <li><a href="/admin/bio/userprofileflag/">Profiles</a>: {{ flagged_profiles }}</li>
11 <li><a href="/admin/news/pendingstory/">News</a>: 12 {% endif %}
12 <span {% if new_stories %}class="alert"{% endif %}>{{ new_stories }}</span></li> 13 {% if event_requests %}
13 <li><a href="/admin/downloads/download/">Downloads</a>: 14 <li><a href="/admin/gcalendar/event/">Calendar</a>: {{ event_requests }}</li>
14 <span {% if new_downloads %}class="alert"{% endif %}>{{ new_downloads }}</span></li> 15 {% endif %}
15 <li><a href="/admin/weblinks/link/">Links</a>: 16 {% if new_stories %}
16 <span {% if new_links %}class="alert"{% endif %}>{{ new_links }}</span></li> 17 <li><a href="/admin/news/pendingstory/">News</a>: {{ new_stories }}</li>
18 {% endif %}
19 {% if new_downloads %}
20 <li><a href="/admin/downloads/download/">Downloads</a>: {{ new_downloads }}</li>
21 {% endif %}
22 {% if new_links %}
23 <li><a href="/admin/weblinks/link/">Links</a>: {{ new_links }}</li>
24 {% endif %}
17 </ul> 25 </ul>
18 {% endif %} 26 {% endif %}
27 {% endif %}