Skip to content

Commit

Permalink
Update Tag Popover Text #10987
Browse files Browse the repository at this point in the history
Update Tag Popover Text #10987
Changes in line 18
  • Loading branch information
fedechaves committed May 17, 2022
1 parent 56dbcff commit 3a20398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/tag/_tags.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p style="margin-top:14px;"><%= render partial: 'tag/miniCard', locals: { tag: tag, grey: power_tag } %></p>
<% else %>
<p class="badge <%= badge_name %> pop more-tags" style="<% if power_tag %>background-color:rgb(102,102,102);<% else %>background-color:rgb(0,123,255);<% end %>display:none;cursor:pointer;margin-bottom:3px;" id="tag_<%= tag.tid %>" data-toggle="popover" data-trigger="focus" data-count=0 data-placement="top" data-content="<p style='text-align:center;'>This is a <% if (tag.name.include?('lat:') || tag.name.include?('lon:')) %><a href='https://publiclab.org/location-privacy'>geographic tag</a><% elsif tag.name.include? ':' %><a href='https://publiclab.org/power-tags'>power tag</a>.<% end %><br><a href='/tag/<%= tag.name %>'><%= Tag.tagged_node_count(tag.name) || 0 %> notes</a> - <a href='/contributors/<%= tag.name %>'><%= Tag.contributors(tag.name).count %> people <br></a></p> <p style='text-align:center;font-size:12px;'><%if tag.description %><%= tag.description %> |<% end %> created by <a href='/profile/<%= tag.try(:author).try(:username) %>'><%= tag.try(:author).try(:username) %></a> <%= time_ago_in_words(Time.at(tag.date)) %> ago </p><div class='text-center'><a href='/subscribe/tag/<%= tag.name %>' class='btn btn-primary'>Follow</a></div>" data-html="true" title="<%= tag.name %>">
<p class="badge <%= badge_name %> pop more-tags" style="<% if power_tag %>background-color:rgb(102,102,102);<% else %>background-color:rgb(0,123,255);<% end %>display:none;cursor:pointer;margin-bottom:3px;" id="tag_<%= tag.tid %>" data-toggle="popover" data-trigger="focus" data-count="0" data-placement="top" data-content="<p style='text-align:center;'><% if (tag.name.include?('lat:') || tag.name.include?('lon:')) %>This is a <a href='https://publiclab.org/location-privacy'>geographic tag</a><% elsif tag.name.include? ':' %>This is a <a href='https://publiclab.org/power-tags'>power tag</a>.<% end %><br><a href='/tag/<%= tag.name %>'><%= Tag.tagged_node_count(tag.name) || 0 %> notes</a> - <a href='/contributors/<%= tag.name %>'><%= Tag.contributors(tag.name).count %> contributors <br></a></p> <p style='text-align:center;font-size:12px;'><%if tag.description %><%= tag.description %> |<% end %> created by <a href='/profile/<%= tag.try(:author).try(:username) %>'><%= tag.try(:author).try(:username) %></a> <%= time_ago_in_words(Time.at(tag.date)) %> ago </p><div class='text-center'><a href='/subscribe/tag/<%= tag.name %>' class='btn btn-primary'>Follow</a></div>" data-html="true" title="<%= tag.name %>">
<a class='tag-name' href='/tag/<%= tag.name %>'><%= tag.name %></a>
<% if logged_in_as(['admin', 'moderator']) || (current_user && ( current_user.uid == @node.uid || current_user.uid == tag.uid)) %>
<% if tag.name.include? ':' %>
Expand Down

0 comments on commit 3a20398

Please sign in to comment.