Skip to content

Commit

Permalink
Link to documentation added in Oauth applications list in admin panel
Browse files Browse the repository at this point in the history
* Added link to documentation in index method in oauth_applications_controller.rb
  • Loading branch information
kpokorski authored Aug 31, 2023
1 parent cd36a24 commit a61ca39
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/views/spree/admin/oauth_applications/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
<%= button_link_to Spree.t('admin.oauth_applications.new'), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_role_link' %>
<% end if can? :create, Spree::OauthApplication %>

<div class="container">
<div class="card">
<div class="card-body">
<p>
<%=Spree.t('admin.oauth_applications.documentation_message')%>
<%= link_to(Spree.t('admin.oauth_applications.here'), 'https://dev-docs.spreecommerce.org/api/platform-api/authenticating-requests')%>
</p>
</div>
</div>
</div>

<% if @oauth_applications.any? %>
<div class="table-responsive rounded border mt-4">
<table class="table">
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ en:
new: New oAuth application
uid: UID
scopes: Scopes
documentation_message: 'If you need help, you can find documentation '
here: here.
reports:
for: For %{store_name}
return_authorization:
Expand Down

0 comments on commit a61ca39

Please sign in to comment.