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