Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit e852d01

Browse files
committed
Merge pull request #264 from NinaKos/master
fixing css bug on: replacing css edit-toolbar on view event page
2 parents 71ec889 + 9b2a083 commit e852d01

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

web/templates/pages/view_event.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131

3232
<div class="container">
3333
<div id="fb-root"></div>
34-
{% if user.profile.is_ambassador %}
35-
{% if user.profile.country == event.country or user.is_staff %}
3634
<div class="edit-toolbar">
35+
{% if user.profile.is_ambassador %}
36+
{% if user.profile.country == event.country or user.is_staff %}
3737
<div id="change_status">
3838
{% if event.status == 'PENDING' %}
3939
<div class="alert alert-warning">
@@ -58,7 +58,6 @@
5858
<a class="btn btn-sm btn-primary" href="{% url 'web.view_event' next_event.pk next_event.slug %}">Next pending event</a>
5959
</div>
6060
{% endif %}
61-
6261
</div>
6362
{% elif event.status == 'APPROVED' %}
6463
<div class="alert alert-info">
@@ -91,21 +90,19 @@
9190
{% endif %}
9291
</div>
9392
{% endif %}
93+
</div>
9494
{% endif %}
9595
{% endif %}
9696
{% if event.creator.id == request.user.id %}
9797
<a href="{% url 'web.edit_event' event.id %}" class="btn pull-right edit-event-btn">
98-
<i class="fa fa-pencil-square-o"></i>Edit event</a>
98+
<i class="fa fa-pencil-square-o"></i>Edit event</a>
9999
{% if event.status == 'PENDING' %}
100100
<div class="alert alert-warning">
101101
<strong>NOTE:</strong> This event is stil being reviewed by <a href="{% url 'web.ambassadors' %}">moderators</a>.
102102
</div>
103103
{% endif %}
104-
</div>
105104
</div>
106-
{% endif %}
107-
108-
105+
{% endif %}
109106

110107
<div class="about-event clearfix">
111108
<div class="col-md-8 event-description first">

0 commit comments

Comments
 (0)