Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions app/helpers/links_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ def set_tooltip_on_count(number)
def favourite_action_tooltip(link)
"#{link.favourite? ? 'Unmark ' : 'Mark'} as Favourite"
end

def user_tags
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helper is not needed unless used many places.

current_user.owned_tags
end
end
2 changes: 1 addition & 1 deletion app/views/links/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= render partial: 'links/links_list', locals: { links: @links}%>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 showback tag-cloud-width">
<% tag_cloud Link.tag_counts, %w{s m l} do |tag, css_class| %>
<% tag_cloud user_tags, %w{s m l} do |tag, css_class| %>
<%= link_to tag.name, links_path(tag: tag.name), class: css_class %>
<% end %>
</div>
Expand Down