From 462931845b64fa0b95f736345947e7132a91d121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Fri, 21 Jul 2017 16:46:18 +0200 Subject: [PATCH] Fix back link on document new page. --- app/views/documents/new.html.erb | 6 ++++-- spec/features/proposals_spec.rb | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/documents/new.html.erb b/app/views/documents/new.html.erb index cf5c9fbab..d0463c104 100644 --- a/app/views/documents/new.html.erb +++ b/app/views/documents/new.html.erb @@ -1,7 +1,8 @@ -
+
- <%= render "shared/back_link" %> + <%= back_link_to params[:from] %> +

<%= t("documents.new.title") %>

<%= render "documents/form", form_url: documents_url %>
@@ -15,4 +16,5 @@
  • <%= t("documents.recommendation_three_html") %>
  • +
    diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index c1b5b1a37..9573a4639 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -1227,6 +1227,7 @@ feature 'Proposals' do end it_behaves_like "followable", "proposal", "proposal_path", { "id": "id" } + it_behaves_like "documentable", "proposal", "proposal_path", { "id": "id" } scenario 'Erased author' do