diff --git a/app/views/spina/admin/navigation_items/_navigation_item.html.erb b/app/views/spina/admin/navigation_items/_navigation_item.html.erb index 3d4f01bcc..b19611c36 100644 --- a/app/views/spina/admin/navigation_items/_navigation_item.html.erb +++ b/app/views/spina/admin/navigation_items/_navigation_item.html.erb @@ -8,7 +8,7 @@
<%= navigation_item.menu_title %>
<% if navigation_item.url_kind? %> - <%= link_to navigation_item.url, target: :blank, class: "h-7 flex items-center pl-1 text-gray-400 hover:text-gray-700" do %> + <%= link_to navigation_item.url, class: "h-7 flex items-center pl-1 text-gray-400 hover:text-gray-700" do %> <%= heroicon("external-link", style: :mini, class: "w-4 h-4") %> <% end %> <% end %> diff --git a/app/views/spina/admin/pages/_form.html.erb b/app/views/spina/admin/pages/_form.html.erb index 5bcbc495f..b244b3604 100644 --- a/app/views/spina/admin/pages/_form.html.erb +++ b/app/views/spina/admin/pages/_form.html.erb @@ -4,7 +4,7 @@ <% if @page.draft? %> (<%= Spina::Page.human_attribute_name(:draft) %>) <% end %> - <%= link_to @page.materialized_path(locale: @locale), class: 'px-3 py-2 flex items-center text-gray-400 hover:text-gray-700', target: :blank, data: {turbo: false} do %> + <%= link_to @page.materialized_path(locale: @locale), class: 'px-3 py-2 flex items-center text-gray-400 hover:text-gray-700', data: {turbo: false} do %> <%= heroicon("external-link", style: :mini, class: "w-4 h-4") %> <% end %> <% end %> diff --git a/app/views/spina/admin/pages/index.html.erb b/app/views/spina/admin/pages/index.html.erb index 5a58d9728..994804543 100644 --- a/app/views/spina/admin/pages/index.html.erb +++ b/app/views/spina/admin/pages/index.html.erb @@ -1,4 +1,11 @@ <%= render Spina::UserInterface::HeaderComponent.new do |header| %> + <% header.with_after_breadcrumbs do %> + <%= link_to "/", class: 'px-3 py-1.5 flex items-center text-gray-400 hover:text-gray-700', data: {turbo: false} do %> + <%= heroicon("external-link", style: :mini, class: "w-4 h-4") %> + <%=t "spina.preview_website" %> + <% end %> + <% end %> + <% header.with_actions do %> <% if @resource %> <%= link_to spina.edit_admin_resource_path(@resource), class: 'btn btn-default' do %>