Skip to content

Commit

Permalink
Dropdown for recently used tag look corrected (publiclab#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
namangupta01 authored and jywarren committed Feb 1, 2018
1 parent 3d59089 commit 6a31adb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/tag/_advanced_tagging.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
<% if current_user %>
<li class="dropdown-header">Recently used tags</li>
<% NodeTag.where(uid: current_user.id).order('date DESC').limit(5).each do |tag| %>
<li onClick="addTag('<%= tag.name %>')"><i><%= tag.name %></i></li>
<li onClick="addTag('<%= tag.name %>')"><a><i><%= tag.name %></i></a></li>
<% end %>
<% end %>
<li role="separator" class="divider"></li>
<li><a href="#" data-value="style:">Style</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" data-value="with:">Add Coauthor</a></li>
<li role="separator" class="divider"></li>
<li><a href="https://publiclab.org/wiki/power-tags" target="_blank">Learn About Powertags</a></li>
Expand Down

0 comments on commit 6a31adb

Please sign in to comment.