Skip to content

Commit

Permalink
Added "comment" and "barnstar" headings to profile nav (publiclab#2166)
Browse files Browse the repository at this point in the history
* Add "comment" and "barnstar" headings to profile nav

fixes publiclab#2165

* minor changes
  • Loading branch information
ViditChitkara authored and Souravirus committed Mar 12, 2018
1 parent 4b811f6 commit 4363e49
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 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 @@ -272,5 +272,12 @@

})();
</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 4363e49

Please sign in to comment.