forked from spree/spree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected, added, and normalized missing translation for admin/users
Fixes spree#1488
- Loading branch information
Showing
3 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<h2><%= t('api.access') %></h2> | ||
<h2><%= t('access', :scope => 'spree.api') %></h2> | ||
|
||
<% if @user.authentication_token.present? %> | ||
<p><strong><%= t('api.key') %></strong> <%= @user.authentication_token %></p> | ||
<p><strong><%= t('key', :scope => 'spree.api') %></strong> <%= @user.authentication_token %></p> | ||
|
||
<%= form_tag spree.clear_api_key_admin_user_path(@user), :method => :put do %> | ||
<%= button t('api.clear_key') %> | ||
<%= button t('clear_key', :scope => 'spree.api') %> | ||
<% end %> | ||
|
||
<%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %> | ||
<%= button t('api.regenerate_key') %> | ||
<%= button t('regenerate_key', :scope => 'spree.api') %> | ||
<% end %> | ||
|
||
<% else %> | ||
|
||
<p><%= t('api.no_key') %></p> | ||
<p><%= t('no_key', :scope => 'spree.api') %></p> | ||
<%= form_tag spree.generate_api_key_admin_user_path(@user), :method => :put do %> | ||
<%= button t('api.generate_key') %> | ||
<%= button t('generate_key', :scope => 'spree.api') %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters