Skip to content

Commit

Permalink
updated the lines (#11409)
Browse files Browse the repository at this point in the history
* updated the lines

* Update app/views/users/profile.html.erb

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>

Co-authored-by: Tilda Udufo <mathildaudufo@gmail.com>
  • Loading branch information
ryuusama09 and TildaDares authored Sep 14, 2022
1 parent e4e1d5e commit 3a9b53f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/users/profile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
<br />

<div style="text-align: center;">
<h5><a href='/notes/author/<%= @profile_user.name %>'><%= @profile_user.note_count %><%= @profile_user.note_count == 1 ? ' research note' : ' research notes' %></a>
<a class="ml-2" href = "/tag/question:*/author/<%= params[:id] %>"><%= Node.questions.where(status: 1, uid: @profile_user.id).length %> questions </a></h5>
<h5><a href='/notes/author/<%= @profile_user.name %>'><%= pluralize(@profile_user.note_count, 'research note', plural: 'research notes') %></a>
<a class="ml-2" href = "/tag/question:*/author/<%= params[:id] %>"><%= pluralize(Node.questions.where(status: 1, uid: @profile_user.id).length, 'question')
%> </a></h5>
</div>

<p style="width: 100%; text-align: center; border-bottom: 1px solid #ccc; line-height:2px; margin: 21px 0 20px;">
Expand Down

0 comments on commit 3a9b53f

Please sign in to comment.