Skip to content

Commit

Permalink
Merge pull request #5316 from solidusio/elia/admin/feedback-button
Browse files Browse the repository at this point in the history
[Admin] Add a feedback button
  • Loading branch information
the-krg authored Aug 8, 2023
2 parents 354b4f2 + 1a620a8 commit 58c5486
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
<%= title %>
</h1>

<div class="ml-auto">
<div class="ml-auto flex gap-2 items-center">
<span class="max-w-xs text-xs text-right text-gray-600 hidden lg:block">
<%= t(".feedback_description") %>
</span>
<%= render @button_component.new(
tag: :a,
text: t(".give_feedback"),
href: "https://solidus.io/feedback?category=solidus-admin",
icon: "feedback-line",
scheme: :secondary,
target: :_blank,
) %>
<%= render @button_component.new(
tag: :a,
text: t('.add_product'),
href: spree.new_admin_product_path,
icon: "add-line",
classes: "ml-auto"
) %>
</div>
</header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ en:
activate: 'Activate'
filters:
with_deleted: Include deleted
give_feedback: 'Give feedback'
feedback_description: 'We are constantly trying to improve. Please let us know what you think about this admin page.'

0 comments on commit 58c5486

Please sign in to comment.