Skip to content

Commit

Permalink
default send pd
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 1, 2023
1 parent 9ef418f commit 5260548
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/datum/panel/table_lists/_base/_index_tr.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div>
<%= link_to t('.csv'), { action: 'show', id: model.id, format: 'csv' }, class: 'button is-small is-link' %>
<%= link_to t('.excel'), { action: 'show', id: model.id, format: 'xlsx' }, class: 'button is-small is-info' %>
<%= link_to t('.pdf'), { action: 'show', id: model.id, format: 'pdf' }, class: 'button is-small is-primary' %>
<%= link_to t('.pdf'), { action: 'pdf', id: model.id }, target: '_blank', class: 'button is-small is-primary' %>
</div>
</td>
</tr>
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
match :chart, via: [:get, :post]
get :row
get :xlsx
get :pdf
get :pdf, defaults: { format: 'pdf' }
patch :run
patch :migrate
end
Expand Down

0 comments on commit 5260548

Please sign in to comment.