diff --git a/templates/announcements.html b/templates/announcements.html index 11e821068..061a252fd 100644 --- a/templates/announcements.html +++ b/templates/announcements.html @@ -2,23 +2,23 @@ {% load static %} {% block content %} {% load bootstrap3 %} {% block pagespecs %} - {% if id %} - {% for req in data %} - - {{ req.description | truncatechars:150 }} - {% endfor %} - {% else %} - - Kerala Rescue - {% endif %} +{% if id %} +{% for req in data %} + +{{ req.description | truncatechars:150 }} +{% endfor %} +{% else %} + +Kerala Rescue +{% endif %} {% endblock %}
@@ -30,87 +30,98 @@
{% if not id %}
- TagsClear Filters + Tags + {% if selected_hashtag %} + Clear + Filters + {% endif %} + - {% for i in hashtags %} - - {% if i == selected_hashtag %} - {% bootstrap_icon "link" %} + {% if i == selected_hashtag %} + {% bootstrap_icon "link" %} {{ i }} - {% else %} - {% bootstrap_icon "link" %} {{ i }} - {% endif %} - + {% else %} + {% bootstrap_icon "link" %} {{ i }} + {% endif %} + - {% endfor %} + {% endfor %}
{% endif %} {% for req in pinned_data %} -
- - {{ req.description | safe | urlize | linebreaks }}
-
- Very Important
- {% bootstrap_icon "time" %} {{ req.dateadded }} -
+
+ + {{ req.description | safe | urlize | linebreaks }}
+
+ Very Important
+ {% bootstrap_icon "time" %} {{ req.dateadded }} +
{% endfor %} - +
- Priority : High Medium Low + Priority : High Medium Low
- + {% for req in data %} -
- {% bootstrap_icon "time" %} {{ req.dateadded }} {{ req.get_priority_display.upper }} priority

- - {{ req.description | safe | urlize }}
- {% if req.image %} - {% bootstrap_icon "eye-open" %} View Image - {% endif %} - {% if req.upload %} - {% bootstrap_icon "download" %} Download - {% endif %} -
- {% bootstrap_icon "time" %} {{ req.dateadded }} +
+ {% bootstrap_icon "time" %} {{ req.dateadded }} {{ req.get_priority_display.upper }} priority

+ + {{ req.description | safe | urlize }}
+ {% if req.image %} + {% bootstrap_icon "eye-open" %} View + Image + {% endif %} + {% if req.upload %} + {% bootstrap_icon "download" %} + Download + {% endif %} +
+ {% bootstrap_icon "time" %} {{ req.dateadded }} - {% with req.hashtags|get_list as hashtags_ %} - {% if hashtags_|length != 0 %} - {% for i in hashtags_ %} - {% bootstrap_icon "link" %} {{ i }} - {% endfor %} - {% endif %} + {% with req.hashtags|get_list as hashtags_ %} + {% if hashtags_|length != 0 %} + {% for i in hashtags_ %} + {% bootstrap_icon "link" %} + {{ i }} + {% endfor %} + {% endif %} -{% endwith %} + {% endwith %} -
+
{% endfor %}
{% if id %} -
- See All Announcements -
+
+ See All Announcements +
{% else %} - + {% endif %}
-{% endblock %} +{% endblock %} \ No newline at end of file