From 4f442792cccfc5447c13dc7fe2567c19a9d51815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Checa?= Date: Wed, 13 Dec 2017 13:32:00 +0100 Subject: [PATCH] Added working related contents list Also separated related contents into partials. --- app/views/proposals/show.html.erb | 2 +- .../relationable/_related_content.html.erb | 15 +++++ app/views/relationable/_related_list.html.erb | 16 ++++++ app/views/shared/_related_content.html.erb | 55 ------------------- 4 files changed, 32 insertions(+), 56 deletions(-) create mode 100644 app/views/relationable/_related_content.html.erb create mode 100644 app/views/relationable/_related_list.html.erb delete mode 100644 app/views/shared/_related_content.html.erb diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb index 4a559cfd8..bbe186d2e 100644 --- a/app/views/proposals/show.html.erb +++ b/app/views/proposals/show.html.erb @@ -106,7 +106,7 @@ <%= render 'shared/geozone', geozonable: @proposal %> - <%= render 'shared/related_content', relationable: @proposal %> + <%= render 'relationable/related_content', relationable: @proposal %>
<%= render 'proposals/actions', proposal: @proposal %> diff --git a/app/views/relationable/_related_content.html.erb b/app/views/relationable/_related_content.html.erb new file mode 100644 index 000000000..e780d3cf7 --- /dev/null +++ b/app/views/relationable/_related_content.html.erb @@ -0,0 +1,15 @@ + diff --git a/app/views/relationable/_related_list.html.erb b/app/views/relationable/_related_list.html.erb new file mode 100644 index 000000000..ffeacc58e --- /dev/null +++ b/app/views/relationable/_related_list.html.erb @@ -0,0 +1,16 @@ + + + diff --git a/app/views/shared/_related_content.html.erb b/app/views/shared/_related_content.html.erb deleted file mode 100644 index abe21e0f2..000000000 --- a/app/views/shared/_related_content.html.erb +++ /dev/null @@ -1,55 +0,0 @@ -