Skip to content

Commit

Permalink
- Allow members_only announcements also
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jun 26, 2019
1 parent 88ca841 commit f2decb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geonode/templates/_announcements.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% if site_wide_announcements %}
<div id="site_wide_announcements">
{% for announcement in site_wide_announcements %}
{% if not announcement.members_only or request.user.is_authenticated %}
<div class="alert alert-block announcement {{ announcement.level_css }}">
{% if announcement.dismissal_type > 1 %}
<a type="button" class="close" data-dismiss="alert" data-dismiss-url="{% url "announcements_dismiss" announcement.pk %}" href="#">×</a>
Expand All @@ -12,6 +13,7 @@ <h4><a href="{{ announcement.get_absolute_url }}">{{ announcement }}</a></h4>
<p><small><em>{{ announcement.creation_date }}</em></small></p>
<div>{{ announcement.content }}</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}

0 comments on commit f2decb2

Please sign in to comment.