File tree 1 file changed +10
-3
lines changed
esp/esp/themes/theme_data/fruitsalad/templates
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 143
143
< div class ="corners "> < div class ="ul "> </ div > < div class ="ur "> </ div > </ div >
144
144
{% if request.path|equal:"/teach/index.html" or request.path|equal:"/learn/index.html" %}
145
145
146
- {# announcements #}
147
- < div id ="divannouncements ">
148
- < ul >
149
146
{% load preview %}
150
147
151
148
{% if request.path|equal:"/teach/index.html" %}
154
151
{% miniblog_for_user AnonymousUser as announcements learn 3 %}
155
152
{% endif %}
156
153
154
+ {% if not announcements.announcementList|length_is:0 %}
155
+
156
+ {# announcements #}
157
+ < div id ="divannouncements ">
158
+ < ul >
159
+
160
+
157
161
{% for announce in announcements.announcementList %}
158
162
< li >
159
163
{% with announceUrl=announce.get_absolute_url %}
@@ -175,6 +179,9 @@ <h1>{{ announce.category|default:"" }}</h1>
175
179
< a href ="/myesp/home/ "> more announcements...</ a > </ div >
176
180
{% endif %}
177
181
{% else %}
182
+ <!-- Default blank if there's no announcements -->
183
+ {% endif %}
184
+ {% else %}
178
185
< h1 class ="title "> {% block content_title %} {% endblock %}</ h1 >
179
186
{% endif %}
180
187
</ div >
You can’t perform that action at this time.
0 commit comments