open documents in a new tab when editing

This commit is contained in:
Andrew Brown 2019-02-04 14:58:35 -06:00
parent e3e1de4f6d
commit a1e03fa36c
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
</p>
</div>
<div class="card-action nice-icon-links">
<%= link_to edit_document_path(document), class: 'green-text right' do %>
<%= link_to edit_document_path(document), class: 'green-text right', target: '_new' do %>
<i class="material-icons"><%= Document.icon %></i> Edit
<% end %>
<%= link_to document_path(document), class: 'blue-text text-lighten-1' do %>

View File

@ -9,7 +9,7 @@
<div class="col l2 m4 smart-sidebar">
<%= render partial: 'documents/components/smart_sidebar', locals: { document: @document } %>
<%= link_to edit_document_path(@document) do %>
<%= link_to edit_document_path(@document), target: '_new' do %>
<div class="card <%= Document.color %>">
<div class="card-content">
<span class="card-title white-text">