From 7bc55f78c0a4b95ff77501cfe276ea166166e5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 9 Jul 2021 16:44:42 +0200 Subject: [PATCH] Rename debate-form HTML classes So they follow the same convention used in proposals. Note the styles are for elements which appear in the "new" view but not in the "edit" view, so we only have to include them in one place. --- app/assets/stylesheets/participation.scss | 4 ++-- app/views/debates/edit.html.erb | 2 +- app/views/debates/new.html.erb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 2ecb55719..c29f82247 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -244,7 +244,7 @@ // 02. New participation // --------------------- -.debate-form, +.debate-new, .proposal-new, .budget-investment-form, .document-form, @@ -290,7 +290,7 @@ } } -.debate-form { +.debate-new { .recommendations li::before { color: $debates; diff --git a/app/views/debates/edit.html.erb b/app/views/debates/edit.html.erb index 8645be255..129cdd8a0 100644 --- a/app/views/debates/edit.html.erb +++ b/app/views/debates/edit.html.erb @@ -1,4 +1,4 @@ -
+
<%= back_link_to %> diff --git a/app/views/debates/new.html.erb b/app/views/debates/new.html.erb index 4e75679de..ba8a3d1cf 100644 --- a/app/views/debates/new.html.erb +++ b/app/views/debates/new.html.erb @@ -1,4 +1,4 @@ -
+
<%= back_link_to debates_path %>