Skip to content

Commit

Permalink
Update show.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunAroraCode authored Apr 20, 2021
1 parent 44afb74 commit 31dcdc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/notes/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@
current_user.id == @node.id || current_user.is_coauthor?(@node) ) &&
@node.has_tag('event') %>
<hr/>
<p>This looks like an event. <span><button id="date-toggle" class="btn-outline-secondary btn-sm" data-toggle="tooltip" data-placement="right" title="Add Date"><i class="fa fa-calendar" aria-hidden="true"></i></button></span></p>
<p>This looks like an event.
<% unless @node.has_power_tag('date') %>
<span><button id = "date-toggle" class = "btn-outline-secondary btn-sm"data-toggle="tooltip" data-placement="right" title="Add Date"><i class="fa fa-calendar" aria-hidden="true"></i></button></span>
<% end %>
<p>
<div id="event-datepicker">
<input type="text" class="datepicker" aria-describedby="DatePickerGuide"/>

Expand Down

0 comments on commit 31dcdc9

Please sign in to comment.