aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorZog2018-01-24 10:39:38 +0100
committerZog2018-01-24 10:39:38 +0100
commit06d100fa077722304574d0f65ecf8b396d2e384c (patch)
treedd3cf69b7bc38cd6f7e7372da7ab5d7dd15cad1d /app
parentd5eb3d0d736a4a196b8c36d5aeb30e5ef8db8034 (diff)
downloadchouette-core-06d100fa077722304574d0f65ecf8b396d2e384c.tar.bz2
Add links to docdeveloper-toolbar
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/components/_toolbar.sass2
-rw-r--r--app/views/shared/_development_toolbar.html.slim3
2 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/stylesheets/components/_toolbar.sass b/app/assets/stylesheets/components/_toolbar.sass
index 47ae2ac0c..86a32bd82 100644
--- a/app/assets/stylesheets/components/_toolbar.sass
+++ b/app/assets/stylesheets/components/_toolbar.sass
@@ -29,6 +29,8 @@
label
padding-left: 5px
font-weight: normal
+ & + a
+ float: right
h5
font-weight: bold
&.permissions
diff --git a/app/views/shared/_development_toolbar.html.slim b/app/views/shared/_development_toolbar.html.slim
index 4ad69f7ad..aafd37885 100644
--- a/app/views/shared/_development_toolbar.html.slim
+++ b/app/views/shared/_development_toolbar.html.slim
@@ -17,6 +17,9 @@
= hidden_field_tag "features[#{feature}]", false, id: ""
= check_box_tag "features[#{feature}]", true, has_feature?(feature)
= label :features, feature
+ - if Rails.application.config.development_toolbar.features_doc_url
+ = link_to "#{Rails.application.config.development_toolbar.features_doc_url}##{feature}", target: :blank do
+ .fa.fa-question-circle
.col.permissions
h4
= "Permissions"