aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/lines/index.html.slim9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim
index a28d3d765..36a75fb98 100644
--- a/app/views/lines/index.html.slim
+++ b/app/views/lines/index.html.slim
@@ -24,12 +24,13 @@
- content_for :sidebar do
ul.actions
- li
- = link_to t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'add'
+ - if policy(Chouette::Line).create?
+ li
+ = link_to t('lines.actions.new'), new_line_referential_line_path(@line_referential), class: 'add'
#multiple_selection_menu
h4 = t('.multi_selection')
-
+
.disabled
a.enable href="#"
= t('.multi_selection_enable')
@@ -45,4 +46,4 @@
= t('.select_all')
= " | "
a.deselect_all href="#"
- = t('.deselect_all') \ No newline at end of file
+ = t('.deselect_all')