Skip to content

Commit

Permalink
Changed function t to translation in app/views/tag/_profileCard.html.…
Browse files Browse the repository at this point in the history
…erb (#7681)
  • Loading branch information
TaishiRoy authored and icarito committed Mar 31, 2020
1 parent cdd7c8d commit 0821b63
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/tag/_profileCard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
<div class="card-footer row align-items-center">
<div class="col-12 col-xl-auto">
<div class="posted-by-links">
<a href="/tag/<%= tag.name %>/author/<%= @profile_user.name %>"><%= t('tag.index.notes', count: Node.find_by_tag_and_author(tag.name, @profile_user.id, 'notes').count) %></a> |
<a href="/questions/tag/<%= tag.name %>/author/<%= @profile_user.name %>"><%= t('tag.index.questions', count: Node.find_by_tag_and_author(tag.name, @profile_user.id, 'questions').count) %></a> |
<a href="/profile/comments/<%= @profile_user.name %>/tag/<%= tag.name %>"><%= t('tag.index.comments', count: Comment.find_by_tag_and_author(tag.name, @profile_user.id).count) %></a>
<a href="/tag/<%= tag.name %>/author/<%= @profile_user.name %>"><%= translation('tag.index.notes', count: Node.find_by_tag_and_author(tag.name, @profile_user.id, 'notes').count) %></a> |
<a href="/questions/tag/<%= tag.name %>/author/<%= @profile_user.name %>"><%= translation('tag.index.questions', count: Node.find_by_tag_and_author(tag.name, @profile_user.id, 'questions').count) %></a> |
<a href="/profile/comments/<%= @profile_user.name %>/tag/<%= tag.name %>"><%= translation('tag.index.comments', count: Comment.find_by_tag_and_author(tag.name, @profile_user.id).count) %></a>
by @<%= @profile_user.name %>
</div>
</div>

<div class="col">
<a style="float: right; width: 100px;" rel="tooltip" title="<%= t('sidebar._post_button.share_your_work') %>" data-placement="bottom" href="/post?tags=<%= tag.name %>" class="btn btn-primary btn-sm">New post <i class="fa fa-plus fa-white"></i></a>
<a style="float: right; width: 100px;" rel="tooltip" title="<%= translation('sidebar._post_button.share_your_work') %>" data-placement="bottom" href="/post?tags=<%= tag.name %>" class="btn btn-primary btn-sm">New post <i class="fa fa-plus fa-white"></i></a>
<% if current_user %>
<div id="follow-unfollow-column-<%=tag.tid%>" style="float: right; margin-right: 10px;">
<% if current_user.following(tag.name) %>
<a style="width: 100px;" rel="tooltip" title="<%= t('tag.show.unfollow') %>" class="btn btn-light btn-sm active" href="/unsubscribe/tag/<%= tag.name %>"></i> <%= t('tag.index.unfollow') %></a>
<a style="width: 100px;" rel="tooltip" title="<%= translation('tag.show.unfollow') %>" class="btn btn-light btn-sm active" href="/unsubscribe/tag/<%= tag.name %>"></i> <%= translation('tag.index.unfollow') %></a>
<% else %>
<a style="width: 100px;" class="btn btn-outline-secondary btn-sm index-follow-buttons follow-btn-remote" href="/subscribe/tag/<%= tag.name %>" data-remote="true"><%= t('tag.index.follow') %></a>
<a style="width: 100px;" class="btn btn-outline-secondary btn-sm index-follow-buttons follow-btn-remote" href="/subscribe/tag/<%= tag.name %>" data-remote="true"><%= translation('tag.index.follow') %></a>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit 0821b63

Please sign in to comment.