aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-01-25 11:06:33 +0100
committerZog2018-01-25 17:18:02 +0100
commit5fb1450194882c9d1169d3e1f64a24e54a5f1813 (patch)
tree5fe0a7f09fd71a5510304e7b5b657fbbb42f8b44
parent32242a7a060da1e4917fcdc6afcb984ab53d4e13 (diff)
downloadchouette-core-5fb1450194882c9d1169d3e1f64a24e54a5f1813.tar.bz2
ReferentialNetworkDecorator: Make 'edit' button primary
Move the "Edit" button on the ReferentialNetworks#show page to the top right and make it white (a "primary" link) to make it consistent with other pages. Refs #5586
-rw-r--r--app/decorators/referential_network_decorator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/decorators/referential_network_decorator.rb b/app/decorators/referential_network_decorator.rb
index 957c37966..ff3467188 100644
--- a/app/decorators/referential_network_decorator.rb
+++ b/app/decorators/referential_network_decorator.rb
@@ -16,7 +16,7 @@ class ReferentialNetworkDecorator < AF83::Decorator
l.href { h.referential_network_path(context[:referential], object) }
end
- instance_decorator.action_link secondary: true, policy: :edit do |l|
+ instance_decorator.edit_action_link do |l|
l.content t('networks.actions.edit')
l.href do
h.edit_referential_network_path(