Links only on right side

This commit is contained in:
Jean-Baptiste Bellet
2022-10-20 14:51:19 +02:00
parent 1c349049d1
commit 6dec80aaaf
2 changed files with 6 additions and 6 deletions

View File

@@ -11,10 +11,10 @@
- @reports.each do |report_type, report_subtypes|
%tr
%td
- name = I18n.t(:name, scope: [:admin, :reports, report_type])
- url = main_app.admin_report_url(report_type: report_type)
= link_to name, url
= I18n.t(:name, scope: [:admin, :reports, report_type])
%td
- if report_subtypes.empty?
= I18n.t!(:description, scope: [:admin, :reports, report_type])
- name = I18n.t(:name, scope: [:admin, :reports, report_type])
- url = main_app.admin_report_url(report_type: report_type)
= link_to name, url
= render partial: "report_subtype", locals: { report_subtypes: report_subtypes, report_type: report_type }

View File

@@ -135,7 +135,7 @@ describe '
end
it "generates the payments reports" do
click_link 'Payment Reports'
click_link 'Payments By Type'
click_button 'Go'
rows = find("table.report__table").all("thead tr")
@@ -298,7 +298,7 @@ describe '
expect(page).to have_content "All products"
expect(page).to have_content "Inventory (on hand)"
click_link 'Products & Inventory'
click_link 'All products'
click_button "Go"
expect(page).to have_content "Supplier"
expect(page).to have_table_row ["Supplier", "Producer Suburb", "Product",