Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix translation key on user admin page #75

Merged
merged 1 commit into from
Dec 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix translation key on user admin page
The translation keys are namespaced in the `alchemy_i18n` repository.
This commit fixes the user admin page so the key is in line with those keys.
  • Loading branch information
mamhoff committed Oct 29, 2018
commit 4294de0cab2aa14a8756c292d92f450cae232892
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/users/_user.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<td><%= user.lastname %></td>
<td class="email"><%= user.email %></td>
<td><%= Alchemy.t(user.language, scope: 'translations', default: Alchemy.t(:unknown)) %></td>
<td><%= user.last_sign_in_at.present? ? l(user.last_sign_in_at, format: :default) : Alchemy.t(:unknown) %></td>
<td><%= user.last_sign_in_at.present? ? l(user.last_sign_in_at, format: 'alchemy.default'.to_sym) : Alchemy.t(:unknown) %></td>
<td class="role"><%= user.human_roles_string %></td>
<td class="tools">
<% if can?(:destroy, user) %>
Expand Down