Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown for recently used tag look corrected #2145

Merged
merged 1 commit into from
Feb 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Dropdown for recently used tag look corrected
namangupta01 committed Jan 27, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9fa261c0f70a18f695bd3956b56b147c3e6f3735
4 changes: 3 additions & 1 deletion app/views/tag/_advanced_tagging.html.erb
Original file line number Diff line number Diff line change
@@ -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>