Skip to content

Commit df7d457

Browse files
authored
Merge pull request #1340 from codidact/cellio/show-profile-age
show profile creation date/time to owner and mods
2 parents fcc0a14 + 8cb0f03 commit df7d457

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/views/users/show.html.erb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@
147147
<td><%= @user.metric 'E' %></td>
148148
</tr>
149149
</table>
150+
151+
<% if current_user&.id == @user.id || current_user&.is_moderator %>
152+
<table class="table is-full-width">
153+
<tr>
154+
<td>User since <%= @user.created_at %></td>
155+
</tr>
156+
</table>
157+
<% end %>
150158

151159
<% unless @abilities.empty? %>
152160
<h2>Earned Abilities</h2>

0 commit comments

Comments
 (0)