fix csv download + template optional parameters

Conflicts:
	app/views/finance/financial_transactions/_transactions.html.haml
	app/views/home/ordergroup.html.haml
	app/views/login/_accept_invitation_form.html.haml
This commit is contained in:
wvengen 2014-06-10 16:09:43 +02:00
parent b1d085c618
commit 9e58a6f2b1
3 changed files with 25 additions and 7 deletions

View file

@ -1,9 +1,11 @@
- with_ordergroup ||= false
- with_ordergroup = local_assigns[:with_ordergroup]
- with_csv = local_assigns[:with_csv]
.pull-right
.btn-group
= link_to url_for(q: params[:q], format: :csv), class: 'btn' do
= glyph :download
CSV
- if with_csv
.btn-group
= link_to url_for(search: params[:q], format: :csv), class: 'btn' do
= glyph :download
CSV
- if @financial_transactions.total_pages > 1
.btn-group= items_per_page wrap: false
= pagination_links_remote @financial_transactions