Remove unused settings

These settings are customised for Madrid's fork. On CONSUL any user can include new links using site customisation content blocks from admin panel.
This commit is contained in:
decabeza
2019-02-18 15:40:11 +01:00
parent 53530ba99b
commit ccee843da7
10 changed files with 0 additions and 38 deletions

View File

@@ -7,10 +7,6 @@ module ApplicationHelper
request.path == '/'
end
def opendata_page?
request.path == '/opendata'
end
# if current path is /debates current_path_with_query_params(foo: 'bar') returns /debates?foo=bar
# notice: if query_params have a param which also exist in current path, it "overrides" (query_params is merged last)
def current_path_with_query_params(query_parameters)

View File

@@ -53,15 +53,6 @@
<% end %>
</li>
<% end %>
<% if setting['blog_url'] %>
<li class="inline-block">
<%= link_to setting['blog_url'], target: "_blank",
title: t("shared.go_to_page") + t("social.blog", org: setting['org_name']) + t('shared.target_blank_html') do %>
<span class="show-for-sr"><%= t("social.blog", org: setting['org_name']) %></span>
<span class="icon-blog" aria-hidden="true"></span>
<% end %>
</li>
<% end %>
<% if setting['youtube_handle'] %>
<li class="inline-block">
<%= link_to "https://www.youtube.com/#{setting['youtube_handle']}", target: "_blank",

View File

@@ -1,13 +1,3 @@
<ul class="no-bullet external-links">
<% if setting['blog_url'] %>
<li>
<%= link_to t("layouts.header.external_link_blog"),
setting['blog_url'],
target: "_blank",
rel: "nofollow",
title: t("shared.go_to_page") + t("layouts.header.external_link_blog") + t('shared.target_blank_html') %>
</li>
<% end %>
<%= raw content_block("top_links", I18n.locale) %>
</ul>

View File

@@ -219,7 +219,6 @@ en:
available_locales: Available languages
collaborative_legislation: Legislation processes
debates: Debates
external_link_blog: Blog
locale: 'Language:'
logo: CONSUL logo
management: Management
@@ -624,7 +623,6 @@ en:
see_more: See more recommendations
hide: Hide recommendations
social:
blog: "%{org} Blog"
facebook: "%{org} Facebook"
twitter: "%{org} Twitter"
youtube: "%{org} YouTube"

View File

@@ -73,9 +73,6 @@ en:
min_age_to_participate: Minimum age needed to participate
min_age_to_participate_description: "Users over this age can participate in all processes"
analytics_url: "Analytics URL"
blog_url: "Blog URL"
transparency_url: "Transparency URL"
opendata_url: "Open Data URL"
verification_offices_url: Verification offices URL
proposal_improvement_path: Proposal improvement info internal link
feature:

View File

@@ -219,7 +219,6 @@ es:
available_locales: Idiomas disponibles
collaborative_legislation: Procesos legislativos
debates: Debates
external_link_blog: Blog
locale: 'Idioma:'
logo: Logo de CONSUL
management: Gestión
@@ -623,7 +622,6 @@ es:
see_more: Ver más recomendaciones
hide: Ocultar recomendaciones
social:
blog: "Blog de %{org}"
facebook: "Facebook de %{org}"
twitter: "Twitter de %{org}"
youtube: "YouTube de %{org}"

View File

@@ -73,9 +73,6 @@ es:
min_age_to_participate: Edad mínima para participar
min_age_to_participate_description: "Los usuarios mayores de esta edad podrán participar en todos los procesos"
analytics_url: "URL de estadísticas externas"
blog_url: "URL del blog"
transparency_url: "URL de transparencia"
opendata_url: "URL de open data"
verification_offices_url: URL oficinas verificación
proposal_improvement_path: Link a información para mejorar propuestas
feature:

View File

@@ -48,6 +48,5 @@ Rails.application.routes.draw do
get 'help/faq', to: 'pages#show', id: 'help/faq/index', as: 'faq'
# Static pages
get '/blog' => redirect("http://blog.consul/")
resources :pages, path: '/', only: [:show]
end

View File

@@ -23,7 +23,6 @@ section "Creating Settings" do
Setting.create(key: 'youtube_handle', value: 'CONSUL')
Setting.create(key: 'telegram_handle', value: 'CONSUL')
Setting.create(key: 'instagram_handle', value: 'CONSUL')
Setting.create(key: 'blog_url', value: '/blog')
Setting.create(key: 'url', value: 'http://localhost:3000')
Setting.create(key: 'org_name', value: 'CONSUL')
Setting.create(key: 'place_name', value: 'City')

View File

@@ -51,9 +51,6 @@ Setting["facebook_handle"] = nil
Setting["youtube_handle"] = nil
Setting["telegram_handle"] = nil
Setting["instagram_handle"] = nil
Setting["blog_url"] = nil
Setting["transparency_url"] = nil
Setting["opendata_url"] = "/opendata"
# Public-facing URL of the app.
Setting["url"] = "http://example.com"