summaryrefslogtreecommitdiff
path: root/app/views/tenants/_gs_parameter_table.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-15 18:02:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-15 18:02:06 +0100
commitbdad29d001523a2ba4f515e6202babaa61739fc9 (patch)
treedff7d8fb6b8857997eb7ba99d0059eca712f4a85 /app/views/tenants/_gs_parameter_table.html.haml
parent2928e0342ef45d5b6ecf27faf2940b424c8bd513 (diff)
Refactoring and caching.
Diffstat (limited to 'app/views/tenants/_gs_parameter_table.html.haml')
-rw-r--r--app/views/tenants/_gs_parameter_table.html.haml24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/views/tenants/_gs_parameter_table.html.haml b/app/views/tenants/_gs_parameter_table.html.haml
new file mode 100644
index 0000000..7663f46
--- /dev/null
+++ b/app/views/tenants/_gs_parameter_table.html.haml
@@ -0,0 +1,24 @@
+- cache([I18n.locale, tenant, GuiFunction.count, GuiFunction.order(:updated_at).last, GsParameter.count, GsParameter.order(:updated_at).last]) do
+ %table
+ %tr{:class => 'even'}
+ %th
+ Funktion
+ %th
+ Anzahl
+ %th
+ Letztes Update
+
+ %tr{:class => 'odd'}
+ %td
+ = t("gui_functions.name")
+ %td
+ = link_to GuiFunction.count.to_s, gui_functions_path
+ %td
+ = l GuiFunction.order(:updated_at).last.updated_at, :format => :short
+ %tr{:class => 'even'}
+ %td
+ = t("gs_parameters.name")
+ %td
+ = link_to GsParameter.count.to_s, gs_parameters_path
+ %td
+ = l GsParameter.order(:updated_at).last.updated_at, :format => :short