decidim-core 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/decidim_core_manifest.js +1 -0
- data/app/assets/images/decidim/process.svg +10 -0
- data/app/assets/javascripts/decidim.js.es6 +2 -0
- data/app/assets/javascripts/decidim/editor.js.es6 +2 -2
- data/app/assets/javascripts/decidim/filters.js.es6 +1 -1
- data/app/assets/javascripts/decidim/form_filter.component.js.es6 +26 -5
- data/app/assets/javascripts/decidim/form_filter.component.test.js +1 -18
- data/app/assets/javascripts/decidim/foundation.js.es6 +1 -0
- data/app/assets/javascripts/decidim/history.js.es6 +35 -0
- data/app/assets/javascripts/decidim/orders.js.es6 +28 -0
- data/app/assets/stylesheets/decidim/_decidim.scss +1 -0
- data/app/assets/stylesheets/decidim/email.css +21 -3
- data/app/assets/stylesheets/decidim/extras/_leaflet.scss +4 -2
- data/app/assets/stylesheets/decidim/extras/_quill.scss +8 -0
- data/app/assets/stylesheets/decidim/extras/_register_form.scss +9 -0
- data/app/assets/stylesheets/decidim/modules/_buttons.scss +19 -3
- data/app/assets/stylesheets/decidim/utils/_mixins.scss +8 -4
- data/app/commands/decidim/authorize_user.rb +9 -4
- data/app/commands/decidim/create_omniauth_registration.rb +4 -2
- data/app/commands/decidim/create_registration.rb +4 -1
- data/app/commands/decidim/invite_user.rb +3 -1
- data/app/commands/decidim/update_notifications_settings.rb +31 -0
- data/app/constraints/decidim/current_feature.rb +16 -15
- data/app/controllers/concerns/decidim/action_authorization.rb +73 -0
- data/app/controllers/concerns/decidim/feature_settings.rb +2 -5
- data/app/controllers/concerns/decidim/needs_authorization.rb +5 -1
- data/app/controllers/concerns/decidim/user_profile.rb +1 -0
- data/app/controllers/decidim/application_controller.rb +12 -0
- data/app/controllers/decidim/authorizations_controller.rb +10 -12
- data/app/controllers/decidim/cookie_policy_controller.rb +15 -0
- data/app/controllers/decidim/devise/confirmations_controller.rb +4 -0
- data/app/controllers/decidim/devise/invitations_controller.rb +4 -0
- data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +10 -3
- data/app/controllers/decidim/devise/passwords_controller.rb +4 -0
- data/app/controllers/decidim/devise/registrations_controller.rb +21 -0
- data/app/controllers/decidim/devise/sessions_controller.rb +4 -0
- data/app/controllers/decidim/notifications_settings_controller.rb +31 -0
- data/app/controllers/decidim/pages_controller.rb +17 -6
- data/app/controllers/decidim/participatory_processes_controller.rb +5 -5
- data/app/forms/decidim/notifications_settings_form.rb +17 -0
- data/app/forms/decidim/registration_form.rb +2 -1
- data/app/helpers/decidim/action_authorization_helper.rb +82 -0
- data/app/helpers/decidim/application_helper.rb +2 -0
- data/app/helpers/decidim/authorization_form_helper.rb +1 -1
- data/app/helpers/decidim/cookies_helper.rb +11 -0
- data/app/helpers/decidim/decidim_form_helper.rb +18 -0
- data/app/helpers/decidim/language_chooser_helper.rb +18 -0
- data/app/helpers/decidim/layout_helper.rb +0 -5
- data/app/helpers/decidim/localized_locales_helper.rb +1 -1
- data/app/helpers/decidim/meta_tags_helper.rb +104 -0
- data/app/helpers/decidim/orders_helper.rb +28 -0
- data/app/helpers/decidim/resource_helper.rb +46 -6
- data/app/mailers/decidim/application_mailer.rb +2 -2
- data/app/mailers/decidim/decidim_devise_mailer.rb +0 -1
- data/app/mailers/decidim/newsletter_mailer.rb +24 -0
- data/app/models/decidim/abilities/everyone.rb +2 -0
- data/app/models/decidim/feature.rb +30 -0
- data/app/models/decidim/newsletter.rb +24 -0
- data/app/models/decidim/organization.rb +2 -0
- data/app/models/decidim/user.rb +3 -2
- data/app/queries/decidim/highlighted_participatory_processes.rb +10 -0
- data/app/queries/decidim/promoted_participatory_processes.rb +9 -0
- data/app/queries/decidim/public_participatory_processes.rb +10 -0
- data/app/services/decidim/action_authorizer.rb +102 -0
- data/app/services/decidim/resource_search.rb +1 -1
- data/app/uploaders/decidim/official_image_footer_uploader.rb +12 -0
- data/app/uploaders/decidim/official_image_header_uploader.rb +12 -0
- data/app/validators/etiquette_validator.rb +42 -0
- data/app/views/decidim/account/show.html.erb +1 -1
- data/app/views/decidim/authorizations/index.html.erb +4 -4
- data/app/views/decidim/authorizations/new.html.erb +2 -2
- data/app/views/decidim/cookie_policy/accept.js.erb +3 -0
- data/app/views/decidim/devise/confirmations/new.html.erb +3 -1
- data/app/views/decidim/devise/invitations/edit.html.erb +1 -1
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/passwords/edit.html.erb +1 -1
- data/app/views/decidim/devise/passwords/new.html.erb +3 -1
- data/app/views/decidim/devise/registrations/edit.html.erb +2 -1
- data/app/views/decidim/devise/registrations/new.html.erb +13 -1
- data/app/views/decidim/devise/sessions/new.html.erb +3 -1
- data/app/views/decidim/newsletter_mailer/newsletter.html.erb +5 -0
- data/app/views/decidim/notifications_settings/show.html.erb +26 -0
- data/app/views/decidim/pages/index.html.erb +34 -0
- data/app/views/decidim/participatory_process_steps/index.html.erb +1 -1
- data/app/views/decidim/participatory_processes/_participatory_process.html.erb +4 -2
- data/app/views/decidim/participatory_processes/_promoted_process.html.erb +1 -1
- data/app/views/decidim/participatory_processes/index.html.erb +3 -3
- data/app/views/decidim/participatory_processes/show.html.erb +30 -9
- data/app/views/decidim/shared/_action_authorization_modal.html.erb +55 -0
- data/app/views/decidim/shared/_login_modal.html.erb +2 -3
- data/app/views/decidim/shared/_orders.html.erb +15 -0
- data/app/views/decidim/shared/_share_modal.html.erb +33 -0
- data/app/views/devise/mailer/organization_admin_invitation_instructions.html.erb +1 -1
- data/app/views/layouts/decidim/_application.html.erb +12 -0
- data/app/views/layouts/decidim/_cookie_warning.html.erb +8 -0
- data/app/views/layouts/decidim/_footer.html.erb +6 -0
- data/app/views/layouts/decidim/_header.html.erb +7 -9
- data/app/views/layouts/decidim/_language_chooser.html.erb +3 -3
- data/app/views/layouts/decidim/_logo.html.erb +1 -1
- data/app/views/layouts/decidim/_mailer_logo.html.erb +31 -0
- data/app/views/layouts/decidim/_main_nav.html.erb +11 -0
- data/app/views/layouts/decidim/_process_header.html.erb +9 -7
- data/app/views/layouts/decidim/_social_media_links.html.erb +39 -0
- data/app/views/layouts/decidim/_social_meta.html.erb +8 -8
- data/app/views/layouts/decidim/mailer.html.erb +110 -62
- data/app/views/layouts/decidim/participatory_process.html.erb +14 -3
- data/app/views/layouts/decidim/user_profile.html.erb +1 -0
- data/app/views/pages/decidim_page.html.erb +5 -0
- data/app/views/pages/home.html.erb +4 -0
- data/app/views/pages/home/_extended.html.erb +2 -2
- data/app/views/pages/home/_footer_sub_hero.html.erb +12 -0
- data/app/views/pages/home/_hero.html.erb +2 -2
- data/app/views/pages/home/_highlighted_processes.html.erb +2 -2
- data/config/i18n-tasks.yml +6 -2
- data/config/initializers/invisible_captcha.rb +10 -0
- data/config/initializers/mail_previews.rb +4 -0
- data/config/locales/ca.yml +129 -23
- data/config/locales/en.yml +98 -13
- data/config/locales/es.yml +128 -22
- data/config/locales/eu.yml +5 -0
- data/config/routes.rb +13 -5
- data/db/migrate/20170131134349_add_action_permissions_to_decidim_features.rb +5 -0
- data/db/migrate/20170202084913_add_comments_and_replies_notifications_to_users.rb +6 -0
- data/db/migrate/20170203150545_add_newsletter_notifications_to_users.rb +5 -0
- data/db/migrate/20170206083118_rename_extra_info_on_processes.rb +12 -0
- data/db/migrate/20170206142116_add_published_at_to_decidim_features.rb +6 -0
- data/db/migrate/20170207091021_add_social_media_handlers_to_organization.rb +8 -0
- data/db/migrate/20170207093048_add_organization_logo_and_url.rb +7 -0
- data/db/migrate/20170213081133_create_decidim_newsletters.rb +15 -0
- data/db/seeds.rb +29 -4
- data/lib/decidim/attributes.rb +6 -0
- data/lib/decidim/attributes/time_with_zone.rb +13 -0
- data/lib/decidim/authorable.rb +2 -2
- data/lib/decidim/core.rb +11 -0
- data/lib/decidim/core/api.rb +11 -0
- data/lib/decidim/core/api/author_interface.rb +11 -0
- data/lib/decidim/core/api/localized_string_type.rb +11 -0
- data/{app/types/decidim → lib/decidim/core/api}/process_step_type.rb +2 -2
- data/{app/types/decidim → lib/decidim/core/api}/process_type.rb +1 -1
- data/{app/types/decidim → lib/decidim/core/api}/session_type.rb +0 -0
- data/lib/decidim/core/api/translated_field_type.rb +42 -0
- data/{app/types/decidim → lib/decidim/core/api}/user_group_type.rb +1 -1
- data/{app/types/decidim → lib/decidim/core/api}/user_type.rb +1 -1
- data/lib/decidim/core/engine.rb +7 -1
- data/lib/decidim/core/test.rb +1 -0
- data/lib/decidim/core/test/factories.rb +41 -8
- data/lib/decidim/core/test/shared_examples/localised_email.rb +24 -0
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/feature_manifest.rb +11 -0
- data/{app/validators → lib/decidim}/feature_validator.rb +1 -3
- data/lib/decidim/features/base_controller.rb +6 -1
- data/lib/decidim/form_builder.rb +166 -1
- data/lib/decidim/has_feature.rb +2 -1
- data/lib/decidim/resourceable.rb +26 -0
- data/vendor/assets/javascripts/morphdom.js +679 -0
- metadata +174 -49
- data/lib/decidim/has_attachment.rb +0 -32
@@ -19,6 +19,11 @@
|
|
19
19
|
creates a sticky footer-->
|
20
20
|
<!-- Topbar -->
|
21
21
|
<div class="title-bar">
|
22
|
+
<% if current_organization.official_img_header? %>
|
23
|
+
<%= link_to current_organization.official_url, class: "logo-cityhall" do %>
|
24
|
+
<%= image_tag current_organization.official_img_header.url.to_s , alt: current_organization.name %>
|
25
|
+
<% end %>
|
26
|
+
<% end %>
|
22
27
|
<div class="row column topbar">
|
23
28
|
<div class="logo-wrapper">
|
24
29
|
<%= render partial: "layouts/decidim/logo", locals: { organization: current_organization } %>
|
@@ -31,7 +36,7 @@
|
|
31
36
|
</div>
|
32
37
|
<% if current_user %>
|
33
38
|
<div class="topbar__dropmenu topbar__user__logged">
|
34
|
-
<ul class="dropdown menu" data-dropdown-menu>
|
39
|
+
<ul class="dropdown menu" data-dropdown-menu data-close-on-click-inside="false">
|
35
40
|
<li class="is-dropdown-submenu-parent show-for-medium">
|
36
41
|
<%= link_to current_user.name, decidim.account_path %>
|
37
42
|
<ul class="menu is-dropdown-submenu js-append usermenu-off-canvas">
|
@@ -59,14 +64,7 @@
|
|
59
64
|
<div class="show-for-medium" data-set="nav-holder">
|
60
65
|
<nav class="navbar js-append">
|
61
66
|
<div class="row column">
|
62
|
-
|
63
|
-
<li>
|
64
|
-
<%= active_link_to t("menu.home", scope: "decidim"), decidim.root_path, active: :exact, class: "main-nav__link", class_active: "main-nav__link--active" %>
|
65
|
-
</li>
|
66
|
-
<li>
|
67
|
-
<%= active_link_to t("menu.processes", scope: "decidim"), decidim.participatory_processes_path, active: :inclusive, class: "main-nav__link", class_active: "main-nav__link--active" %>
|
68
|
-
</li>
|
69
|
-
</ul>
|
67
|
+
<%= render partial: "layouts/decidim/main_nav" %>
|
70
68
|
</div>
|
71
69
|
</nav>
|
72
70
|
</div>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div class="topbar__dropmenu language-choose">
|
2
|
-
<ul class="dropdown menu" data-dropdown-menu>
|
2
|
+
<ul class="dropdown menu" data-dropdown-menu data-close-on-click-inside="false">
|
3
3
|
<li class="is-dropdown-submenu-parent">
|
4
|
-
<%= link_to t(
|
4
|
+
<%= link_to t("name", scope: "locale") %>
|
5
5
|
<% if available_locales.length > 1 %>
|
6
6
|
<ul class="menu is-dropdown-submenu">
|
7
7
|
<% (available_locales - [I18n.locale.to_s]).each do |locale| %>
|
8
|
-
<li><%= link_to
|
8
|
+
<li><%= link_to locale_name(locale), decidim.locale_path(locale: locale), method: :post%></li>
|
9
9
|
<% end %>
|
10
10
|
</ul>
|
11
11
|
<% end %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<% if organization %>
|
2
|
+
<%= link_to decidim.root_url(host: organization.host) do %>
|
3
|
+
<% if organization.logo.present? %>
|
4
|
+
<%= image_tag organization.logo.medium.url, style: "max-height: 50px", alt: "" %>
|
5
|
+
<% else %>
|
6
|
+
<span><%= organization.name %></span>
|
7
|
+
<style>
|
8
|
+
.logo-wrapper span{
|
9
|
+
color: white;
|
10
|
+
font-weight: 600;
|
11
|
+
font-size: 1.4em;
|
12
|
+
display: inline-block;
|
13
|
+
text-align: left;
|
14
|
+
padding-left: 8px;
|
15
|
+
line-height: 1;
|
16
|
+
position: relative;
|
17
|
+
}
|
18
|
+
.logo-wrapper span:before{
|
19
|
+
content: "";
|
20
|
+
display: block;
|
21
|
+
position: absolute;
|
22
|
+
border-left: 4px solid white;
|
23
|
+
height: 88%;
|
24
|
+
top: 6%; left: 0;
|
25
|
+
}
|
26
|
+
</style>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
<% else %>
|
30
|
+
<%= Decidim.application_name %>
|
31
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<ul class="main-nav">
|
2
|
+
<li>
|
3
|
+
<%= active_link_to t("menu.home", scope: "decidim"), decidim.root_path, active: :exact, class: "main-nav__link", class_active: "main-nav__link--active" %>
|
4
|
+
</li>
|
5
|
+
<li>
|
6
|
+
<%= active_link_to t("menu.processes", scope: "decidim"), decidim.participatory_processes_path, active: :inclusive, class: "main-nav__link", class_active: "main-nav__link--active" %>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<%= active_link_to t("menu.more_information", scope: "decidim"), decidim.pages_path, active: :inclusive, class: "main-nav__link", class_active: "main-nav__link--active" %>
|
10
|
+
</li>
|
11
|
+
</ul>
|
@@ -35,19 +35,21 @@
|
|
35
35
|
<ul>
|
36
36
|
<li class="<%= "is-active" if is_active_link?(decidim.participatory_process_path(current_participatory_process), :exclusive) %>">
|
37
37
|
<%= active_link_to decidim.participatory_process_path(current_participatory_process), active: :exact, class: "process-nav__link", class_active: "is-active" do %>
|
38
|
-
<%=
|
38
|
+
<%= external_icon "decidim/process.svg" %>
|
39
39
|
<%= t ".process_menu_item" %>
|
40
40
|
<% end %>
|
41
41
|
</li>
|
42
42
|
|
43
43
|
<% current_participatory_process.features.each do |feature| %>
|
44
|
-
|
45
|
-
<%=
|
46
|
-
<%=
|
44
|
+
<% if feature.published? || feature == self.try(:current_feature) %>
|
45
|
+
<li class="<%= "is-active" if is_active_link?(decidim.feature_path(current_participatory_process, feature), :inclusive) %>">
|
46
|
+
<%= active_link_to decidim.feature_path(current_participatory_process, feature), class: "process-nav__link", active: :inclusive, class_active: "is-active" do %>
|
47
|
+
<%= feature_icon(feature) %>
|
47
48
|
|
48
|
-
|
49
|
-
|
50
|
-
|
49
|
+
<%= translated_attribute(feature.name) %>
|
50
|
+
<% end %>
|
51
|
+
</li>
|
52
|
+
<% end %>
|
51
53
|
<% end %>
|
52
54
|
</ul>
|
53
55
|
</div>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<div class="medium-4 large-3 column main__footer__social">
|
2
|
+
<ul class="footer-social">
|
3
|
+
<% if current_organization.twitter_handler.present? %>
|
4
|
+
<li>
|
5
|
+
<a class="footer-social__icon" target="_blank" title="Twitter" href="https://twitter.com/<%= current_organization.twitter_handler %>">
|
6
|
+
<%= icon 'twitter', role: 'img', aria_label: 'Twitter' %>
|
7
|
+
</a>
|
8
|
+
</li>
|
9
|
+
<% end %>
|
10
|
+
<% if current_organization.facebook_handler.present? %>
|
11
|
+
<li>
|
12
|
+
<a class="footer-social__icon" target="_blank" title="Facebook" href="https://www.facebook.com/<%= current_organization.facebook_handler %>">
|
13
|
+
<%= icon 'facebook', role: 'img', aria_label: 'Facebook' %>
|
14
|
+
</a>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
17
|
+
<% if current_organization.instagram_handler.present? %>
|
18
|
+
<li>
|
19
|
+
<a class="footer-social__icon" target="_blank" title="Instagram" href="https://www.instagram.com/<%= current_organization.instagram_handler %>">
|
20
|
+
<%= icon 'instagram', role: 'img', aria_label: 'Instagram' %>
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
<% end %>
|
24
|
+
<% if current_organization.youtube_handler.present? %>
|
25
|
+
<li>
|
26
|
+
<a class="footer-social__icon" target="_blank" title="YouTube" href="https://www.youtube.com/<%= current_organization.youtube_handler %>">
|
27
|
+
<%= icon 'youtube', role: 'img', aria_label: 'YouTube' %>
|
28
|
+
</a>
|
29
|
+
</li>
|
30
|
+
<% end %>
|
31
|
+
<% if current_organization.github_handler.present? %>
|
32
|
+
<li>
|
33
|
+
<a class="footer-social__icon" target="_blank" title="GitHub" href="https://www.github.com/<%= current_organization.github_handler %>">
|
34
|
+
<%= icon 'github', role: 'img', aria_label: 'GitHub' %>
|
35
|
+
</a>
|
36
|
+
</li>
|
37
|
+
<% end %>
|
38
|
+
</ul>
|
39
|
+
</div>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<meta name="twitter:card" content="summary_large_image" />
|
2
|
-
<meta name="twitter:site" content="@<%=
|
3
|
-
<meta name="twitter:title" content="<%=
|
4
|
-
<meta name="twitter:description" content="<%=
|
5
|
-
<meta name="twitter:image" content="<%=
|
2
|
+
<meta name="twitter:site" content="@<%= decidim_meta_twitter_handler %>" />
|
3
|
+
<meta name="twitter:title" content="<%= decidim_page_title %>" />
|
4
|
+
<meta name="twitter:description" content="<%= decidim_meta_description %>" />
|
5
|
+
<meta name="twitter:image" content="<%= decidim_meta_image_url %>" />
|
6
6
|
|
7
|
-
<meta property="og:url" content="<%=
|
7
|
+
<meta property="og:url" content="<%= decidim_meta_url %>" />
|
8
8
|
<meta property="og:type" content="article" />
|
9
|
-
<meta property="og:title" content="<%=
|
10
|
-
<meta property="og:description" content="<%=
|
11
|
-
<meta property="og:image" content="<%=
|
9
|
+
<meta property="og:title" content="<%= decidim_page_title %>" />
|
10
|
+
<meta property="og:description" content="<%= decidim_meta_description %>" />
|
11
|
+
<meta property="og:image" content="<%= decidim_meta_image_url %>" />
|
@@ -1,71 +1,119 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
2
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
</head>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
6
|
+
<%= stylesheet_link_tag "decidim/email" %>
|
7
|
+
</head>
|
8
8
|
|
9
|
-
<body>
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<tr>
|
20
|
-
<th class="small-12 first columns decidim-bar">
|
21
|
-
<center class="decidim-logo">
|
22
|
-
<%= render partial: "layouts/decidim/logo", locals: { organization: @organization } %>
|
23
|
-
</center>
|
24
|
-
</th>
|
25
|
-
<th class="expander"></th>
|
26
|
-
</tr>
|
27
|
-
</table>
|
28
|
-
<table class="spacer">
|
29
|
-
<tbody>
|
9
|
+
<body>
|
10
|
+
<!-- <style> -->
|
11
|
+
<table class="body">
|
12
|
+
<tr>
|
13
|
+
<td class="float-center" align="center" valign="top">
|
14
|
+
<center>
|
15
|
+
<table class="main container">
|
16
|
+
<tr>
|
17
|
+
<td class="decidim-bar">
|
18
|
+
<table class="row collapse">
|
30
19
|
<tr>
|
31
|
-
<
|
20
|
+
<th class="small-3 large-3 first columns decidim-bar">
|
21
|
+
<table>
|
22
|
+
<tr>
|
23
|
+
<th>
|
24
|
+
</th>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
</th>
|
28
|
+
<th class="small-6 large-6 columns decidim-bar">
|
29
|
+
<table>
|
30
|
+
<tr>
|
31
|
+
<th>
|
32
|
+
<center>
|
33
|
+
<%= render partial: "layouts/decidim/mailer_logo", locals: { organization: @organization } %>
|
34
|
+
</center>
|
35
|
+
</th>
|
36
|
+
</tr>
|
37
|
+
</table>
|
38
|
+
</th>
|
39
|
+
<th class="small-3 large-3 last columns decidim-bar">
|
40
|
+
<table>
|
41
|
+
<tr>
|
42
|
+
<th>
|
43
|
+
<% if @organization.official_img_header? %>
|
44
|
+
<%= link_to @organization.official_url do %>
|
45
|
+
<%= image_tag @organization.official_img_header.url.to_s , alt: "", style: "max-height: 50px", class: "float-right" %>
|
46
|
+
<% end %>
|
47
|
+
<% end %>
|
48
|
+
</th>
|
49
|
+
</tr>
|
50
|
+
</table>
|
51
|
+
</th>
|
52
|
+
<th class="expander"></th>
|
32
53
|
</tr>
|
33
|
-
</
|
34
|
-
</
|
54
|
+
</table>
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr>
|
58
|
+
<td>
|
59
|
+
<table class="spacer">
|
60
|
+
<tbody>
|
61
|
+
<tr>
|
62
|
+
<td height="40px" style="font-size:40px;line-height:40px;"> </td>
|
63
|
+
</tr>
|
64
|
+
</tbody>
|
65
|
+
</table>
|
35
66
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
67
|
+
<table class="row content">
|
68
|
+
<tr>
|
69
|
+
<th class="small-12 first columns">
|
70
|
+
<%= yield %>
|
71
|
+
</th>
|
72
|
+
<th class="expander"></th>
|
73
|
+
</tr>
|
74
|
+
</table>
|
44
75
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
76
|
+
<table class="row">
|
77
|
+
<tr>
|
78
|
+
<th class="small-12 first columns">
|
79
|
+
</th>
|
80
|
+
<th class="expander"></th>
|
81
|
+
</tr>
|
82
|
+
</table>
|
83
|
+
|
84
|
+
<table class="row">
|
85
|
+
<tr>
|
86
|
+
<th class="expander"></th>
|
87
|
+
<th class="small-12 first columns cityhall-bar">
|
88
|
+
<div class="decidim-logo" style="float: right; text-align: right; padding-right: 16px">
|
89
|
+
<%= link_to @organization.name, decidim.root_url(host: @organization.host) %>
|
90
|
+
</div>
|
91
|
+
</th>
|
92
|
+
</tr>
|
93
|
+
</table>
|
94
|
+
</td>
|
95
|
+
</tr>
|
96
|
+
</table>
|
52
97
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</
|
98
|
+
<% if content_for?(:note) %>
|
99
|
+
<table class="container">
|
100
|
+
<tr>
|
101
|
+
<td>
|
102
|
+
<table class="row">
|
103
|
+
<th class="expander"></th>
|
104
|
+
<th class="small-12 first columns footnote">
|
105
|
+
<center>
|
106
|
+
<%= yield(:note) %>
|
107
|
+
</center>
|
108
|
+
</th>
|
109
|
+
</table>
|
110
|
+
</td>
|
111
|
+
</tr>
|
112
|
+
</table>
|
113
|
+
<% end %>
|
114
|
+
</center>
|
115
|
+
</td>
|
116
|
+
</tr>
|
117
|
+
</table>
|
118
|
+
</body>
|
71
119
|
</html>
|
@@ -1,6 +1,9 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% add_decidim_page_title(translated_attribute(current_feature.name)) if try(:current_feature) %>
|
2
|
+
<% add_decidim_page_title(translated_attribute(current_participatory_process.title)) %>
|
3
|
+
<% add_decidim_meta_tags(
|
4
|
+
image_url: current_participatory_process.banner_image.url,
|
5
|
+
description: translated_attribute(current_participatory_process.short_description),
|
6
|
+
) %>
|
4
7
|
|
5
8
|
<%= render "layouts/decidim/application" do %>
|
6
9
|
<div class="wrapper">
|
@@ -17,3 +20,11 @@
|
|
17
20
|
</div>
|
18
21
|
<% end %>
|
19
22
|
<% end %>
|
23
|
+
|
24
|
+
<% if try(:current_feature) %>
|
25
|
+
<% current_feature.manifest.actions.each do |action| %>
|
26
|
+
<%= action_authorization_modal(action) %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
29
|
+
|
30
|
+
<% provide :meta_image_url, current_participatory_process.banner_image.url %>
|
@@ -12,6 +12,7 @@
|
|
12
12
|
<div class="side-panel">
|
13
13
|
<ul class="tabs vertical side-panel__tabs" id="user-settings-tabs">
|
14
14
|
<%= user_profile_tab t("account", scope: "layouts.decidim.user_profile"), account_path %>
|
15
|
+
<%= user_profile_tab t("notifications_settings", scope: "layouts.decidim.user_profile"), notifications_settings_path %>
|
15
16
|
<% if available_authorization_handlers.any? %>
|
16
17
|
<%= user_profile_tab t("authorizations", scope: "layouts.decidim.user_profile"), authorizations_path %>
|
17
18
|
<% end %>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<% provide(:meta_title, current_organization.name) %>
|
2
|
+
|
1
3
|
<%= render partial: 'pages/home/hero' %>
|
2
4
|
|
3
5
|
<% if !translated_attribute(current_organization.description).blank? %>
|
@@ -11,3 +13,5 @@
|
|
11
13
|
<% if current_organization.show_statistics? %>
|
12
14
|
<%= render partial: 'pages/home/statistics' %>
|
13
15
|
<% end %>
|
16
|
+
|
17
|
+
<%= render partial: 'pages/home/footer_sub_hero' %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<section class="extended">
|
2
2
|
<div class="wrapper-home home-section">
|
3
3
|
<div class="row column text-center">
|
4
|
-
<h3 class="heading2"
|
4
|
+
<h3 class="heading2"><%= t(".how_to_participate") %></h3>
|
5
5
|
</div>
|
6
6
|
<div class="row small-up-1 medium-up-3 home-bullets">
|
7
7
|
<div class="column">
|
@@ -45,4 +45,4 @@
|
|
45
45
|
</div>
|
46
46
|
</div>
|
47
47
|
</div>
|
48
|
-
</section>
|
48
|
+
</section>
|