removes provisional transparency page
This commit is contained in:
committed by
Alberto Garcia Cabeza
parent
d5c898867b
commit
c47f5e84b6
@@ -34,9 +34,6 @@ class PagesController < ApplicationController
|
||||
def participation
|
||||
end
|
||||
|
||||
def transparency
|
||||
end
|
||||
|
||||
def proposals_info
|
||||
end
|
||||
|
||||
|
||||
@@ -7,16 +7,12 @@ module ApplicationHelper
|
||||
request.path == '/'
|
||||
end
|
||||
|
||||
def transparency_page?
|
||||
request.path == '/transparency'
|
||||
end
|
||||
|
||||
def opendata_page?
|
||||
request.path == '/opendata'
|
||||
end
|
||||
|
||||
def header_css
|
||||
home_page? || transparency_page? || opendata_page? ? '' : 'results'
|
||||
home_page? || opendata_page? ? '' : 'results'
|
||||
end
|
||||
|
||||
# if current path is /debates current_path_with_query_params(foo: 'bar') returns /debates?foo=bar
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
<div class="small-12 medium-4 column">
|
||||
<h4>
|
||||
<%= link_to t("layouts.footer.transparency_title"), "/transparency" %>
|
||||
<%= link_to t("layouts.footer.transparency_title"), t("layouts.footer.transparency_url") %>
|
||||
</h4>
|
||||
<p><%= t("layouts.footer.transparency_text") %></p>
|
||||
</div>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<div class="row">
|
||||
<%= render "shared/locale_switcher" %>
|
||||
<div class="external-links">
|
||||
<%= link_to t("layouts.header.participation_html"), root_path, class: ("selected" unless current_page?("/transparency") || current_page?("/opendata")) %> |
|
||||
<%= link_to t("layouts.header.external_link_transparency"), "https://transparencia.madrid.es/" %> |
|
||||
<%= link_to t("layouts.header.participation_html"), root_path, class: ("selected" unless current_page?("/opendata")) %> |
|
||||
<%= link_to t("layouts.header.external_link_transparency"), t("layouts.header.external_link_transparency_url") %> |
|
||||
<%= link_to t("layouts.header.external_link_opendata"), "/opendata", class: ("selected" if current_page?("/opendata")) %> |
|
||||
<div class="social inline-block">
|
||||
<%= link_to "https://twitter.com/abriendomadrid", target: "_blank", title: t("social.twitter") do %>
|
||||
@@ -35,6 +35,7 @@
|
||||
<li class="name">
|
||||
<%= link_to root_path do %>
|
||||
<%= image_tag('header_logo_madrid.png', class: 'show-for-medium-up left', size: '80x80', alt: t("layouts.header.logo")) %>
|
||||
|
||||
<% if opendata_page? %>
|
||||
<%= t("layouts.header.open_gov", open: "#{t('layouts.header.open')}") %> <span>|</span>
|
||||
<span class="logo-site"><%= t("layouts.header.open_data") %></span>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<% provide :title do %><%= t('pages.titles.transparency') %><% end %>
|
||||
<div class="page row-full">
|
||||
<div class="row">
|
||||
<div class="alert-box info radius text small-12 column">
|
||||
<p><%= t('pages.while_unfinished_html') %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -7,6 +7,7 @@ en:
|
||||
header:
|
||||
logo: "Madrid"
|
||||
external_link_transparency: "Transparency"
|
||||
external_link_transparency_url: "https://transparencia.madrid.es"
|
||||
external_link_opendata: "Open data"
|
||||
external_link_opendata_url: "http://datos.madrid.es"
|
||||
external_link_blog: "Blog"
|
||||
@@ -38,6 +39,7 @@ en:
|
||||
participation_title: "Participation"
|
||||
participation_text: "Decide how to shape the Madrid you want to live in."
|
||||
transparency_title: "Transparency"
|
||||
transparency_url: "https://transparencia.madrid.es"
|
||||
transparency_text: "Find out anything about the Madrid City Council."
|
||||
open_data_title: "Open data"
|
||||
open_data_text: "Every detail about the City Council is yours to access."
|
||||
|
||||
@@ -7,6 +7,7 @@ es:
|
||||
header:
|
||||
logo: "Madrid"
|
||||
external_link_transparency: "Transparencia"
|
||||
external_link_transparency_url: "https://transparencia.madrid.es"
|
||||
external_link_opendata: "Datos abiertos"
|
||||
external_link_opendata_url: "http://datos.madrid.es"
|
||||
external_link_blog: "Blog"
|
||||
@@ -38,6 +39,7 @@ es:
|
||||
participation_title: "Participación"
|
||||
participation_text: "Decide cómo debe ser la ciudad de Madrid que quieres."
|
||||
transparency_title: "Transparencia"
|
||||
transparency_url: "https://transparencia.madrid.es"
|
||||
transparency_text: "Obtén cualquier información sobre el Ayuntamiento de Madrid."
|
||||
open_data_title: "Datos Abiertos"
|
||||
open_data_text: "Todos los datos del Ayuntamiento son tuyos."
|
||||
|
||||
@@ -3,7 +3,6 @@ en:
|
||||
titles:
|
||||
more_information: "More information"
|
||||
privacy: "Privacy Policy"
|
||||
transparency: "Transparency"
|
||||
opendata: "Open Data"
|
||||
conditions: "Terms of use"
|
||||
accessibility: "Accessibility"
|
||||
|
||||
@@ -3,7 +3,6 @@ es:
|
||||
titles:
|
||||
more_information: "Más información"
|
||||
privacy: "Política de Privacidad"
|
||||
transparency: "Transparencia"
|
||||
opendata: "Datos abiertos"
|
||||
conditions: "Condiciones de uso"
|
||||
accessibility: "Accesibilidad"
|
||||
|
||||
@@ -269,7 +269,6 @@ Rails.application.routes.draw do
|
||||
get "/more_information", to: "pages#more_information"
|
||||
get "/opendata", to: "pages#opendata"
|
||||
get "/participation", to: "pages#participation"
|
||||
get "/transparency", to: "pages#transparency"
|
||||
get "/proposals_info", to: "pages#proposals_info"
|
||||
get "/participation_facts", to: "pages#participation_facts"
|
||||
get "/participation_world", to: "pages#participation_world"
|
||||
|
||||
@@ -25,11 +25,6 @@ describe PagesController do
|
||||
end
|
||||
|
||||
describe 'Provisional pages' do
|
||||
it 'should include a transparency page' do
|
||||
get :transparency
|
||||
expect(response).to be_ok
|
||||
end
|
||||
|
||||
it 'should include a opendata page' do
|
||||
get :opendata
|
||||
expect(response).to be_ok
|
||||
|
||||
Reference in New Issue
Block a user