Skip to content

Commit

Permalink
show leave or join event appropriately in all event menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Rassokhin committed Mar 10, 2014
1 parent 375119e commit 170362a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions views/events.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,10 @@
<h4><b>Location:</b> <%= events.all[i].location %></h4>
</div>
<div class="col-sm-3">
<% if (events.user.indexOf(events.all[i]) === -1) { %>
<button class="btn btn-success btn-lg btn-block join-event" value="<%= events.all[i]._id %>">Join Event</button>
<!-- Use this for the search page
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<h4>Actions <span class="caret"></span></h4>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Leave Event</a></li>
</ul>
</div>
-->
<% } else { %> <button class="btn btn-danger btn-lg btn-block leave-event" value="<%= events.all[i]._id %>">Leave Event</button><% } %>
</div>
</div>
Expand Down

0 comments on commit 170362a

Please sign in to comment.