Changes more_info folder and path to help
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div data-alert class="callout primary">
|
||||
<%= t("debates.new.info",
|
||||
info_link: link_to(t("debates.new.info_link"), new_proposal_path )).html_safe %>
|
||||
<%= link_to more_info_path, title: t('shared.target_blank_html'), target: "_blank" do %>
|
||||
<%= link_to help_path, title: t('shared.target_blank_html'), target: "_blank" do %>
|
||||
<strong><%= t("debates.new.more_info") %></strong>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<h1><%= t("proposals.new.start_new") %></h1>
|
||||
<div data-alert class="callout primary">
|
||||
<%= link_to more_info_path(anchor: "proposals") ,title: t('shared.target_blank_html'), target: "_blank" do %>
|
||||
<%= link_to help_path(anchor: "proposals") ,title: t('shared.target_blank_html'), target: "_blank" do %>
|
||||
<%= t("proposals.new.more_info")%>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<h1><%= t("proposals.new.start_new") %></h1>
|
||||
<div data-alert class="callout primary">
|
||||
<%= link_to more_info_path(anchor: "proposals") ,title: t('shared.target_blank_html'), target: "_blank" do %>
|
||||
<%= link_to help_path(anchor: "proposals") ,title: t('shared.target_blank_html'), target: "_blank" do %>
|
||||
<%= t("proposals.new.more_info")%>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -54,9 +54,9 @@
|
||||
<% end %>
|
||||
<li>
|
||||
<%= link_to t("layouts.header.help"),
|
||||
more_info_path,
|
||||
help_path,
|
||||
accesskey: "5",
|
||||
class: ("active" if current_page?(more_info_path)),
|
||||
class: ("active" if current_page?(help_path)),
|
||||
title: t("shared.go_to_page") + t("layouts.header.help") %>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<%= t("layouts.header.open_city_slogan_html") %>
|
||||
</p>
|
||||
<div class="small-12 medium-6 large-4 small-centered">
|
||||
<%= link_to t("shared.more_info"), more_info_path, class: "button expanded large" %>
|
||||
<%= link_to t("shared.more_info"), help_path, class: "button expanded large" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -42,9 +42,9 @@ Rails.application.routes.draw do
|
||||
resources :follows, only: [:create, :destroy]
|
||||
|
||||
# More info pages
|
||||
get 'more-information', to: 'pages#show', id: 'more_info/index', as: 'more_info'
|
||||
get 'more-information/how-to-use', to: 'pages#show', id: 'more_info/how_to_use/index', as: 'how_to_use'
|
||||
get 'more-information/faq', to: 'pages#show', id: 'more_info/faq/index', as: 'faq'
|
||||
get 'help', to: 'pages#show', id: 'help/index', as: 'help'
|
||||
get 'help/how-to-use', to: 'pages#show', id: 'help/how_to_use/index', as: 'how_to_use'
|
||||
get 'help/faq', to: 'pages#show', id: 'help/faq/index', as: 'faq'
|
||||
|
||||
# Static pages
|
||||
get '/blog' => redirect("http://blog.consul/")
|
||||
|
||||
@@ -14,7 +14,7 @@ SitemapGenerator::Sitemap.create do
|
||||
add page_path(id: page)
|
||||
end
|
||||
|
||||
add more_info_path
|
||||
add help_path
|
||||
add how_to_use_path
|
||||
add faq_path
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ feature "Custom Pages" do
|
||||
locale: "en"
|
||||
)
|
||||
|
||||
visit more_info_path
|
||||
visit help_path
|
||||
|
||||
expect(page).to have_content("Another custom page")
|
||||
end
|
||||
@@ -93,7 +93,7 @@ feature "Custom Pages" do
|
||||
locale: "en"
|
||||
)
|
||||
|
||||
visit more_info_path
|
||||
visit help_path
|
||||
|
||||
expect(page).not_to have_content("Another custom page")
|
||||
|
||||
@@ -112,7 +112,7 @@ feature "Custom Pages" do
|
||||
locale: "fr"
|
||||
)
|
||||
|
||||
visit more_info_path
|
||||
visit help_path
|
||||
|
||||
expect(page).not_to have_content("Ce texte est en français")
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ feature 'rake sitemap:create' do
|
||||
|
||||
# Static pages
|
||||
expect(sitemap).to include(faq_path)
|
||||
expect(sitemap).to include(more_info_path)
|
||||
expect(sitemap).to include(help_path)
|
||||
expect(sitemap).to include(how_to_use_path)
|
||||
expect(sitemap).to include(page_path(id: 'general_terms'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user