diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-20 19:54:11 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-20 19:54:11 +0100 |
commit | 4ea0e252683d89794deff7b1b3689d2cdf61e0d0 (patch) | |
tree | 152fe2bb04e50974c6ccd05b9280603c4235f62a /app/views/tenants/_gateways.html.haml | |
parent | 5b5cbfddd9fa3a26de90ca8aa42668eb95648605 (diff) |
Added a gateways table to tenant#view.
Diffstat (limited to 'app/views/tenants/_gateways.html.haml')
-rw-r--r-- | app/views/tenants/_gateways.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/tenants/_gateways.html.haml b/app/views/tenants/_gateways.html.haml new file mode 100644 index 0000000..c861ad3 --- /dev/null +++ b/app/views/tenants/_gateways.html.haml @@ -0,0 +1,8 @@ +%h2= t("gateways.index.page_title") + +- if Gateway.count <= GsParameter.get('NUMBER_OF_SHOWN_ITEMS') + = render "gateways/index_core", :gateways => Gateway.all + = render :partial => 'shared/create_link', :locals => {:child_class => Gateway} +- else + %p + = link_to t("gateways.index.page_title"), gateways_path
\ No newline at end of file |