Skip to content

Commit

Permalink
Add "comment" and "barnstar" headings to profile nav
Browse files Browse the repository at this point in the history
  • Loading branch information
ViditChitkara committed Jan 30, 2018
1 parent f52a4f5 commit 959ce67
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/users/profile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@
<li class="active"><a href="#research" data-toggle="tab"><%= t('users.profile.research') %></a></li>
<li><a href="#coauthored" data-toggle="tab"><span class="hidden-sm hidden-xs"> <%= t('users.profile.Coauthored') %> (<%= @coauthored.size %>)</span></a></li>
<li><a href="#questions" data-toggle="tab"><i class="fa fa-comments"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.questions') %> (<%= Node.questions.where(status: 1, uid: @user.id).length %>)</span></a></li>
<li><a href="#comments" id="comments-tab" data-toggle="tab"><i class="fa fa-comment"></i><span class="hidden-sm hidden-xs"></span></a></li>
<li><a href="#comments" id="comments-tab" data-toggle="tab"><i class="fa fa-comment"></i><span class="hidden-sm hidden-xs"> Comments</span></a></li>
<li><a href="/profile/<%= @user.username %>/likes"><i class="fa fa-star"></i><span class="hidden-sm hidden-xs"> <%= t('users.profile.liked') %></span> (<%= @user.like_count %>)</a></li>
<li><a href="#barnstars" data-toggle="tab"><i class="fa fa-certificate"></i><span class="hidden-sm hidden-xs"> </span> (<%= @user.user.try(:barnstars).try(:length) %>)</a></li>
<li><a href="#barnstars" data-toggle="tab"><i class="fa fa-certificate"></i><span class="hidden-sm hidden-xs"> Barnstars</span> (<%= @user.user.try(:barnstars).try(:length) %>)</a></li>
</ul>

<br />
Expand Down Expand Up @@ -274,5 +274,11 @@

})();
</script>

<style type="text/css">
ul.nav-tabs>li a{
padding: 10px;
}
</style>
<%= stylesheet_link_tag "dashboard" %>
<%= javascript_include_tag "dashboard" %>

0 comments on commit 959ce67

Please sign in to comment.