diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index a98e8f256..586628556 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -623,19 +623,28 @@ footer { } } -.tag-cloud { +.categories { - h3 { - border-top: 2px solid $brand; + a { + background: $highlight; + border-radius: rem-calc(6); display: inline-block; - font-family: $font-family-sans-serif; - font-size: rem-calc(16); - margin: -1px 0 rem-calc(12); - padding-top: $line-height/4; - text-transform: uppercase; + font-size: $small-font-size; + margin-bottom: $line-height/3; + padding: $line-height/4 $line-height/3; + text-decoration: none; } } +h3.sidebar-title { + border-top: 2px solid $brand; + display: inline-block; + font-size: rem-calc(16); + margin: -1px 0 rem-calc(12); + padding-top: $line-height/4; + text-transform: uppercase; +} + // 05. Auth pages // - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/views/proposals/_categories.html.erb b/app/views/proposals/_categories.html.erb index 61ee995df..4d429b055 100644 --- a/app/views/proposals/_categories.html.erb +++ b/app/views/proposals/_categories.html.erb @@ -1,9 +1,9 @@ -

<%= t("shared.tags_cloud.categories") %>

+
- \ No newline at end of file + \ No newline at end of file diff --git a/app/views/proposals/_form.html.erb b/app/views/proposals/_form.html.erb index 9eb8dcce7..af1d219d3 100644 --- a/app/views/proposals/_form.html.erb +++ b/app/views/proposals/_form.html.erb @@ -39,7 +39,7 @@ <%= f.text_field :external_url, placeholder: t("proposals.form.proposal_external_url"), label: false %> -
+
<%= f.label :geozone_id, t("spending_proposals.form.geozone") %> <%= f.select :geozone_id, geozone_select_options, {include_blank: t("geozones.none"), label: false} %>
diff --git a/app/views/proposals/_geozones.html.erb b/app/views/proposals/_geozones.html.erb index cf2eb37db..ccaa21e65 100644 --- a/app/views/proposals/_geozones.html.erb +++ b/app/views/proposals/_geozones.html.erb @@ -1,7 +1,6 @@ -

<%= t("shared.tags_cloud.districts") %>

+
- <%= link_to map_proposals_path, id: 'map' do %> <%= image_tag("map.jpg") %> <% end %> \ No newline at end of file diff --git a/app/views/proposals/map.html.erb b/app/views/proposals/map.html.erb index 9609c2eb5..84c7721f2 100644 --- a/app/views/proposals/map.html.erb +++ b/app/views/proposals/map.html.erb @@ -1 +1 @@ -<%= render 'shared/map', new_url_path: new_proposal_path %> \ No newline at end of file +<%= render 'shared/map', new_url_path: new_proposal_path %> diff --git a/app/views/shared/_map.html.erb b/app/views/shared/_map.html.erb index 359266751..f7d409dba 100644 --- a/app/views/shared/_map.html.erb +++ b/app/views/shared/_map.html.erb @@ -1,49 +1,52 @@ -
+
+
-

<%= t("map.title") %>

+

<%= t("map.title") %>

- <%= image_tag("map.jpg", usemap: "#map") %> +
+
+
    + <% @geozones.each do |geozone| %> +
  • <%= link_to geozone.name, proposals_path(search: geozone.name) %>
  • + <% end %> +
+
- - <% @geozones.each do |geozone| %> - <%= geozone.name %> - <% end %> - -
+
+ <%= image_tag("map.jpg", usemap: "#map") %> +
-
- <% @geozones.each do |geozone| %> -
<%= link_to geozone.name, proposals_path(search: geozone.name) %>
- <% end %> -
-
+ + <% @geozones.each do |geozone| %> + <%= geozone.name %> + <% end %> + +
-

<%= t("map.proposal_for_district") %>

+

<%= t("map.proposal_for_district") %>

-
<%= form_for(@resource, url: new_url_path, method: :get ) do |f| %> -
+
<%= f.label :geozone_id, t("map.select_district") %> <%= f.select :geozone_id, geozone_select_options, {include_blank: t("geozones.none"), label: false} %>
-
+
<%= f.submit(class: "button radius", value: t("map.start_proposal")) %>
<% end %>
+
+ +
- -
- -
\ No newline at end of file diff --git a/app/views/shared/_tag_cloud.html.erb b/app/views/shared/_tag_cloud.html.erb index 7caf943d0..06bf85c2b 100644 --- a/app/views/shared/_tag_cloud.html.erb +++ b/app/views/shared/_tag_cloud.html.erb @@ -1,6 +1,6 @@
-

<%= t("shared.tags_cloud.tags") %>

+
<% tag_cloud @tag_cloud, %w[s m l] do |tag, css_class| %> diff --git a/config/locales/es.yml b/config/locales/es.yml index c61df1114..848a14bf9 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -264,7 +264,7 @@ es: proposal_title: Título de la propuesta proposal_video_url: Enlace a vídeo externo proposal_video_url_note: Puedes añadir un enlace a YouTube o Vimeo - tags_instructions: "Etiqueta esta propuesta. Puedes elegir entre categorias propuestas o introducir las que desees" + tags_instructions: "Etiqueta esta propuesta. Puedes elegir entre las categorías propuestas o introducir las que desees" tags_label: Temas tag_category_label: "Categorías" tags_placeholder: "Escribe las etiquetas que desees separadas por una coma (',')"