Skip to content

Commit

Permalink
Update profile.html.erb (#10854)
Browse files Browse the repository at this point in the history
* Update profile.html.erb

* Update en.yml
  • Loading branch information
girija0707 authored Mar 28, 2022
1 parent 667cf31 commit 3114eea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/users/profile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<h4>
<small>
<% if logged_in_as(['admin']) %><%= @profile_user.email %><% end %>
<span style = "font-size:24px;"><small> <%= raw translation('users.profile.joined_time_ago', :time_ago => distance_of_time_in_words(@profile_user.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' })) %></small></span>
<span style = "font-size:24px;"><small> <%= raw translation('users.profile.joined') %> <%= distance_of_time_in_words(@profile_user.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %></small></span>
<% if @profile_user.moderator? %> | <i class="fa fa-certificate"></i> <%= translation('users.profile.moderator') %><% end %>
<% if @profile_user.admin? %> | <i class="fa fa-certificate"></i> <%= translation('users.profile.admin') %><% end %>
<% if @profile_user.status == 0 %> | <i class="fa fa-ban" style="color:#a00;"></i> <%= translation('users.profile.banned') %><% end %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ en:
barnstar_awarded_to_by: "<a href='%{url1}'>%{author}</a> was awarded <a href='%{url2}'>the
%{barnstar} Barnstar</a> by <a href='%{url3}'>%{awarder}</a> for their work
published in <a href='%{url4}'>%{work}</a>."
joined_time_ago: "Joined %{time_ago}"
joined: "Joined"
research: "Research"
Coauthored: "Coauthored"
questions: "Questions"
Expand Down

0 comments on commit 3114eea

Please sign in to comment.