From c74b9ae04b66131381889967771d67030efeea3a Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Tue, 20 Nov 2012 20:44:26 +0100 Subject: [PATCH] fix distributed spelling problem --- app/assets/stylesheets/supplier/section_tables.css.sass | 2 ++ app/controllers/suppliers/sections_controller.rb | 2 +- app/views/supplier/home.html.slim | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/supplier/section_tables.css.sass b/app/assets/stylesheets/supplier/section_tables.css.sass index 844232c6..ac3129b1 100644 --- a/app/assets/stylesheets/supplier/section_tables.css.sass +++ b/app/assets/stylesheets/supplier/section_tables.css.sass @@ -61,3 +61,5 @@ table .table-count &:after content: " - " +.go-to-tables-view.hide + display: inline-block diff --git a/app/controllers/suppliers/sections_controller.rb b/app/controllers/suppliers/sections_controller.rb index 88cf961d..fc890fdf 100644 --- a/app/controllers/suppliers/sections_controller.rb +++ b/app/controllers/suppliers/sections_controller.rb @@ -132,7 +132,7 @@ module Suppliers def arrange_tables @section = Section.find_by_supplier_and_id(current_supplier, params[:id]) case params[:option] - when 'distribute' then @section.arrange_tables_in_grid + when 'distributed' then @section.arrange_tables_in_grid when 'by_row' then @section.arrange_tables_in_rows_of(params[:row_count].to_i) when 'by_column' then @section.arrange_tables_in_columns_of(params[:column_count].to_i) end diff --git a/app/views/supplier/home.html.slim b/app/views/supplier/home.html.slim index df11d3b5..c1640601 100644 --- a/app/views/supplier/home.html.slim +++ b/app/views/supplier/home.html.slim @@ -1,6 +1,6 @@ .pull-right = select_tag('current_section_selector', options_for_select([[current_supplier.name, '']] + current_supplier.sections.map{|s| ["- #{s.title}", s.id]}, params[:section_id]), id: :section_selector) - a.icon-arrow-right.hide href=tables_view_suppliers_section_path('0000') + a.icon-arrow-right.go-to-tables-view.hide href=tables_view_suppliers_section_path('0000') = render template: 'supplier/active_lists' = render template: 'supplier/active_orders' - content_for :footer do