diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-26 20:11:45 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-26 20:11:45 +0100 |
commit | 680073d4cf7619bddfb7f79ea9e538a33d9dcdee (patch) | |
tree | 80164c8e9c8d70cb9384e5a02743d65ae3180bfa /app/views/gs_parameters | |
parent | 6d5cc233d0db71f826a27c9151d0af121d0fe616 (diff) |
Refactoring
Diffstat (limited to 'app/views/gs_parameters')
-rw-r--r-- | app/views/gs_parameters/index.html.haml | 4 | ||||
-rw-r--r-- | app/views/gs_parameters/show.html.haml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/gs_parameters/index.html.haml b/app/views/gs_parameters/index.html.haml index 9132cdd..1189a45 100644 --- a/app/views/gs_parameters/index.html.haml +++ b/app/views/gs_parameters/index.html.haml @@ -3,7 +3,7 @@ - if @gs_parameters && @gs_parameters.count > 0 - cache(['gs_parameters_table', I18n.locale, @gs_parameters_unordered.reorder(:updated_at).last, @gs_parameters_unordered.count]) do - if @sections - %table{:class => 'table table-striped'} + %table.table.table-striped - @sections.each do |section| %tr %td{:colspan => 3} @@ -11,5 +11,5 @@ -# Template Dependency: gs_parameters/_index_core = render "index_core", :gs_parameters => @gs_parameters.where(:section => section) - else - %table{:class => 'table table-striped'} + %table.table.table-striped = render "index_core", :gs_parameters => @gs_parameters diff --git a/app/views/gs_parameters/show.html.haml b/app/views/gs_parameters/show.html.haml index d04949b..706625f 100644 --- a/app/views/gs_parameters/show.html.haml +++ b/app/views/gs_parameters/show.html.haml @@ -1,7 +1,7 @@ - content_for :title, t("gs_parameters.show.page_title") - cache(@gs_parameter) do - %table{:class => 'table table-striped'} + %table.table.table-striped %tbody %tr %td |