- <%= image_tag("icon_home_debate.svg", size: "168x168") %> + <%= image_tag("icon_home_debate.png", size: "168x168", alt: t("welcome.debates.title")) %>

<%= t("welcome.debates.title") %>

<%= t("welcome.debates.description") %>

- <%= image_tag("icon_home_proposal.svg", size: "168x168") %> + <%= image_tag("icon_home_proposal.png", size: "168x168", alt: t("welcome.proposal.title")) %>

<%= t("welcome.proposal.title") %>

<%= t("welcome.proposal.description") %>

- <%= image_tag("icon_home_decide.svg", size: "168x168") %> + <%= image_tag("icon_home_decide.png", size: "168x168", alt: t("welcome.decide.title")) %>

<%= t("welcome.decide.title") %>

<%= t("welcome.decide.description") %>

- <%= image_tag("icon_home_done.svg", size: "168x168") %> + <%= image_tag("icon_home_do.png", size: "168x168", alt: t("welcome.do.title")) %>

<%= t("welcome.do.title") %>

<%= t("welcome.do.description") %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 5557f3610..50f75770b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,6 +2,7 @@ en: locale: English layouts: header: + logo: "Madrid" external_link_transparency: Transparency external_link_transparency_url: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Transparencia?vgnextfmt=default&vgnextchannel=20fd850769797310VgnVCM2000000c205a0aRCRD" external_link_opendata: Open data @@ -317,6 +318,7 @@ en: manage: all: "You are not authorized to %{action} %{subject}." welcome: + highlights: "Highlights: " signed_in_home_title: Recent activity debates: title: "Debate" diff --git a/config/locales/es.yml b/config/locales/es.yml index 0fffc05cc..0cf8ef035 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -2,6 +2,7 @@ es: locale: "Español" layouts: header: + logo: "Madrid" external_link_transparency: Transparencia external_link_transparency_url: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Transparencia?vgnextfmt=default&vgnextchannel=20fd850769797310VgnVCM2000000c205a0aRCRD" external_link_opendata: Datos abiertos @@ -317,6 +318,7 @@ es: manage: all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}." welcome: + highlights: "Portada: " signed_in_home_title: Actividad reciente debates: title: "Debates" From 72b6126f30fd397739a7e1b9df3fb3fa5ad90c0f Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 14 Oct 2015 12:40:26 +0200 Subject: [PATCH 36/37] uses the month (%m) instead of the minute (%M) in the proposal code --- app/models/proposal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/proposal.rb b/app/models/proposal.rb index b14d2e194..f7c1c5078 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -65,7 +65,7 @@ class Proposal < ActiveRecord::Base end def code - "#{Setting.value_for("proposal_code_prefix")}-#{created_at.strftime('%Y-%M')}-#{id}" + "#{Setting.value_for("proposal_code_prefix")}-#{created_at.strftime('%Y-%m')}-#{id}" end def after_commented From 4783d28bf4a9db5069b7d6a19b4e26c1e8c05d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 14 Oct 2015 12:49:18 +0200 Subject: [PATCH 37/37] fix test --- spec/models/proposal_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/proposal_spec.rb b/spec/models/proposal_spec.rb index ac7c1edfb..6e5acb379 100644 --- a/spec/models/proposal_spec.rb +++ b/spec/models/proposal_spec.rb @@ -125,7 +125,7 @@ describe Proposal do it "should have a code" do Setting.find_by(key: "proposal_code_prefix").update(value: "TEST") proposal = create(:proposal) - expect(proposal.code).to eq "TEST-#{proposal.created_at.strftime('%Y-%M')}-#{proposal.id}" + expect(proposal.code).to eq "TEST-#{proposal.created_at.strftime('%Y-%m')}-#{proposal.id}" end describe "#editable?" do