aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/dashboards
diff options
context:
space:
mode:
authorAlban Peignier2017-09-30 14:17:28 +0200
committerAlban Peignier2017-09-30 14:46:09 +0200
commitfda2b7b07349fd20cc70d68bf1544a7f51841f70 (patch)
tree87772ddf673bcee1861ad5d54d9b26cfaed7fea9 /app/views/dashboards
parent1ae15e06f2a56f9a83d670ad9c785a74cb6af43e (diff)
downloadchouette-core-fda2b7b07349fd20cc70d68bf1544a7f51841f70.tar.bz2
Create DashboardController with STIF implementation. Refs #4655
Diffstat (limited to 'app/views/dashboards')
-rw-r--r--app/views/dashboards/show.html.slim15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/dashboards/show.html.slim b/app/views/dashboards/show.html.slim
new file mode 100644
index 000000000..66154712d
--- /dev/null
+++ b/app/views/dashboards/show.html.slim
@@ -0,0 +1,15 @@
+/ PageHeader
+= pageheader 'tableau-de-bord',
+ t('.title', organisation: current_organisation.name)
+
+ / Below is secundary actions & optional contents (filters, ...)
+ .row.mb-sm
+ .col-lg-12.text-right
+ - if policy(Api::V1::ApiKey).create?
+ = link_to t('actions.create_api_key'), new_api_key_path, class: 'btn btn-primary'
+
+
+/ PageContent
+.page_content
+ .container-fluid
+ = render partial: @dashboard