From f9909573a360f006cd29ac05f35364e257c044ae Mon Sep 17 00:00:00 2001 From: Bertocq Date: Thu, 15 Feb 2018 21:48:10 +0100 Subject: [PATCH 01/22] Make config.time_zone configurable at secrets.yml --- config/application.rb | 2 +- config/secrets.yml.example | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index e851bc345..7cd7052d4 100644 --- a/config/application.rb +++ b/config/application.rb @@ -32,7 +32,7 @@ module Consul # Add lib to the autoload path config.autoload_paths << Rails.root.join('lib') - config.time_zone = 'Madrid' + config.time_zone = Rails.application.secrets.time_zone config.active_job.queue_adapter = :delayed_job # CONSUL specific custom overrides diff --git a/config/secrets.yml.example b/config/secrets.yml.example index 5157e350c..8dab81809 100644 --- a/config/secrets.yml.example +++ b/config/secrets.yml.example @@ -1,4 +1,5 @@ default: &default + time_zone: 'Madrid' secret_key_base: 56792feef405a59b18ea7db57b4777e855103882b926413d4afdfb8c0ea8aa86ea6649da4e729c5f5ae324c0ab9338f789174cf48c544173bc18fdc3b14262e4 maps: &maps @@ -40,6 +41,7 @@ staging: <<: *apis preproduction: + time_zone: 'Madrid' secret_key_base: "" server_name: "" rollbar_server_token: "" @@ -57,6 +59,7 @@ preproduction: <<: *apis production: + time_zone: 'Madrid' secret_key_base: "" server_name: "" rollbar_server_token: "" From 5b1ac0a6cef37987892c5a8f656e72419af781cd Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 7 Mar 2018 00:55:23 +0100 Subject: [PATCH 02/22] Adds correct url on budget investment twitter share --- app/views/budgets/investments/_votes.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/budgets/investments/_votes.html.erb b/app/views/budgets/investments/_votes.html.erb index c2870d76c..39bb95fdb 100644 --- a/app/views/budgets/investments/_votes.html.erb +++ b/app/views/budgets/investments/_votes.html.erb @@ -40,7 +40,8 @@ <% if user_voted_for && setting['twitter_handle'] %> <% end %> From 995449d73308bfcc52c29e57cf3c321bdca0beb0 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 16 Feb 2018 13:28:30 +0100 Subject: [PATCH 03/22] Adds share buttons and refactors processes header --- .../legislation/processes/_header.html.erb | 59 ++++++++++--------- .../processes/_header_full.html.erb | 44 +++++--------- config/locales/en/legislation.yml | 7 +-- config/locales/es/legislation.yml | 7 +-- 4 files changed, 51 insertions(+), 66 deletions(-) diff --git a/app/views/legislation/processes/_header.html.erb b/app/views/legislation/processes/_header.html.erb index d228673de..3c0d358f9 100644 --- a/app/views/legislation/processes/_header.html.erb +++ b/app/views/legislation/processes/_header.html.erb @@ -1,34 +1,37 @@ -<% if header == :small %> -
-
-
-

<%= process.title %>

-
-
+
+
+
+ <%= back_link_to legislation_processes_path %> +

<%= @process.title %>

- - -<% else %> - <%= render 'legislation/processes/header_full', process: @process %> -<% end %> +
diff --git a/app/views/legislation/processes/_header_full.html.erb b/app/views/legislation/processes/_header_full.html.erb index 4505a9ba5..c1d490331 100644 --- a/app/views/legislation/processes/_header_full.html.erb +++ b/app/views/legislation/processes/_header_full.html.erb @@ -1,32 +1,16 @@ -
-
-
- <%= back_link_to legislation_processes_path %> -

- <%= process.title %> -

-
+<% if @process.description.present? %> +

<%= t("legislation.processes.header.description") %>

+ <%= markdown @process.description %> +<% end %> + +<% if @process.additional_info.present? %> + -
-
- <% if process.description.present? %> -

<%= t('.description') %>

- <%= markdown process.description %> - <% end %> -
- <% if process.additional_info.present? %> - - <% end %> -
- - <% if process.additional_info.present? %> - - <% end %> -
+ + <%= t("legislation.processes.header.additional_info") %> + +<% end %> diff --git a/config/locales/en/legislation.yml b/config/locales/en/legislation.yml index 00f2263f4..b0f387997 100644 --- a/config/locales/en/legislation.yml +++ b/config/locales/en/legislation.yml @@ -47,15 +47,14 @@ en: text_comments: Comments processes: header: - view_process_information: View process information + additional_info: Additional information + description: Description + more_info: More information and context proposals: empty_proposals: There are no proposals debate: empty_questions: There aren't any questions participate: Participate in the debate - header_full: - description: Description - more_info: More information and context index: filter: Filter filters: diff --git a/config/locales/es/legislation.yml b/config/locales/es/legislation.yml index 9249abe01..e4654f6a6 100644 --- a/config/locales/es/legislation.yml +++ b/config/locales/es/legislation.yml @@ -47,15 +47,14 @@ es: text_comments: Comentarios processes: header: - view_process_information: Ver información del proceso + additional_info: Información adicional + description: En qué consiste + more_info: Más información y contexto proposals: empty_proposals: No hay propuestas debate: empty_questions: No hay preguntas participate: Realiza tus aportaciones al debate previo participando en los siguientes temas. - header_full: - description: En qué consiste - more_info: Más información y contexto index: filter: Filtro filters: From 4b381eef9bad88253cf727820c7d096f90bb1f36 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 16 Feb 2018 13:28:41 +0100 Subject: [PATCH 04/22] Removes unused js --- app/assets/javascripts/legislation.js.coffee | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/assets/javascripts/legislation.js.coffee b/app/assets/javascripts/legislation.js.coffee index 303d4c98e..9cf27055a 100644 --- a/app/assets/javascripts/legislation.js.coffee +++ b/app/assets/javascripts/legislation.js.coffee @@ -1,10 +1,6 @@ App.Legislation = initialize: -> - $('#js-toggle-small-debate').on - click: -> - $(this).find($('span')).toggleClass('icon-angle-up') - $('form#new_legislation_answer input.button').hide() $('form#new_legislation_answer input[type=radio]').on click: -> From ca0d134c0bb5a730e964f89b0ab936f6616ceeb2 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 16 Feb 2018 14:07:10 +0100 Subject: [PATCH 05/22] Removes unused css --- app/assets/stylesheets/legislation_process.scss | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 042348f42..6af9478ae 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -15,12 +15,6 @@ // 01. Utils // --------- -$grey-heading: #e6e6e6; -$border-dark: darken($border, 10%); - -.grey-heading { - background: $grey-heading; -} // 02. Hero // -------- @@ -39,13 +33,6 @@ $border-dark: darken($border, 10%); } } - .debate-add-info { - border-top: 1px solid $border-dark; - margin-top: $line-height; - padding-top: $line-height; - - } - .title { font-weight: bold; text-transform: uppercase; From 9186a825a778b33638cccb747c6dba7f8c100dd4 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 16 Feb 2018 14:12:59 +0100 Subject: [PATCH 06/22] Uses rem-calc function instead of explicit units --- .../stylesheets/legislation_process.scss | 172 +++++++++--------- 1 file changed, 85 insertions(+), 87 deletions(-) diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 6af9478ae..84882495c 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -53,7 +53,7 @@ @include breakpoint(medium) { margin-top: $line-height * 2; - padding: 0.5em 1em; + padding: rem-calc(10) rem-calc(20); } h3 { @@ -79,10 +79,9 @@ .legislation-process-list { border-bottom: 1px solid $medium-gray; - margin: 0 1rem 1rem; + margin: 0 rem-calc(16) rem-calc(16); ul { - list-style: none; margin: 0 auto; margin-bottom: 0; @@ -125,7 +124,7 @@ margin-bottom: 0; @include breakpoint(medium) { - margin-bottom: 1rem; + margin-bottom: rem-calc(16); } } } @@ -140,16 +139,16 @@ // ---------------- .debate-chooser { - padding: 2rem 1rem; + padding: rem-calc(32) rem-calc(16); @include breakpoint(medium) { .debate-chooser { - padding: 2rem 3rem; + padding: rem-calc(32) rem-calc(48); } } .debate-block { - margin-bottom: 2.5rem; + margin-bottom: rem-calc(40); .debate-type { text-transform: uppercase; @@ -158,7 +157,7 @@ font-size: $small-font-size; .icon-debates { - margin-left: 0.2rem; + margin-left: rem-calc(3); } } @@ -173,12 +172,12 @@ color: #6d6d6d; .icon-comments { - margin-right: 0.2rem; + margin-right: rem-calc(3); } } .debate-info { - padding: 1rem; + padding: rem-calc(16); background: #f4f4f4; } } @@ -297,12 +296,12 @@ .control-indicator { position: absolute; - top: 0.95rem; - left: 0.95rem; + top: 15px; + left: 15px; display: block; - width: 1rem; - height: 1rem; - line-height: 1rem; + width: rem-calc(16); + height: rem-calc(16); + line-height: rem-calc(16); font-size: 65%; text-align: center; border: 2px solid #9c9c9c; @@ -316,7 +315,7 @@ // --------------------- .debate-draft { - padding: 10rem 2rem 15rem; + padding: rem-calc(160) rem-calc(32) rem-calc(240); display: block; background: #f2f2f2; @@ -338,13 +337,13 @@ // --------------------------- .legislation-allegation { - padding-top: 1rem; + padding-top: rem-calc(16); .headline { margin-bottom: 0; .headline-small { - padding-top: 0.75rem; + padding-top: rem-calc(12); } } @@ -365,19 +364,19 @@ } .icon-checkmark-circle { - font-size: 1.5rem; + font-size: rem-calc(24); vertical-align: bottom; color: $text-medium; - margin-right: 0.5rem; + margin-right: rem-calc(8); } .button-subscribed { - margin-top: 1rem; + margin-top: rem-calc(16); border: 1px solid #d1d1d1; background: #f2f2f2; @include breakpoint(medium) { - padding: 0.5em 1em; + padding: rem-calc(10) rem-calc(20); } h3 { @@ -399,25 +398,25 @@ .draft-panels { position: relative; - padding: 2rem 0; + padding: rem-calc(32) 0; .draft-chooser { - margin-bottom: 2rem; + margin-bottom: rem-calc(32); h3 { vertical-align: top; display: inline-block; font-weight: 400; - margin-right: 0.5rem; + margin-right: rem-calc(8); } span { - margin-left: 0.25rem; + margin-left: rem-calc(4); font-style: italic; font-size: $small-font-size; color: $text-medium; vertical-align: top; - line-height: 2.35rem; + line-height: rem-calc(37); } .select-box { @@ -444,7 +443,7 @@ } .button { - margin-top: 1rem; + margin-top: rem-calc(16); @include breakpoint(medium) { margin-top: 0; @@ -456,8 +455,8 @@ @include breakpoint(medium) { display: flex; - padding-left: 0.9375rem; - padding-right: 0.9375rem; + padding-left: rem-calc(15); + padding-right: rem-calc(15); } .calc-index { @@ -508,42 +507,42 @@ .draft-panel { text-transform: uppercase; font-weight: 700; - padding: 0.5rem 1rem; + padding: rem-calc(8) rem-calc(16); color: #696969; background: #f2f2f2; font-size: $small-font-size; .icon-comments { - margin-right: 0.25rem; + margin-right: rem-calc(4); } .icon-banner { line-height: 0; color: $text-medium; vertical-align: sub; - margin-right: 0.25rem; + margin-right: rem-calc(4); } } .draft-index { ul:first-child { - font-size: 1rem; + font-size: rem-calc(16); text-decoration: underline; - margin-left: 2.25rem; - margin-top: 1.5rem; + margin-left: rem-calc(36); + margin-top: $line-height; } ul { list-style: none; li { - margin-bottom: 1rem; + margin-bottom: rem-calc(16); } .open::before { cursor: pointer; position: absolute; - margin-left: -1.25rem; + margin-left: rem-calc(-20); font-family: 'icons'; content: '\58'; -webkit-font-smoothing: antialiased; @@ -553,7 +552,7 @@ .closed::before { cursor: pointer; position: absolute; - margin-left: -1.25rem; + margin-left: rem-calc(-20); font-family: 'icons'; content: '\5a'; -webkit-font-smoothing: antialiased; @@ -564,21 +563,21 @@ .draft-text { position: relative; - padding: 1rem; + padding: rem-calc(16); @include breakpoint(medium) { - padding: 2rem 2rem 2rem 3rem; - }; + padding: rem-calc(32) rem-calc(32) rem-calc(32) rem-calc(48); + } h2 { font-weight: 400; - margin-bottom: 2rem; - margin-top: 2rem; + margin-bottom: rem-calc(32); + margin-top: rem-calc(32); } h3 { font-weight: 400; - margin-bottom: 1rem; + margin-bottom: rem-calc(16); } .anchor::before { @@ -589,7 +588,7 @@ left: 0; @include breakpoint(medium) { - left: 1.5rem; + left: 24px; } } @@ -625,12 +624,11 @@ text-transform: uppercase; font-weight: 700; color: #696969; - margin-top: 4rem; + margin-top: rem-calc(64); transform: rotate(-90deg); filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } } - } } @@ -674,9 +672,9 @@ .show-comments { width: 105%; background: #fafafa; - padding: 0.25rem 2.5rem 0.25rem 0.25rem; + padding: rem-calc(4) rem-calc(40) rem-calc(4) rem-calc(4); border: 1px solid $border; - margin-bottom: 1rem; + margin-bottom: rem-calc(16); p { margin-bottom: 0; @@ -705,15 +703,15 @@ .comment-box { width: rem-calc(375); - padding: 1rem; + padding: rem-calc(4); background: #f9f9f9; border: 1px solid $border; display: block; - margin-bottom: 2rem; + margin-bottom: rem-calc(32); .button { font-size: $small-font-size; - padding: 0.5em 1em; + padding: rem-calc(10) rem-calc(20); } .publish-comment { @@ -722,8 +720,8 @@ .comment-header { color: #838383; - padding-bottom: 0.5rem; - margin-bottom: 1rem; + padding-bottom: rem-calc(8); + margin-bottom: rem-calc(16); border-bottom: 1px solid $border; .comment-number { @@ -732,7 +730,7 @@ } .icon-comment { - margin-right: 0.5rem; + margin-right: rem-calc(8); } a .icon-expand { @@ -746,7 +744,7 @@ position: relative; .participation-not-allowed { - padding: 1.25rem 0.5rem; + padding: rem-calc(20) rem-calc(8); } } @@ -754,17 +752,17 @@ position: relative; .participation-not-allowed { - font-size: 0.875rem; + font-size: rem-calc(14); height: rem-calc(50); - padding: 0.85rem 0.75rem; + padding: $line-height / 2; top: -18px; } } .comment-input { - padding-bottom: 4rem; - margin-bottom: 1rem; - margin-top: 1rem; + padding-bottom: rem-calc(64); + margin-bottom: rem-calc(16); + margin-top: rem-calc(16); border-bottom: 1px solid $border; .comment-advice { @@ -772,7 +770,7 @@ border-right: 1px solid #d0d0d0; border-left: 1px solid #d0d0d0; width: 100%; - padding: 0.5rem; + padding: rem-calc(8); display: inline-block; font-size: $small-font-size; background: #dfdfdf; @@ -795,7 +793,7 @@ border-left: 1px solid #d0d0d0; width: 100%; height: rem-calc(200); - margin-bottom: 0.5rem; + margin-bottom: rem-calc(8); } .comment-actions { @@ -810,19 +808,19 @@ .comment { border-bottom: 1px solid $border; - padding-bottom: 0.75rem; - margin-bottom: 1rem; + padding-bottom: $line-height / 2; + margin-bottom: rem-calc(16); font-size: $small-font-size; .comment-text { - margin-bottom: 0.5rem; + margin-bottom: rem-calc(8); p { line-height: 1.5; font-size: $small-font-size; &:last-child { - margin-bottom: 0.5rem; + margin-bottom: rem-calc(8); } } } @@ -852,11 +850,11 @@ display: inline-block; .comment-votes-number { - margin-right: 0.25rem; + margin-right: rem-calc(4); display: inline-block; &::after { - margin-left: 0.25rem; + margin-left: rem-calc(4); content: '|'; } } @@ -874,7 +872,7 @@ } .icon-like { - margin-right: 0.25rem; + margin-right: rem-calc(4); } } } @@ -903,10 +901,10 @@ margin-left: 0; li { - margin-bottom: 1rem; + margin-bottom: rem-calc(16); &::before { - margin-right: 0.25rem; + margin-right: rem-calc(4); content: '—'; } } @@ -914,7 +912,7 @@ .changes-link { display: block; - margin-left: 1rem; + margin-left: rem-calc(16); font-size: $small-font-size; @include breakpoint(medium) { @@ -932,7 +930,7 @@ color: #999; line-height: 0; vertical-align: sub; - margin-left: 0.5rem; + margin-left: rem-calc(8); } &:active, @@ -955,14 +953,14 @@ .comment-section { background: #fafafa; - padding: 1rem; + padding: rem-calc(16); border: 1px solid #dee0e3; - margin-top: 0.25rem; - margin-bottom: 1rem; + margin-top: rem-calc(4); + margin-bottom: rem-calc(16); } .comment { - margin-bottom: 3rem; + margin-bottom: rem-calc(48); a { span { @@ -977,11 +975,11 @@ } .icon-expand { - margin-left: 0.25rem; + margin-left: rem-calc(4); } .icon-comments { - margin-right: 0.25rem; + margin-right: rem-calc(4); } &:active, @@ -999,7 +997,7 @@ .legislation-comment { .annotation-share-comment { - margin-bottom: 2rem; + margin-bottom: rem-calc(32); } .pull-right { @@ -1008,10 +1006,10 @@ .comment-section { background: #fafafa; - padding: 1rem; + padding: rem-calc(16); border: 1px solid #dee0e3; - margin-top: 0.25rem; - margin-bottom: 1rem; + margin-top: rem-calc(4); + margin-bottom: rem-calc(16); } .comment { @@ -1029,11 +1027,11 @@ } .icon-expand { - margin-left: 0.25rem; + margin-left: rem-calc(4); } .icon-comments { - margin-right: 0.25rem; + margin-right: rem-calc(4); } &:active, From d679c1eb79826f393874df5b238082bc687c2f96 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 16 Feb 2018 14:26:21 +0100 Subject: [PATCH 07/22] Removes sandbox folder --- .../sandbox/_legislation_process_nav.html.erb | 33 - app/views/sandbox/admin_cms.html.erb | 62 -- app/views/sandbox/admin_cms_page.html.erb | 61 -- .../sandbox/admin_legislation_debate.html.erb | 79 -- ...admin_legislation_debate_question.html.erb | 103 -- .../sandbox/admin_legislation_draft.html.erb | 55 - .../admin_legislation_draft_edit.html.erb | 971 ------------------ .../sandbox/admin_legislation_index.html.erb | 52 - .../sandbox/admin_legislation_info.html.erb | 134 --- app/views/sandbox/admin_test_sandbox.html.erb | 61 -- app/views/sandbox/index.html.erb | 13 - .../sandbox/legislation_allegations.html.erb | 465 --------- app/views/sandbox/legislation_debate.html.erb | 146 --- .../sandbox/legislation_debate_quiz.html.erb | 57 - app/views/sandbox/legislation_draft.html.erb | 74 -- .../legislation_draft_changes.html.erb | 58 -- .../legislation_draft_comment.html.erb | 68 -- .../legislation_draft_comments.html.erb | 83 -- app/views/sandbox/legislation_home.html.erb | 67 -- 19 files changed, 2642 deletions(-) delete mode 100644 app/views/sandbox/_legislation_process_nav.html.erb delete mode 100644 app/views/sandbox/admin_cms.html.erb delete mode 100644 app/views/sandbox/admin_cms_page.html.erb delete mode 100644 app/views/sandbox/admin_legislation_debate.html.erb delete mode 100644 app/views/sandbox/admin_legislation_debate_question.html.erb delete mode 100644 app/views/sandbox/admin_legislation_draft.html.erb delete mode 100644 app/views/sandbox/admin_legislation_draft_edit.html.erb delete mode 100644 app/views/sandbox/admin_legislation_index.html.erb delete mode 100644 app/views/sandbox/admin_legislation_info.html.erb delete mode 100644 app/views/sandbox/admin_test_sandbox.html.erb delete mode 100644 app/views/sandbox/index.html.erb delete mode 100644 app/views/sandbox/legislation_allegations.html.erb delete mode 100644 app/views/sandbox/legislation_debate.html.erb delete mode 100644 app/views/sandbox/legislation_debate_quiz.html.erb delete mode 100644 app/views/sandbox/legislation_draft.html.erb delete mode 100644 app/views/sandbox/legislation_draft_changes.html.erb delete mode 100644 app/views/sandbox/legislation_draft_comment.html.erb delete mode 100644 app/views/sandbox/legislation_draft_comments.html.erb delete mode 100644 app/views/sandbox/legislation_home.html.erb diff --git a/app/views/sandbox/_legislation_process_nav.html.erb b/app/views/sandbox/_legislation_process_nav.html.erb deleted file mode 100644 index a99710845..000000000 --- a/app/views/sandbox/_legislation_process_nav.html.erb +++ /dev/null @@ -1,33 +0,0 @@ - diff --git a/app/views/sandbox/admin_cms.html.erb b/app/views/sandbox/admin_cms.html.erb deleted file mode 100644 index 7b9553014..000000000 --- a/app/views/sandbox/admin_cms.html.erb +++ /dev/null @@ -1,62 +0,0 @@ -Crear nueva página -

Editar páginas

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NombreCreadaÚltima actualizaciónEstado
- Política de privacidad - - Hace 20 días - - Hace 15 días - - Publicada - - - Ver página - - - Borrar página -
- FAQ - - Hace 6 días - - Hace 3 días - - - Borrador - - - Ver página - - - Borrar página -
diff --git a/app/views/sandbox/admin_cms_page.html.erb b/app/views/sandbox/admin_cms_page.html.erb deleted file mode 100644 index ea65176b8..000000000 --- a/app/views/sandbox/admin_cms_page.html.erb +++ /dev/null @@ -1,61 +0,0 @@ - - - - Volver - - - - -
- -
-

Editar Política de privacidad

- -
- - - - - - - - - -
- - -
-
-
-
-
-

Opciones

- - - -
- -

Estado

- - -
- - -
- -
- - -
- - -
- -
-
- - diff --git a/app/views/sandbox/admin_legislation_debate.html.erb b/app/views/sandbox/admin_legislation_debate.html.erb deleted file mode 100644 index de976de40..000000000 --- a/app/views/sandbox/admin_legislation_debate.html.erb +++ /dev/null @@ -1,79 +0,0 @@ -
-
- - - Volver - -

Licencias urbanísticas, declaraciones responsables y comunicaciones previas

- - - -
-
-

Preguntas asociadas a este proceso

-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
TítuloOpciones de respuestaRespuestasComentarios
- Esta es mi pregunta - -
    -
  • - No (0) -
  • -
  • - Nunca (0) -
  • -
-
0 respuestas0 comentarios
- Esta es mi pregunta - -
    -
  • - No (0) -
  • -
  • - Nunca (0) -
  • -
-
0 respuestas0 comentarios
-
-
diff --git a/app/views/sandbox/admin_legislation_debate_question.html.erb b/app/views/sandbox/admin_legislation_debate_question.html.erb deleted file mode 100644 index f5f6d90d6..000000000 --- a/app/views/sandbox/admin_legislation_debate_question.html.erb +++ /dev/null @@ -1,103 +0,0 @@ -
-
- - - Volver - - -

Licencias urbanísticas, declaraciones responsables y comunicaciones previas

- - - -
-
-

Editar “Esta es mi pregunta”

-
-
- Borrar -
-
- -
-
-
- -
-
- -
-
- -
-
- -
- -
-
-
-
-
- -
- - -
-
-
- -
-
-
-
- -
- - -
-
-
-
- - -
- -
-
- -
-
-
- -
-
diff --git a/app/views/sandbox/admin_legislation_draft.html.erb b/app/views/sandbox/admin_legislation_draft.html.erb deleted file mode 100644 index 363e9fc78..000000000 --- a/app/views/sandbox/admin_legislation_draft.html.erb +++ /dev/null @@ -1,55 +0,0 @@ -
-
- - - Volver - - -

Licencias urbanísticas, declaraciones responsables y comunicaciones previas

- - - -
-
-

Versiones del borrador

-
- - -
- - - - - - - - - - - - - - - - - - - - -
TítuloCreadoEstadoComentariosVersión final
- Versión 1 - 2016-12-16draftfalse
-
-
diff --git a/app/views/sandbox/admin_legislation_draft_edit.html.erb b/app/views/sandbox/admin_legislation_draft_edit.html.erb deleted file mode 100644 index 3ca991c1d..000000000 --- a/app/views/sandbox/admin_legislation_draft_edit.html.erb +++ /dev/null @@ -1,971 +0,0 @@ -
-
- - - Volver - - -

Licencias urbanísticas, declaraciones responsables y comunicaciones previas

- - - - -
-
- -
- Ojo, has editado el texto. Para conservar de forma permanente los cambios, no te olvides de hacer click en Guardar. -
-
- -
-

Versión 1

-
-
- Borrar -
-
- -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
- -
-
- -
-
- -
-
-
- -
- -
-
- - Usa Markdown para formatear el texto -
-
- -
-
-
Consul | Editando Versión 3 del proceso Licencias urbanísticas, declaraciones
- -
- - -
- - Pantalla completa -
-
- -
-
-
- -
-
-
- -
-
- -
-
- -
-
- -
-
-
diff --git a/app/views/sandbox/admin_legislation_index.html.erb b/app/views/sandbox/admin_legislation_index.html.erb deleted file mode 100644 index 48bf0f950..000000000 --- a/app/views/sandbox/admin_legislation_index.html.erb +++ /dev/null @@ -1,52 +0,0 @@ -
-
-
-

Procesos de legislación colaborativa

-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
ProcesoComentarios
- Licencias urbanísticas, declaraciones responsables y comunicaciones previas - - 123 comentarios - - Borrar -
- Licencias urbanísticas, declaraciones responsables y comunicaciones previas - - 123 comentarios - - Borrar -
-
diff --git a/app/views/sandbox/admin_legislation_info.html.erb b/app/views/sandbox/admin_legislation_info.html.erb deleted file mode 100644 index 2abb322aa..000000000 --- a/app/views/sandbox/admin_legislation_info.html.erb +++ /dev/null @@ -1,134 +0,0 @@ -
-
- - - Volver - -

Licencias urbanísticas, declaraciones responsables y comunicaciones previas

- - - -
- -
-
- -
-
- Inicio -
-
- -
-
- Fin -
-
- -
- - -
- -
-
- Inicio -
-
- -
-
- Fin -
-
- -
- -
- -
-
- Inicio -
-
- -
-
- Fin -
-
- -
- -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - Usa Markdown para formatear el texto -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
diff --git a/app/views/sandbox/admin_test_sandbox.html.erb b/app/views/sandbox/admin_test_sandbox.html.erb deleted file mode 100644 index 69b7b521e..000000000 --- a/app/views/sandbox/admin_test_sandbox.html.erb +++ /dev/null @@ -1,61 +0,0 @@ - diff --git a/app/views/sandbox/index.html.erb b/app/views/sandbox/index.html.erb deleted file mode 100644 index 9d6303698..000000000 --- a/app/views/sandbox/index.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -
-
-
-

Welcome to sandbox

- -
    - <% @templates.each do |template| %> -
  • <%= link_to template, "/sandbox/" + template %>
  • - <% end %> -
-
-
-
diff --git a/app/views/sandbox/legislation_allegations.html.erb b/app/views/sandbox/legislation_allegations.html.erb deleted file mode 100644 index 534979654..000000000 --- a/app/views/sandbox/legislation_allegations.html.erb +++ /dev/null @@ -1,465 +0,0 @@ -
-
-
-

- Licencias urbanísticas, declaraciones responsables y comunicaciones previas -

-
- -
- -
-
-

En qué consiste

-

Se va a modificar la regulación del procedimiento para la autorización de obras y la apertura de locales comerciales o empresariales para simplificar y agilizar trámites.

-
-
-

A quién va dirigido

-
    -
  • Ciudadanos con vivienda en propiedad
  • -
  • Profesionales de la construcción y reformas
  • -
  • Empresarios con locales comerciales
  • -
-
-
-

Cómo puedes participar

-
    -
  • Participa en el debate previo para identificar los problemas a solucionar, la necesidad de esta normativa, sus objetivos y posibles soluciones alternativas.
  • -
  • Después del debate el Ayuntamiento presentará un borrador del texto al cual podrás realizar comentarios y alegaciones.
  • -
-
-
-
-

En qué consiste

-

El ayuntamiento de Madrid somete...

-
-
-
- -
- - - -
-
- -
- <%= render 'sandbox/legislation_process_nav' %> - -
-
-
-

Estás viendo la revisión

-
- - ver resumen de cambios -
- actualizada el 13 nov 2017 -
- -
- -
- -
-
-
Texto
-
-
-

TÍTULO PRELIMINAR. Objeto y definiciones

-

Artículo 1.

-
-

1.Esta Ordenanza tiene por objeto establecer las condiciones generales que deben cumplir los distintos elementos integrados en el denominado mobiliario urbano, tanto en lo que se refiere a su emplazamiento como a las características propias de dichos elementos.

-
-

2.Para determinar las condiciones relativas a la explotación del mobiliario urbano y a los requisitos que, en su caso, hayan de reunir los respectivos titulares, se estará a la normativa específica establecida para los distintos elementos y a las señaladas en el título que autorice su instalación y funcionamiento.

-

3.El mobiliario urbano deberá cumplir los criterios estéticos y de diseño para las distintas zonas de Madrid, aprobados por el titular del Área de Gobierno competente en materia de mobiliario urbano. En aquellos casos en los que la normativa aplicable así lo exija, deberá obtenerse dictamen de la comisión competente en materia de protección del patrimonio histórico y artístico.

-

(redacción dada por la Ordenanza de 30 de marzo 2011 de Adaptación al ámbito de la Ciudad de Madrid de las previsiones contenidas en la normativa estatal y autonómica de transposición de la Directiva 2006/123/CE)

- -

Artículo 2.

-

1. A los efectos de esta Ordenanza se entiende por mobiliario urbano el conjunto de instalaciones o elementos que ocupan un espacio público, y cuya finalidad sea la de atender una necesidad social o prestar un determinado servicio al vecindario.

-
-

2.En el concepto indicado estarán incluidas tanto las instalaciones y elementos de titularidad pública, explotados directamente o por concesión: bancos, bolardos, marquesinas, papeleras, etcétera, como los colocados por particulares, previa autorización municipal, tales como quioscos o puestos fijos, de temporada u ocasionales.

-
-

(apartado 2 del art. 2, redacción dada por la Ordenanza de 30 de marzo 2011 de Adaptación al ámbito de la Ciudad de Madrid de las previsiones contenidas en la normativa estatal y autonómica de transposición de la Directiva 2006/123/ CE)

- -

Artículo 3.

-

Constituirá criterio general para la implantación de mobiliario urbano la armonización de las finalidades asignadas al mismo con las funciones generales de los espacios públicos, la coordinación de los distintos elementos procurando, cuando fuera posible, la polivalencia de cada uno de ellos para evitar la ocupación intensiva de aquellos espacios y la adecuación, tanto por su emplazamiento como por su diseño, al entono urbano en que se localicen.

-

TÍTULO I. DE LOS EMPLAZAMIENTOS DE MOBILIARIO URBANO

- -

Artículo 4.

-

Cuando se trate de mobiliario urbano de titularidad pública, el número, localización y características de sus emplazamientos estará determinado en el correspondiente acuerdo de implantación o bases de concesión, si fuera municipal, y en el de autorización, si fuese promovido por otras entidades.

- -

Artículo 5.

- -

Los interesados tendrán reconocidos específicamente, además de los establecidos con carácter general en otras normas, los siguientes derechos: -

1. Iniciar inmediatamente el ejercicio de la actividad cuando esté sometida a declaración responsable, o una vez obtenida la licencia de primera ocupación y funcionamiento.

-

2. Obtener la licencia de actividad y funcionamiento en el plazo establecido en cada caso, sin perjuicio de los efectos establecidos en la legislación aplicable en el ámbito del silencio administrativo.

-

3. No presentar documentación que obre en poder de los servicios municipales

-

4. Presentar quejas, reclamaciones y sugerencias sobre el funcionamiento de los servicios municipales y de las entidades colaboradoras urbanísticas.

- -

Artículo 6.

-
-

1. Durante la realización de las obras o la implantación de la actividad y previamente al acto de comprobación, no se considerarán modificación de la licencia o de la declaración responsable las alteraciones que se hayan producido en el edificio, local o sus instalaciones cuando las mismas se ajusten a la normativa que las regula, salvo que afecten a las condiciones de volumen y forma de los edificios, a la posición y ocupación del edificio en la parcela, a la edificabilidad o superficie del local, al número de locales. Si no se ajustasen se aplicarán los mecanismos de restablecimiento de la legalidad urbanística.

-
- -

Se considerará modificación el cambio de actividad, salvo que la nueva actividad o la inicial con la incorporación de alguna complementaria de ella, tenga la misma consideración y exigencias urbanísticas, ambientales, de seguridad y salubridad. Las variaciones producidas se relacionarán en el acta de comprobación, sin necesidad de tramitar licencia o declaración aparte, quedando legalizadas con la concesión de la licencia de primera ocupación y funcionamiento o el acto de comprobación posterior. Cuando las variaciones se hayan concretado en obras que requieran proyecto de obras de edificación de acuerdo con el artículo 2.2 de la Ley de Ordenación de la Edificación se incorporará el correspondiente proyecto modificado.

-

2. Durante el ejercicio de las actividades con licencia o declaración responsable, y con las mismas salvedades indicadas en el punto 1, no se considerará modificación de la licencia o declaración las variaciones que se hayan producido en la actividad, el local o sus instalaciones cuando no alteren las condiciones de repercusión ambiental, seguridad o salubridad por debajo de las exigencias técnicas establecidas para las mismas por la normativa vigente. Tampoco se considerará modificación el cambio de actividad o la incorporación de alguna complementaria a la misma cuando esta tenga la misma consideración y exigencias urbanísticas, ambientales, de seguridad y salubridad que la primera.

-

Las obras que han dado lugar a estas variaciones se legalizarán a través de licencia o declaración responsable, dependiendo de la entidad de las mismas. La licencia que se conceda o la declaración se limitarán a recoger el contenido de la modificación, haciendo referencia a la licencia del establecimiento.

-

3. En el caso de actividades de espectáculos públicos y recreativas también se considerará modificación de licenciao declaración responsable el cambio de actividad de las indicadas en el Catálogo, así como el incremento del aforo.

-

4. Cuando la modificación sea requerida de oficio, el requerimiento indicará las alteraciones existentes, motivando la necesidad de la modificación de la licencia o de la declaración responsable.

-

5. Durante la ejecución de las obras autorizadas no precisarán modificación de licencia las variaciones en el número de plazas de aparcamiento que no supongan disminución de la dotación obligatoria de servicio del edificio, sin perjuicio de su constancia documentada en el expediente.

-
-
- -
-
-
- Comentarios -
-
- -
- Comentarios -
- -
-
- -
34 comentarios
- -
-
-
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
- -
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
- -
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
-
- -
- -
-
- -
34 comentarios
- -
-
-
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
- -
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
- -
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
-
- - - -
- -
-
- -
34 comentarios
- -
-
-
-
-

En la actualidad, el número de autobuses de la EMT suman 1.900 de los cuales 740 funcionan con gas natural (el 42%), con los 170 que se van a adquirir en 2016, el cómputo sube a 900, lo que significa casi el 50% del total. Con tecnología híbrida existen 23 y se prevé comprar 30 más, lo que supone 53 vehículos, y hay 20 minibuses eléctricos puros. Por último, el 80% de los autobuses de diésel están catalizados a niveles euro4 y euro5 (470), “con lo que podríamos asegurar que el 78% de nuestra flota es verde.

-

En la actualidad, el número de autobuses de la EMT suman 1.900 de los cuales 740 funcionan con gas natural (el 42%), con los 170 que se van a adquirir en 2016, el cómputo sube a 900, lo que significa casi el 50% del total. Con tecnología híbrida existen 23 y se prevé comprar 30 más, lo que supone 53 vehículos, y hay 20 minibuses eléctricos puros. Por último, el 80% de los autobuses de diésel están catalizados a niveles euro4 y euro5 (470), “con lo que podríamos asegurar que el 78% de nuestra flota es verde.

-
-
-
- -
-
-
Sin votos
- - -
-
-
- -
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
- -
-
-

Mi comentario va encaminado a que no nos equivoquemos al pensar que esta es una opci...

-
-
-
- - -
-
-
Sin votos
- - -
-
-
-
- -
- -
- -
-
-
diff --git a/app/views/sandbox/legislation_debate.html.erb b/app/views/sandbox/legislation_debate.html.erb deleted file mode 100644 index af390f209..000000000 --- a/app/views/sandbox/legislation_debate.html.erb +++ /dev/null @@ -1,146 +0,0 @@ -
-
-
-

Colabora en la elaboración de la normativa sobre

-

- Licencias urbanísticas, declaraciones responsables y comunicaciones previas -

-
- -
- -
-
-

En qué consiste

-

Se va a modificar la regulación del procedimiento para la autorización de obras y la apertura de locales comerciales o empresariales para simplificar y agilizar trámites.

-
-
-

A quién va dirigido

-
    -
  • Ciudadanos con vivienda en propiedad
  • -
  • Profesionales de la construcción y reformas
  • -
  • Empresarios con locales comerciales
  • -
-
-
-

Cómo puedes participar

-
    -
  • Participa en el debate previo para identificar los problemas a solucionar, la necesidad de esta normativa, sus objetivos y posibles soluciones alternativas.
  • -
  • Después del debate el Ayuntamiento presentará un borrador del texto al cual podrás realizar comentarios y alegaciones.
  • -
-
-
-
-

En qué consiste

-

1.Esta Ordenanza tiene por objeto establecer las condiciones generales que deben cumplir los distintos elementos integrados en el denominado mobiliario urbano, tanto en lo que se refiere a su emplazamiento como a las características propias de dichos elementos.

- -

2.Para determinar las condiciones relativas a la explotación del mobiliario urbano y a los requisitos que, en su caso, hayan de reunir los respectivos titulares, se estará a la normativa específica establecida para los distintos elementos y a las señaladas en el título que autorice su instalación y funcionamiento.

- -

Preámbulo

-

3.El mobiliario urbano deberá cumplir los criterios estéticos y de diseño para las distintas zonas de Madrid, aprobados por el titular del Área de Gobierno competente en materia de mobiliario urbano. En aquellos casos en los que la normativa aplicable así lo exija, deberá obtenerse dictamen de la comisión competente en materia de protección del patrimonio histórico y artístico.

- -

(redacción dada por la Ordenanza de 30 de marzo 2011 de Adaptación al ámbito de la Ciudad de Madrid de las previsiones contenidas en la normativa estatal y autonómica de transposición de la Directiva 2006/123/CE)

-
-
-
- - -
- -
- <%= render 'sandbox/legislation_process_nav' %> - -
-
-
-
- - - - - - - - - - - -
-
- -
-
Realiza tus aportaciones al debate previo participando en los siguientes temas.
-
- -
-
-
diff --git a/app/views/sandbox/legislation_debate_quiz.html.erb b/app/views/sandbox/legislation_debate_quiz.html.erb deleted file mode 100644 index 11b839640..000000000 --- a/app/views/sandbox/legislation_debate_quiz.html.erb +++ /dev/null @@ -1,57 +0,0 @@ -
- -
-
-

¿Considera necesario realizar una nueva regulación para facilitar y simplificar las obras en viviendas, o la modificación y apertura de locales comerciales o empresariales?

-
-
- - - -
-
-
- -
-
- - -
- -
-
- COMENTARIOS -
-
diff --git a/app/views/sandbox/legislation_draft.html.erb b/app/views/sandbox/legislation_draft.html.erb deleted file mode 100644 index 298c778bb..000000000 --- a/app/views/sandbox/legislation_draft.html.erb +++ /dev/null @@ -1,74 +0,0 @@ -
-
-
-

Colabora en la elaboración de la normativa sobre

-

- Licencias urbanísticas, declaraciones responsables y comunicaciones previas -

-
- -
- -
-
-

En qué consiste

-

Se va a modificar la regulación del procedimiento para la autorización de obras y la apertura de locales comerciales o empresariales para simplificar y agilizar trámites.

-
-
-

A quién va dirigido

-
    -
  • Ciudadanos con vivienda en propiedad
  • -
  • Profesionales de la construcción y reformas
  • -
  • Empresarios con locales comerciales
  • -
-
-
-

Cómo puedes participar

-
    -
  • Participa en el debate previo para identificar los problemas a solucionar, la necesidad de esta normativa, sus objetivos y posibles soluciones alternativas.
  • -
  • Después del debate el Ayuntamiento presentará un borrador del texto al cual podrás realizar comentarios y alegaciones.
  • -
-
-
-
-

En qué consiste

-

El ayuntamiento de Madrid somete...

-
-
-
- - -
- -
- <%= render 'sandbox/legislation_process_nav' %> - -
-
-
- -
-

Esta fase del proceso todavía no está abierta

-

Suscríbete al proceso para recibir un aviso en el momento en que se abra.

-
- -
- -
- -
-
-
-
diff --git a/app/views/sandbox/legislation_draft_changes.html.erb b/app/views/sandbox/legislation_draft_changes.html.erb deleted file mode 100644 index 033dc3015..000000000 --- a/app/views/sandbox/legislation_draft_changes.html.erb +++ /dev/null @@ -1,58 +0,0 @@ -
-
-
-

- Licencias urbanísticas, declaraciones responsables y comunicaciones previas -

-
- -
- -
- - - -
-
- -
- <%= render 'sandbox/legislation_process_nav' %> - -
-
-
-

Estás viendo la revisión

-
- -
- actualizada el 13 nov 2017 -
- -
- -
-
-

El 12 nov 2016 se publica un nuevo borrador de la normativa sobre Licencias urbanísticas, que incorpora las aportaciones de la ciudadanía realizadas a través de la web de decide.madrid.es. A continuación se detallan los principales cambios que se han introducido en el texto:

- -
    -
  • Se detalla el ámbito de actuación ver apartado
  • -
  • Se reescribe la introducción al Capítulo I para incorporar sugerencias ciudadanas ver apartado
  • -
  • Se detalla el ámbito de actuación ver apartado
  • -
  • Se reescribe la introducción al Capítulo I para incorporar sugerencias ciudadanas ver apartado
  • -
  • Se detalla el ámbito de actuación ver apartado
  • -
  • Se reescribe la introducción al Capítulo I para incorporar sugerencias ciudadanas ver apartado
  • -
-
-
-
diff --git a/app/views/sandbox/legislation_draft_comment.html.erb b/app/views/sandbox/legislation_draft_comment.html.erb deleted file mode 100644 index 0555bab51..000000000 --- a/app/views/sandbox/legislation_draft_comment.html.erb +++ /dev/null @@ -1,68 +0,0 @@ -
-
-
-

- Licencias urbanísticas, declaraciones responsables y comunicaciones previas -

-
- -
- -
- - - -
-
- -
- <%= render 'sandbox/legislation_process_nav' %> - -
-
-
-

Comentarios de la versión

-
- -
- actualizada el 13 nov 2017 -
- -
- -
-
-
- Comentarios sobre -
-
-
- 1. Esta ordenanza tiene por objeto regular los medios de intervención administrativa para el control de la legalidad de las actuaciones urbanísticas. -
- -
-
- -
-
- COMENTARIOS -
-
- -
-
-
-
diff --git a/app/views/sandbox/legislation_draft_comments.html.erb b/app/views/sandbox/legislation_draft_comments.html.erb deleted file mode 100644 index fb3507c94..000000000 --- a/app/views/sandbox/legislation_draft_comments.html.erb +++ /dev/null @@ -1,83 +0,0 @@ -
-
-
-

- Licencias urbanísticas, declaraciones responsables y comunicaciones previas -

-
- -
- -
- - - -
-
- -
- <%= render 'sandbox/legislation_process_nav' %> - -
-
-
-

Comentarios de la versión

-
- -
- actualizada el 13 nov 2017 -
- -
- -
-
-
- Comentarios sobre - Ver en contexto -
- 1. Esta ordenanza tiene por objeto regular los medios de intervención administrativa para el control de la legalidad de las actuaciones urbanísticas. -
- 34 comentarios -
- -
- Comentarios sobre - Ver en contexto -
- 1. Esta ordenanza tiene por objeto regular los medios de intervención administrativa para el control de la legalidad de las actuaciones urbanísticas. -
- 34 comentarios -
- -
- Comentarios sobre - Ver en contexto -
- 1. Esta ordenanza tiene por objeto regular los medios de intervención administrativa para el control de la legalidad de las actuaciones urbanísticas. -
- 34 comentarios -
- -
- Comentarios sobre - Ver en contexto -
- 1. Esta ordenanza tiene por objeto regular los medios de intervención administrativa para el control de la legalidad de las actuaciones urbanísticas. -
- 34 comentarios -
-
-
-
diff --git a/app/views/sandbox/legislation_home.html.erb b/app/views/sandbox/legislation_home.html.erb deleted file mode 100644 index eb3ad629b..000000000 --- a/app/views/sandbox/legislation_home.html.erb +++ /dev/null @@ -1,67 +0,0 @@ -
-
-
-

- PROCESOS DESTACADOS -

-
-
-
- -
-
-
    -
  • Procesos activos

  • -
  • Próximamente

  • -
  • Terminados

  • -
-
- -
-
- -
-
-
-
-

Licencias urbanísticas, declaraciones responsables y comunicaciones previas

-

Se va a modificar la regulación del procedimiento para la autorización de obras y la apertura de locales comerciales o empresariales para simplificar y agilizar trámites

-
-
- - -
- -
-
-

Fechas clave:

-
-
- -
-
-
Debate previo
-

15 nov 2016 - 15 dic 2016

-
-
-
Publicación borrador
-

1 dic 2016

-
-
-
Alegaciones
-

1 dic 2016 - 15 dic 2016

-
-
-
Publicación resultados
-

15 feb 2017

-
-
-
- -
-
-
From ee7ca37d185a7a3c19e2d683b043b8dd35a6e9db Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 16 Feb 2018 18:17:14 +0100 Subject: [PATCH 08/22] Removes unused css --- .../stylesheets/legislation_process.scss | 174 +++--------------- .../legislation/annotations/index.html.erb | 2 +- .../legislation/annotations/show.html.erb | 2 +- 3 files changed, 29 insertions(+), 149 deletions(-) diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 84882495c..894e8982d 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -1,22 +1,17 @@ // Table of Contents // -// 01. Utils -// 02. Hero -// 03. Legislation process navigation -// 04. Debate list -// 05. Debate quiz -// 06. Legislation draft -// 07. Legislation allegations -// 08. Legislation changes -// 09. Legislation comments -// 10. Legislation draft comment +// 01. Hero +// 02. Legislation process navigation +// 03. Debate list +// 04. Debate quiz +// 05. Legislation allegations +// 06. Legislation changes +// 07. Legislation comments +// 08. Legislation draft comment // -// 01. Utils -// --------- - -// 02. Hero +// 01. Hero // -------- .legislation-hero { @@ -25,11 +20,14 @@ list-style: none; margin-left: 0; - li::before { - color: #8aa8be; - content: '■'; - padding-right: $line-height / 4; - vertical-align: text-bottom; + li { + + &::before { + color: #8aa8be; + content: '■'; + padding-right: $line-height / 4; + vertical-align: text-bottom; + } } } @@ -38,40 +36,12 @@ text-transform: uppercase; } - .description { - - li { - - p { - display: inline; - } - } - } - - .button-subscribe { - margin-top: $line-height; - - @include breakpoint(medium) { - margin-top: $line-height * 2; - padding: rem-calc(10) rem-calc(20); - } - - h3 { - margin-bottom: 0; - } - - p { - font-size: $small-font-size; - margin-bottom: 0; - } - - &:hover h3 { - color: #fff; - } + .description li p { + display: inline; } } -// 03. Legislation process navigation +// 02. Legislation process navigation // ---------------------------------- .legislation-process-categories { @@ -89,12 +59,12 @@ } li { + border-bottom: 2px solid transparent; cursor: pointer; display: inline-block; margin-bottom: $line-height; margin-right: $line-height; transition: all 0.4s; - border-bottom: 2px solid transparent; @include breakpoint(medium) { margin-bottom: 0; @@ -135,7 +105,7 @@ } } -// 04. Debate list +// 03. Debate list // ---------------- .debate-chooser { @@ -182,7 +152,7 @@ } } -// 05. Debate quiz +// 04. Debate quiz // --------------- .debate-questions { @@ -311,91 +281,9 @@ } } -// 06. Legislation draft -// --------------------- - -.debate-draft { - padding: rem-calc(160) rem-calc(32) rem-calc(240); - display: block; - background: #f2f2f2; - - button { - height: rem-calc(90); - - h3 { - margin-bottom: 0; - } - - p { - margin-bottom: 0; - font-size: $small-font-size; - } - } -} - -// 07. Legislation allegations +// 05. Legislation allegations // --------------------------- -.legislation-allegation { - padding-top: rem-calc(16); - - .headline { - margin-bottom: 0; - - .headline-small { - padding-top: rem-calc(12); - } - } - - .button-circle { - line-height: 0; - padding: 0; - width: rem-calc(30); - height: rem-calc(30); - border-radius: 50%; - - span { - padding-left: rem-calc(1); - - &::before { - line-height: 1.55; - } - } - } - - .icon-checkmark-circle { - font-size: rem-calc(24); - vertical-align: bottom; - color: $text-medium; - margin-right: rem-calc(8); - } - - .button-subscribed { - margin-top: rem-calc(16); - border: 1px solid #d1d1d1; - background: #f2f2f2; - - @include breakpoint(medium) { - padding: rem-calc(10) rem-calc(20); - } - - h3 { - display: inline-block; - color: $text; - margin-bottom: 0; - } - - p { - margin-bottom: 0; - font-size: $small-font-size; - } - - &:hover h3 { - color: $text; - } - } -} - .draft-panels { position: relative; padding: rem-calc(32) 0; @@ -891,7 +779,7 @@ } } -// 08. Legislation changes +// 06. Legislation changes // ----------------- .legislation-changes { @@ -942,15 +830,11 @@ } } -// 09. Legislation comments +// 07. Legislation comments // ----------------- .legislation-comments { - .pull-right { - float: right; - } - .comment-section { background: #fafafa; padding: rem-calc(16); @@ -991,7 +875,7 @@ } } -// 10. Legislation draft comment +// 08. Legislation draft comment // ----------------- .legislation-comment { @@ -1000,10 +884,6 @@ margin-bottom: rem-calc(32); } - .pull-right { - float: right; - } - .comment-section { background: #fafafa; padding: rem-calc(16); diff --git a/app/views/legislation/annotations/index.html.erb b/app/views/legislation/annotations/index.html.erb index 2b8e4d469..56571cb36 100644 --- a/app/views/legislation/annotations/index.html.erb +++ b/app/views/legislation/annotations/index.html.erb @@ -14,7 +14,7 @@ <% @annotations.each do |annotation| %>
<%= t('.comments_about') %> - + <%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{annotation.id}") do %> <%= t('.see_in_context') %> <% end %> diff --git a/app/views/legislation/annotations/show.html.erb b/app/views/legislation/annotations/show.html.erb index 808474269..2d932fb67 100644 --- a/app/views/legislation/annotations/show.html.erb +++ b/app/views/legislation/annotations/show.html.erb @@ -20,7 +20,7 @@ <%= @annotation.context.try(:html_safe).presence || @annotation.quote %>
- + <%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{@annotation.id}") do %> <%= t('legislation.annotations.index.see_in_context') %> <% end %> From f2e5f6ff768690d97ab617c55ba4c52205f4c8ee Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 19 Feb 2018 17:19:29 +0100 Subject: [PATCH 09/22] Adds specs for additional info button --- spec/features/legislation/processes_spec.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/spec/features/legislation/processes_spec.rb b/spec/features/legislation/processes_spec.rb index 6dbc6f475..73d1f46d9 100644 --- a/spec/features/legislation/processes_spec.rb +++ b/spec/features/legislation/processes_spec.rb @@ -124,6 +124,23 @@ feature 'Legislation' do expect(page).to have_content(document.title) end + + scenario 'show additional info button' do + process = create(:legislation_process, additional_info: "Text for additional info of the process") + + visit legislation_process_path(process) + + expect(page).to have_content("Additional information") + expect(page).to have_content("Text for additional info of the process") + end + + scenario 'do not show additional info button if it is empty' do + process = create(:legislation_process) + + visit legislation_process_path(process) + + expect(page).to_not have_content("Additional information") + end end context 'debate phase' do From 1ab4458785e0d2d3c15c06f0e053c56e59d6f8f1 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 5 Mar 2018 14:20:57 +0100 Subject: [PATCH 10/22] Adds description to legislation process share buttons --- app/views/legislation/processes/_header.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/legislation/processes/_header.html.erb b/app/views/legislation/processes/_header.html.erb index 3c0d358f9..2c3eb22b1 100644 --- a/app/views/legislation/processes/_header.html.erb +++ b/app/views/legislation/processes/_header.html.erb @@ -31,7 +31,9 @@ <%= render partial: 'shared/social_share', locals: { share_title: t("proposals.show.share"), title: @process.title, - url: legislation_process_url(@process) } %> + url: legislation_process_url(@process), + description: @process.title + } %>
From e0480675ed8609ee6c605d14701c189955d6813a Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 7 Mar 2018 13:38:43 +0100 Subject: [PATCH 11/22] Replaces hardcoded social share buttons tag with correct partial --- app/views/budgets/investments/_votes.html.erb | 8 ++++++-- app/views/legislation/proposals/_featured_votes.html.erb | 6 +++++- app/views/legislation/proposals/_votes.html.erb | 6 +++++- app/views/proposals/_featured_votes.html.erb | 6 +++++- app/views/proposals/_votes.html.erb | 6 +++++- app/views/spending_proposals/_votes.html.erb | 8 +++++--- 6 files changed, 31 insertions(+), 9 deletions(-) diff --git a/app/views/budgets/investments/_votes.html.erb b/app/views/budgets/investments/_votes.html.erb index 39bb95fdb..8f5241f4c 100644 --- a/app/views/budgets/investments/_votes.html.erb +++ b/app/views/budgets/investments/_votes.html.erb @@ -40,8 +40,12 @@ <% if user_voted_for && setting['twitter_handle'] %> <% end %>
diff --git a/app/views/legislation/proposals/_featured_votes.html.erb b/app/views/legislation/proposals/_featured_votes.html.erb index 3177812a4..719782387 100644 --- a/app/views/legislation/proposals/_featured_votes.html.erb +++ b/app/views/legislation/proposals/_featured_votes.html.erb @@ -37,7 +37,11 @@ <% if voted_for?(@featured_proposals_votes, proposal) %> <% if setting['twitter_handle'] %> <% end %> <% end %> diff --git a/app/views/legislation/proposals/_votes.html.erb b/app/views/legislation/proposals/_votes.html.erb index f56c0ead2..8452bed9f 100644 --- a/app/views/legislation/proposals/_votes.html.erb +++ b/app/views/legislation/proposals/_votes.html.erb @@ -72,7 +72,11 @@ <% if voted_for?(@legislation_proposal_votes, proposal) && setting['twitter_handle'] %> <% end %>
diff --git a/app/views/proposals/_featured_votes.html.erb b/app/views/proposals/_featured_votes.html.erb index 3177812a4..719782387 100644 --- a/app/views/proposals/_featured_votes.html.erb +++ b/app/views/proposals/_featured_votes.html.erb @@ -37,7 +37,11 @@ <% if voted_for?(@featured_proposals_votes, proposal) %> <% if setting['twitter_handle'] %> <% end %> <% end %> diff --git a/app/views/proposals/_votes.html.erb b/app/views/proposals/_votes.html.erb index fb41357af..98723513c 100644 --- a/app/views/proposals/_votes.html.erb +++ b/app/views/proposals/_votes.html.erb @@ -60,7 +60,11 @@ <% if voted_for?(@proposal_votes, proposal) && setting['twitter_handle'] %> <% end %>
diff --git a/app/views/spending_proposals/_votes.html.erb b/app/views/spending_proposals/_votes.html.erb index e14d19bcb..647f4ff88 100644 --- a/app/views/spending_proposals/_votes.html.erb +++ b/app/views/spending_proposals/_votes.html.erb @@ -36,8 +36,10 @@ <% end %> <% if user_voted_for && setting['twitter_handle'] %> - + <%= render partial: 'shared/social_share', locals: { + title: spending_proposal.title, + url: spending_proposal_url(spending_proposal), + description: spending_proposal.title + } %> <% end %>
From d4b88f1fae583f8f7769dbee939b2048bee01356 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 2 Mar 2018 20:35:33 +0100 Subject: [PATCH 12/22] Adds description for social share buttons --- app/views/budgets/investments/_investment_show.html.erb | 3 ++- app/views/debates/show.html.erb | 3 ++- app/views/legislation/proposals/show.html.erb | 3 ++- app/views/polls/_poll_header.html.erb | 3 ++- app/views/proposals/share.html.erb | 3 ++- app/views/proposals/show.html.erb | 3 ++- app/views/spending_proposals/show.html.erb | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb index 782c26a4f..142fa49e1 100644 --- a/app/views/budgets/investments/_investment_show.html.erb +++ b/app/views/budgets/investments/_investment_show.html.erb @@ -149,7 +149,8 @@ share_title: t("budgets.investments.show.share"), title: investment.title, image_url: image_absolute_url(investment.image, :thumb), - url: budget_investment_url(budget_id: investment.budget_id, id: investment.id) + url: budget_investment_url(investment.budget, investment), + description: investment.title } %> <% if current_user %> diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index e369a6056..d563cfaa9 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -59,7 +59,8 @@ <%= render partial: 'shared/social_share', locals: { share_title: t("debates.show.share"), title: @debate.title, - url: debate_url(@debate) + url: debate_url(@debate), + description: @debate.title } %>
diff --git a/app/views/legislation/proposals/show.html.erb b/app/views/legislation/proposals/show.html.erb index 0e71e6f7f..c2d0b441c 100644 --- a/app/views/legislation/proposals/show.html.erb +++ b/app/views/legislation/proposals/show.html.erb @@ -103,7 +103,8 @@ <%= render partial: 'shared/social_share', locals: { share_title: t("proposals.show.share"), title: @proposal.title, - url: proposal_url(@proposal) + url: proposal_url(@proposal), + description: @proposal.summary } %> diff --git a/app/views/polls/_poll_header.html.erb b/app/views/polls/_poll_header.html.erb index db4918ab4..2c7025065 100644 --- a/app/views/polls/_poll_header.html.erb +++ b/app/views/polls/_poll_header.html.erb @@ -20,7 +20,8 @@ <%= render partial: 'shared/social_share', locals: { share_title: t("shared.share"), title: @poll.name, - url: poll_url(@poll) + url: poll_url(@poll), + description: @poll.name } %> diff --git a/app/views/proposals/share.html.erb b/app/views/proposals/share.html.erb index f86882401..b011a4c92 100644 --- a/app/views/proposals/share.html.erb +++ b/app/views/proposals/share.html.erb @@ -23,7 +23,8 @@ <%= render partial: 'shared/social_share', locals: { title: @proposal.title, - url: proposal_url(@proposal) + url: proposal_url(@proposal), + description: @proposal.summary } %> <% if @proposal_improvement_path.present? %> diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb index e2a7d0c17..3355251fc 100644 --- a/app/views/proposals/show.html.erb +++ b/app/views/proposals/show.html.erb @@ -186,7 +186,8 @@ <%= render partial: 'shared/social_share', locals: { share_title: t("proposals.show.share"), title: @proposal.title, - url: proposal_url(@proposal) + url: proposal_url(@proposal), + description: @proposal.summary } %> <% if current_user %> diff --git a/app/views/spending_proposals/show.html.erb b/app/views/spending_proposals/show.html.erb index 1b72a1368..c3ebb4517 100644 --- a/app/views/spending_proposals/show.html.erb +++ b/app/views/spending_proposals/show.html.erb @@ -43,7 +43,8 @@ <%= render partial: 'shared/social_share', locals: { share_title: t("spending_proposals.show.share"), title: @spending_proposal.title, - url: spending_proposal_url(@spending_proposal) + url: spending_proposal_url(@spending_proposal), + description: @spending_proposal.title } %> From b72e43168b43cedce90aaa3900aa7c6261635e27 Mon Sep 17 00:00:00 2001 From: Bertocq Date: Tue, 6 Feb 2018 11:17:03 +0100 Subject: [PATCH 13/22] Use user locale instead of default locale to format currencies --- app/helpers/application_helper.rb | 2 +- app/models/budget.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3191a2ab9..c676b052d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -58,7 +58,7 @@ module ApplicationHelper end def format_price(number) - number_to_currency(number, precision: 0, locale: I18n.default_locale) + number_to_currency(number, precision: 0, locale: I18n.locale) end def kaminari_path(url) diff --git a/app/models/budget.rb b/app/models/budget.rb index 9b55dc4a6..6c80e7f1f 100644 --- a/app/models/budget.rb +++ b/app/models/budget.rb @@ -124,7 +124,7 @@ class Budget < ActiveRecord::Base def formatted_amount(amount) ActionController::Base.helpers.number_to_currency(amount, precision: 0, - locale: I18n.default_locale, + locale: I18n.locale, unit: currency_symbol) end From f0dc2a02a508baf523ae64a4ff7ca6e09bb8373f Mon Sep 17 00:00:00 2001 From: Bertocq Date: Thu, 8 Mar 2018 11:42:20 +0100 Subject: [PATCH 14/22] Add Budget#formatted_amount unit test --- spec/models/budget_spec.rb | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/spec/models/budget_spec.rb b/spec/models/budget_spec.rb index 80f0a0c94..72b521861 100644 --- a/spec/models/budget_spec.rb +++ b/spec/models/budget_spec.rb @@ -228,4 +228,38 @@ describe Budget do expect(finished_phase.prev_phase).to eq(reviewing_ballots_phase) end end + + describe "#formatted_amount" do + after do + I18n.locale = :en + end + + it "correctly formats Euros with Spanish" do + budget.update(currency_symbol: '€') + I18n.locale = :es + + expect(budget.formatted_amount(1000.00)).to eq ('1.000 €') + end + + it "correctly formats Dollars with Spanish" do + budget.update(currency_symbol: '$') + I18n.locale = :es + + expect(budget.formatted_amount(1000.00)).to eq ('1.000 $') + end + + it "correctly formats Dollars with English" do + budget.update(currency_symbol: '$') + I18n.locale = :en + + expect(budget.formatted_amount(1000.00)).to eq ('$1,000') + end + + it "correctly formats Euros with English" do + budget.update(currency_symbol: '€') + I18n.locale = :en + + expect(budget.formatted_amount(1000.00)).to eq ('€1,000') + end + end end From 0e9190bc4338cc30e079b22000295e5cd56b9834 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 5 Mar 2018 14:02:38 +0100 Subject: [PATCH 15/22] Adds heading link on different heading message --- app/models/budget/investment.rb | 10 +++--- .../budgets/investments/_ballot.html.erb | 34 +++++++++++++------ .../budgets/investments/_header.html.erb | 2 +- config/locales/en/budgets.yml | 2 +- config/locales/es/budgets.yml | 2 +- spec/features/budgets/ballots_spec.rb | 4 +-- spec/models/budget/investment_spec.rb | 2 +- 7 files changed, 35 insertions(+), 21 deletions(-) diff --git a/app/models/budget/investment.rb b/app/models/budget/investment.rb index c5d4d775d..dff2dd2e0 100644 --- a/app/models/budget/investment.rb +++ b/app/models/budget/investment.rb @@ -208,11 +208,11 @@ class Budget end def reason_for_not_being_ballotable_by(user, ballot) - return permission_problem(user) if permission_problem?(user) - return :not_selected unless selected? - return :no_ballots_allowed unless budget.balloting? - return :different_heading_assigned unless ballot.valid_heading?(heading) - return :not_enough_money_html if ballot.present? && !enough_money?(ballot) + return permission_problem(user) if permission_problem?(user) + return :not_selected unless selected? + return :no_ballots_allowed unless budget.balloting? + return :different_heading_assigned_html unless ballot.valid_heading?(heading) + return :not_enough_money_html if ballot.present? && !enough_money?(ballot) end def permission_problem(user) diff --git a/app/views/budgets/investments/_ballot.html.erb b/app/views/budgets/investments/_ballot.html.erb index 605caebc7..f65ec6c74 100644 --- a/app/views/budgets/investments/_ballot.html.erb +++ b/app/views/budgets/investments/_ballot.html.erb @@ -42,17 +42,31 @@ <% if reason.present? && !ballot.has_investment?(investment) %> -