decidim-conferences 0.24.3 → 0.25.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/conferences/conference_m_cell.rb +1 -1
- data/app/cells/decidim/conferences/conference_speaker/show.erb +2 -2
- data/app/cells/decidim/conferences/conference_speaker_cell.rb +3 -3
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +1 -1
- data/app/cells/decidim/conferences/partner_cell.rb +2 -2
- data/app/commands/decidim/conferences/admin/copy_conference.rb +9 -2
- data/app/commands/decidim/conferences/admin/create_conference_speaker.rb +4 -2
- data/app/commands/decidim/conferences/admin/update_conference.rb +5 -10
- data/app/commands/decidim/conferences/admin/update_conference_speaker.rb +5 -9
- data/app/commands/decidim/conferences/admin/update_diploma.rb +2 -2
- data/app/commands/decidim/conferences/admin/update_partner.rb +5 -5
- data/app/controllers/decidim/conferences/admin/conference_invites_controller.rb +0 -2
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +0 -2
- data/app/controllers/decidim/conferences/admin/conference_speakers_controller.rb +3 -3
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +1 -5
- data/app/controllers/decidim/conferences/admin/diplomas_controller.rb +2 -4
- data/app/forms/decidim/conferences/admin/conference_form.rb +2 -2
- data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +1 -1
- data/app/forms/decidim/conferences/admin/partner_form.rb +2 -2
- data/app/models/decidim/conference.rb +8 -8
- data/app/models/decidim/conference_speaker.rb +2 -2
- data/app/models/decidim/conferences/partner.rb +2 -2
- data/app/packs/entrypoints/decidim_conferences_admin.js +7 -0
- data/app/{assets/images/decidim/conferences/conference.svg → packs/images/decidim/conferences/decidim_conferences.svg} +0 -0
- data/app/{assets/javascripts/decidim/conferences/admin/conference_invite_form.es6 → packs/src/decidim/conferences/admin/conference_invite_form.js} +3 -3
- data/app/{assets/javascripts/decidim/conferences/admin/conference_speakers.js.es6 → packs/src/decidim/conferences/admin/conference_speakers.js} +3 -3
- data/app/packs/src/decidim/conferences/admin/conferences.js +27 -0
- data/app/{assets/stylesheet → packs/stylesheets}/decidim/conferences/conferences.scss +0 -0
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +8 -22
- data/app/queries/decidim/conferences/admin/admin_users.rb +24 -11
- data/app/uploaders/decidim/conferences/diploma_uploader.rb +4 -2
- data/app/uploaders/decidim/conferences/partner_logo_uploader.rb +5 -5
- data/app/uploaders/decidim/cw/conferences/diploma_uploader.rb +14 -0
- data/app/uploaders/decidim/cw/conferences/partner_logo_uploader.rb +15 -0
- data/app/views/decidim/conferences/admin/conference_copies/_form.html.erb +1 -1
- data/app/views/decidim/conferences/admin/conference_invites/_form.html.erb +1 -1
- data/app/views/decidim/conferences/admin/conference_speakers/_form.html.erb +1 -1
- data/app/views/decidim/conferences/admin/conference_speakers/edit.html.erb +1 -1
- data/app/views/decidim/conferences/admin/conferences/_form.html.erb +1 -3
- data/app/views/decidim/conferences/admin/invite_join_conference_mailer/invite.html.erb +4 -4
- data/app/views/decidim/conferences/admin/partners/index.html.erb +1 -1
- data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb +2 -2
- data/app/views/decidim/conferences/conference_program/_program_meeting.html.erb +5 -5
- data/app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb +3 -3
- data/app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb +3 -3
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +1 -1
- data/app/views/decidim/conferences/conferences/show.html.erb +2 -3
- data/app/views/devise/mailer/join_conference.html.erb +5 -5
- data/app/views/layouts/decidim/_conference_hero.html.erb +1 -1
- data/app/views/layouts/decidim/admin/conference.html.erb +4 -106
- data/app/views/layouts/decidim/conference.html.erb +2 -2
- data/app/views/layouts/decidim/diploma.html.erb +1 -1
- data/config/assets.rb +9 -0
- data/config/locales/ar.yml +0 -18
- data/config/locales/ca.yml +4 -18
- data/config/locales/cs.yml +4 -18
- data/config/locales/de.yml +4 -18
- data/config/locales/el.yml +0 -18
- data/config/locales/en.yml +4 -18
- data/config/locales/es-MX.yml +4 -18
- data/config/locales/es-PY.yml +4 -18
- data/config/locales/es.yml +4 -18
- data/config/locales/eu.yml +0 -18
- data/config/locales/fi-plain.yml +4 -18
- data/config/locales/fi.yml +4 -18
- data/config/locales/fr-CA.yml +1 -18
- data/config/locales/fr-LU.yml +577 -0
- data/config/locales/fr.yml +1 -18
- data/config/locales/gl.yml +4 -18
- data/config/locales/hu.yml +0 -18
- data/config/locales/id-ID.yml +0 -18
- data/config/locales/it.yml +49 -18
- data/config/locales/ja.yml +43 -18
- data/config/locales/lb-LU.yml +1 -0
- data/config/locales/lv.yml +0 -17
- data/config/locales/nl.yml +4 -18
- data/config/locales/no.yml +0 -18
- data/config/locales/pl.yml +23 -23
- data/config/locales/pt-BR.yml +59 -18
- data/config/locales/pt.yml +0 -18
- data/config/locales/ro-RO.yml +24 -18
- data/config/locales/sk.yml +0 -18
- data/config/locales/sl.yml +0 -2
- data/config/locales/sv.yml +2 -17
- data/config/locales/tr-TR.yml +0 -18
- data/config/locales/zh-CN.yml +0 -18
- data/db/migrate/20210408204953_allow_null_logo_column_in_decidim_conferences_partners_table.rb +7 -0
- data/lib/decidim/api/conference_partner_type.rb +4 -0
- data/lib/decidim/api/conference_speaker_type.rb +4 -0
- data/lib/decidim/api/conference_type.rb +9 -1
- data/lib/decidim/conferences/admin_engine.rb +138 -8
- data/lib/decidim/conferences/engine.rb +6 -9
- data/lib/decidim/conferences/participatory_space.rb +40 -7
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +26 -24
- data/app/assets/config/admin/decidim_conferences_manifest.js +0 -3
- data/app/assets/config/decidim_conferences_manifest.js +0 -2
- data/app/assets/javascripts/decidim/conferences/admin/conferences.js.es6 +0 -30
- data/app/assets/javascripts/decidim/conferences/conferences.js.es6 +0 -0
- data/app/views/decidim/conferences/conferences/_statistics.html.erb +0 -10
- data/config/locales/ja-JP.yml +0 -575
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim::Cw
|
4
|
+
module Conferences
|
5
|
+
# This class deals with uploading the conference partner logo.
|
6
|
+
class PartnerLogoUploader < Decidim::Cw::ImageUploader
|
7
|
+
set_variants do
|
8
|
+
{
|
9
|
+
thumb: { resize_to_fit: [200, 55] },
|
10
|
+
medium: { resize_to_fit: [600, 160] }
|
11
|
+
}
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= decidim_form_for(@form, url: conference_speaker_path(@
|
1
|
+
<%= decidim_form_for(@form, url: conference_speaker_path(@item.conference, @item), html: { class: "form edit_conference_speaker" }) do |f| %>
|
2
2
|
<%= render partial: "form", object: f, locals: { title: t("conference_speakers.edit.title", scope: "decidim.admin") } %>
|
3
3
|
|
4
4
|
<div class="button--double form-general-submit">
|
@@ -1,5 +1,3 @@
|
|
1
|
-
<%= javascript_include_tag "decidim/slug_form" %>
|
2
|
-
|
3
1
|
<div class="card">
|
4
2
|
<div class="card-divider">
|
5
3
|
<h2 class="card-title"><%= t "conferences.form.title", scope: "decidim.admin" %></h2>
|
@@ -119,4 +117,4 @@
|
|
119
117
|
</div>
|
120
118
|
</div>
|
121
119
|
|
122
|
-
<%=
|
120
|
+
<%= javascript_pack_tag "decidim_conferences_admin" %>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<p><%= t("devise.mailer.invitation_instructions.hello", email: @user.name) %></p>
|
1
|
+
<p class="email-greeting"><%= t("devise.mailer.invitation_instructions.hello", email: @user.name) %></p>
|
2
2
|
|
3
|
-
<p>
|
3
|
+
<p class="email-instructions">
|
4
4
|
<%= t ".invited_you_to_join_a_conference", invited_by: @invited_by.name, application: @user.organization.name %>
|
5
5
|
</p>
|
6
6
|
|
7
|
-
<p>
|
7
|
+
<p class="email-button email-button__cta cta-decline">
|
8
8
|
<%= link_to t(".decline", conference_title: translated_attribute(@conference.title)),routes.decline_invitation_conference_registration_type_conference_registration_path(conference_slug: @conference.slug, registration_type_id: @registration_type.id) %>
|
9
9
|
</p>
|
10
|
-
<p>
|
10
|
+
<p class="email-button email-button__cta cta-accept">
|
11
11
|
<%= link_to t(".registration", conference_title: translated_attribute(@conference.title)),routes.conference_registration_type_conference_registration_url(conference_slug: @conference.slug, registration_type_id: @registration_type.id) %>
|
12
12
|
</p>
|
data/app/views/decidim/conferences/admin/send_conference_diploma_mailer/diploma_user.html.erb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<div class="diploma__content">
|
4
4
|
<div class="small-11 small-centered">
|
5
5
|
<div class="diploma__logo small-4 small-centered">
|
6
|
-
<%= wicked_pdf_image_tag @conference.main_logo.thumb.
|
6
|
+
<%= wicked_pdf_image_tag @conference.attached_uploader(:main_logo).url(variant: :thumb, host: @conference.organization.host) %>
|
7
7
|
</div>
|
8
8
|
<div class="diploma__name small-10 small-centered">
|
9
9
|
<h2><strong><%= translated_attribute(@conference.title) %></strong></h2>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<div class="diploma__attendance">
|
15
15
|
<strong><%= t("decidim.conferences.admin.send_conference_diploma_mailer.diploma_user.attendance_verified_by") %></strong>
|
16
16
|
<div>
|
17
|
-
<%= wicked_pdf_image_tag @conference.signature.thumb.
|
17
|
+
<%= wicked_pdf_image_tag @conference.attached_uploader(:signature).url(variant: :thumb, host: @conference.organization.host) %>
|
18
18
|
</div>
|
19
19
|
<%= l(@conference.sign_date, format: :decidim_short) %>, <%= @conference.signature_name %>
|
20
20
|
</div>
|
@@ -47,17 +47,17 @@
|
|
47
47
|
</div>
|
48
48
|
</div>
|
49
49
|
<% end %>
|
50
|
-
<% if meeting.
|
50
|
+
<% if meeting.closing_visible? && (meeting.video_url.presence || meeting.audio_url.presence) %>
|
51
51
|
<div class="row">
|
52
52
|
<div class="column medium-2">
|
53
53
|
<strong><%= t(".streaming") %></strong>
|
54
54
|
</div>
|
55
55
|
<div class="column medium-10">
|
56
|
-
<% if meeting.
|
57
|
-
<u><%= link_to meeting.
|
56
|
+
<% if meeting.video_url.presence %>
|
57
|
+
<u><%= link_to meeting.video_url, meeting.video_url, target: "_blank" %></u>
|
58
58
|
<% end %>
|
59
|
-
<% if meeting.
|
60
|
-
<u><%= link_to meeting.
|
59
|
+
<% if meeting.audio_url.presence %>
|
60
|
+
<u><%= link_to meeting.audio_url, meeting.audio_url, target: "_blank" %></u>
|
61
61
|
<% end %>
|
62
62
|
</div>
|
63
63
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<p><%= t(".confirmed_html", title: translated_attribute(@conference.title), url: @locator.url) %></p>
|
1
|
+
<p class="email-greeting"><%= t(".confirmed_html", title: translated_attribute(@conference.title), url: @locator.url) %></p>
|
2
2
|
|
3
|
-
<p><%= t(".details_1", registration_type: translated_attribute(@registration_type.title), price: number_to_currency((@registration_type.price || 0), locale: I18n.locale, unit: Decidim.currency_unit)) %></p>
|
3
|
+
<p class="email-instructions"><%= t(".details_1", registration_type: translated_attribute(@registration_type.title), price: number_to_currency((@registration_type.price || 0), locale: I18n.locale, unit: Decidim.currency_unit)) %></p>
|
4
4
|
|
5
5
|
<ul>
|
6
6
|
<% @registration_type.conference_meetings.order(:start_time).each do |conference_meeting| %>
|
@@ -8,4 +8,4 @@
|
|
8
8
|
<% end %>
|
9
9
|
</ul>
|
10
10
|
|
11
|
-
<p><%= t(".details_2") %></p>
|
11
|
+
<p class="email-instructions"><%= t(".details_2") %></p>
|
data/app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
<p><%= t(".pending_html", title: translated_attribute(@conference.title), url: @locator.url) %></p>
|
1
|
+
<p class="email-greeting"><%= t(".pending_html", title: translated_attribute(@conference.title), url: @locator.url) %></p>
|
2
2
|
|
3
|
-
<p><%= t(".details", registration_type: translated_attribute(@registration_type.title), price: number_to_currency((@registration_type.price || 0), locale: I18n.locale, unit: Decidim.currency_unit)) %></p>
|
3
|
+
<p class="email-instructions"><%= t(".details", registration_type: translated_attribute(@registration_type.title), price: number_to_currency((@registration_type.price || 0), locale: I18n.locale, unit: Decidim.currency_unit)) %></p>
|
4
4
|
|
5
5
|
<ul>
|
6
6
|
<% @registration_type.conference_meetings.order(:start_time).each do |conference_meeting| %>
|
@@ -8,4 +8,4 @@
|
|
8
8
|
<% end %>
|
9
9
|
</ul>
|
10
10
|
|
11
|
-
<p><%= t(".confirmation_pending") %></p>
|
11
|
+
<p class="email-small email-closing"><%= t(".confirmation_pending") %></p>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
</div>
|
14
14
|
<div class="columns mediumlarge-8 large-6 card--process__column">
|
15
15
|
<div class="card--full__image"
|
16
|
-
style="background-image:url(<%= promoted_conference.hero_image.
|
16
|
+
style="background-image:url(<%= promoted_conference.attached_uploader(:hero_image).path %>)">
|
17
17
|
<div class="card__content row collapse">
|
18
18
|
<div class="large-6 large-offset-6 columns">
|
19
19
|
<%= link_to conference_path(promoted_conference), class: "button expanded button--sc" do %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% add_decidim_meta_tags({
|
2
|
-
image_url: current_participatory_space.hero_image.
|
2
|
+
image_url: current_participatory_space.attached_uploader(:hero_image).path,
|
3
3
|
description: translated_attribute(current_participatory_space.short_description),
|
4
4
|
url: conference_url(current_participatory_space),
|
5
5
|
twitter_handler: current_organization.twitter_handler
|
@@ -78,8 +78,7 @@ edit_link(
|
|
78
78
|
<%= cell("decidim/conferences/linked_participatory_spaces", current_participatory_space) %>
|
79
79
|
|
80
80
|
<% if current_participatory_space.show_statistics? %>
|
81
|
-
<%=
|
81
|
+
<%= cell("decidim/statistics", stats.highlighted) %>
|
82
82
|
<% end %>
|
83
83
|
</div>
|
84
84
|
</div>
|
85
|
-
<%= javascript_include_tag "decidim/conferences/conferences" %>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<p><%= t("devise.mailer.invitation_instructions.hello", email: @resource.name) %></p>
|
1
|
+
<p class="email-greeting"><%= t("devise.mailer.invitation_instructions.hello", email: @resource.name) %></p>
|
2
2
|
|
3
|
-
<p>
|
3
|
+
<p class="email-instructions">
|
4
4
|
<%= t("decidim.conferences.admin.invite_join_conference_mailer.invite.invited_you_to_join_a_conference", invited_by: @resource.invited_by.name, application: @resource.organization.name) %>
|
5
5
|
</p>
|
6
6
|
|
7
|
-
<p><%= link_to t("devise.mailer.invitation_instructions.accept"), accept_invitation_url(@resource, invitation_token: @token, invite_redirect: Decidim::EngineRouter.main_proxy(@opts[:conference]).conference_conference_registration_path(conference_slug: @opts[:conference]), host: @resource.organization.host) %></p>
|
7
|
+
<p class="email-button email-button__cta"><%= link_to t("devise.mailer.invitation_instructions.accept"), accept_invitation_url(@resource, invitation_token: @token, invite_redirect: Decidim::EngineRouter.main_proxy(@opts[:conference]).conference_conference_registration_path(conference_slug: @opts[:conference]), host: @resource.organization.host) %></p>
|
8
8
|
|
9
9
|
<% if @resource.invitation_due_at %>
|
10
|
-
<p><%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :long)) %></p>
|
10
|
+
<p class="email-small"><%= t("devise.mailer.invitation_instructions.accept_until", due_date: l(@resource.invitation_due_at, format: :long)) %></p>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
<p><%= t("devise.mailer.invitation_instructions.ignore").html_safe %></p>
|
13
|
+
<p class="email-small email-closing"><%= t("devise.mailer.invitation_instructions.ignore").html_safe %></p>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<section class="extended hero"
|
2
|
-
style="background-image:url(<%= current_participatory_space.banner_image.
|
2
|
+
style="background-image:url(<%= current_participatory_space.attached_uploader(:banner_image).path %>);">
|
3
3
|
<div class="hero__container">
|
4
4
|
<div class="row">
|
5
5
|
<div class="columns large-10 text-left">
|
@@ -1,109 +1,7 @@
|
|
1
|
-
<% content_for :
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<% if allowed_to? :update, :conference, conference: current_participatory_space %>
|
6
|
-
<li <% if is_active_link?(decidim_admin_conferences.edit_conference_path(current_participatory_space)) %> class="is-active" <% end %>>
|
7
|
-
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.edit_conference_path(current_participatory_space) %>
|
8
|
-
</li>
|
9
|
-
<% end %>
|
10
|
-
<% if allowed_to? :read, :component, conference: current_participatory_space %>
|
11
|
-
<li <% if is_active_link?(decidim_admin_conferences.components_path(current_participatory_space)) %> class="is-active" <% end %>>
|
12
|
-
<%= aria_selected_link_to t("components", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.components_path(current_participatory_space) %>
|
13
|
-
<ul id="components-list">
|
14
|
-
<% current_participatory_space.components.each do |component| %>
|
15
|
-
<% if component.manifest.admin_engine && user_role_config.component_is_accessible?(component.manifest_name) %>
|
16
|
-
<li <% if is_active_link?(manage_component_path(component)) || is_active_link?(decidim_admin_conferences.edit_component_path(current_participatory_space, component)) || is_active_link?(decidim_admin_conferences.edit_component_permissions_path(current_participatory_space, component)) || participatory_space_active_link?(component) %> class="is-active" <% end %>>
|
17
|
-
<%= link_to manage_component_path(component) do %>
|
18
|
-
<%= translated_attribute component.name %>
|
19
|
-
<% if component.primary_stat.present? %>
|
20
|
-
<span class="component-counter <%= "component-counter--off" if component.primary_stat.zero? %>"><%= component.primary_stat %></span>
|
21
|
-
<% end %>
|
22
|
-
<% end %>
|
23
|
-
</li>
|
24
|
-
<% end %>
|
25
|
-
<% end %>
|
26
|
-
</ul>
|
27
|
-
</li>
|
28
|
-
<% end %>
|
29
|
-
<% if allowed_to? :read, :category, conference: current_participatory_space %>
|
30
|
-
<li <% if is_active_link?(decidim_admin_conferences.categories_path(current_participatory_space)) %> class="is-active" <% end %>>
|
31
|
-
<%= aria_selected_link_to t("categories", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.categories_path(current_participatory_space) %>
|
32
|
-
</li>
|
33
|
-
<% end %>
|
34
|
-
<% if allowed_to?(:read, :attachment_collection, conference: current_participatory_space) || allowed_to?(:read, :attachment, conference: current_participatory_space) %>
|
35
|
-
<li>
|
36
|
-
<span class="secondary-nav__subtitle"><%= t("attachments", scope: "decidim.admin.menu.conferences_submenu") %></span>
|
37
|
-
<ul>
|
38
|
-
<% if allowed_to? :read, :attachment_collection, conference: current_participatory_space %>
|
39
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_attachment_collections_path(current_participatory_space)) %> class="is-active" <% end %>>
|
40
|
-
<%= aria_selected_link_to t("attachment_collections", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_attachment_collections_path(current_participatory_space) %>
|
41
|
-
</li>
|
42
|
-
<% end %>
|
43
|
-
<% if allowed_to? :read, :attachment, conference: current_participatory_space %>
|
44
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_attachments_path(current_participatory_space)) %> class="is-active" <% end %>>
|
45
|
-
<%= aria_selected_link_to t("attachment_files", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_attachments_path(current_participatory_space) %>
|
46
|
-
</li>
|
47
|
-
<% end %>
|
48
|
-
</ul>
|
49
|
-
</li>
|
50
|
-
<% end %>
|
51
|
-
<% if allowed_to? :read, :media_link, conference: current_participatory_space %>
|
52
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_media_links_path(current_participatory_space)) %> class="is-active" <% end %>>
|
53
|
-
<%= aria_selected_link_to t("media_links", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_media_links_path(current_participatory_space) %>
|
54
|
-
</li>
|
55
|
-
<% end %>
|
56
|
-
<% if allowed_to? :read, :partner, conference: current_participatory_space %>
|
57
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_partners_path(current_participatory_space)) %> class="is-active" <% end %>>
|
58
|
-
<%= aria_selected_link_to t("partners", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_partners_path(current_participatory_space) %>
|
59
|
-
</li>
|
60
|
-
<% end %>
|
61
|
-
<% if allowed_to? :read, :conference_speaker, conference: current_participatory_space %>
|
62
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_speakers_path(current_participatory_space)) %> class="is-active" <% end %>>
|
63
|
-
<%= aria_selected_link_to t("conference_speakers", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_speakers_path(current_participatory_space) %>
|
64
|
-
</li>
|
65
|
-
<% end %>
|
66
|
-
|
67
|
-
<% if allowed_to?(:read, :conference_invite, conference: current_participatory_space) || allowed_to?(:read, :registration_type, conference: current_participatory_space) || allowed_to?(:read, :conference_registration, conference: current_participatory_space) %>
|
68
|
-
<li>
|
69
|
-
<span class="secondary-nav__subtitle"><%= t("registrations", scope: "decidim.admin.menu.conferences_submenu") %></span>
|
70
|
-
<ul>
|
71
|
-
<% if allowed_to? :read, :registration_type, conference: current_participatory_space %>
|
72
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_registration_types_path(current_participatory_space)) %> class="is-active" <% end %>>
|
73
|
-
<%= aria_selected_link_to t("registration_types", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_registration_types_path(current_participatory_space) %>
|
74
|
-
</li>
|
75
|
-
<% end %>
|
76
|
-
<% if allowed_to? :read, :conference_registration, conference: current_participatory_space %>
|
77
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_conference_registrations_path(current_participatory_space)) %> class="is-active" <% end %>>
|
78
|
-
<%= aria_selected_link_to t("user_registrations", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_conference_registrations_path(current_participatory_space) %>
|
79
|
-
</li>
|
80
|
-
<% end %>
|
81
|
-
<% if allowed_to? :read, :conference_invite, conference: current_participatory_space %>
|
82
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_conference_invites_path(current_participatory_space)) %> class="is-active" <% end %>>
|
83
|
-
<%= aria_selected_link_to t("conference_invites", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_conference_invites_path(current_participatory_space) %>
|
84
|
-
</li>
|
85
|
-
<% end %>
|
86
|
-
<% if allowed_to? :update, :conference, conference: current_participatory_space %>
|
87
|
-
<li <% if is_active_link?(decidim_admin_conferences.edit_conference_diploma_path(current_participatory_space)) %> class="is-active" <% end %>>
|
88
|
-
<%= aria_selected_link_to t("diploma", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.edit_conference_diploma_path(current_participatory_space) %>
|
89
|
-
</li>
|
90
|
-
<% end %>
|
91
|
-
</ul>
|
92
|
-
</li>
|
93
|
-
<% end %>
|
94
|
-
<% if allowed_to? :read, :conference_user_role, conference: current_participatory_space %>
|
95
|
-
<li <% if is_active_link?(decidim_admin_conferences.conference_user_roles_path(current_participatory_space)) %> class="is-active" <% end %>>
|
96
|
-
<%= aria_selected_link_to t("conference_admins", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.conference_user_roles_path(current_participatory_space) %>
|
97
|
-
</li>
|
98
|
-
<% end %>
|
99
|
-
<% if allowed_to? :read, :moderation, conference: current_participatory_space %>
|
100
|
-
<li <% if is_active_link?(decidim_admin_conferences.moderations_path(current_participatory_space)) %> class="is-active" <% end %>>
|
101
|
-
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.moderations_path(current_participatory_space) %>
|
102
|
-
</li>
|
103
|
-
<% end %>
|
104
|
-
<%= Decidim::Admin.view_hooks.render(:admin_secondary_nav, deep_dup) %>
|
105
|
-
</ul>
|
106
|
-
</div>
|
1
|
+
<% content_for :sidebar_menu_nav do %>
|
2
|
+
<%= sidebar_menu(:conferences_admin_menu).render do
|
3
|
+
public_page_link decidim_conferences.conference_path(current_participatory_space)
|
4
|
+
end %>
|
107
5
|
<% end %>
|
108
6
|
|
109
7
|
<%= render "layouts/decidim/admin/application" do %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% add_decidim_page_title(translated_attribute(current_component.name)) if try(:current_component) %>
|
2
2
|
<% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
|
3
3
|
<% add_decidim_meta_tags(
|
4
|
-
image_url: current_participatory_space.banner_image.
|
4
|
+
image_url: current_participatory_space.attached_uploader(:banner_image).path,
|
5
5
|
description: translated_attribute(current_participatory_space.short_description),
|
6
6
|
) %>
|
7
7
|
|
@@ -24,4 +24,4 @@
|
|
24
24
|
<% end %>
|
25
25
|
<% end %>
|
26
26
|
|
27
|
-
<% provide :meta_image_url, current_participatory_space.banner_image.
|
27
|
+
<% provide :meta_image_url, current_participatory_space.attached_uploader(:banner_image).path %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width">
|
6
|
-
<%=
|
6
|
+
<%= wicked_pdf_stylesheet_pack_tag "decidim_conference_diploma" %>
|
7
7
|
</head>
|
8
8
|
<body>
|
9
9
|
<%= yield %>
|
data/config/assets.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
base_path = File.expand_path("..", __dir__)
|
4
|
+
|
5
|
+
Decidim::Webpacker.register_path("#{base_path}/app/packs")
|
6
|
+
Decidim::Webpacker.register_entrypoints(
|
7
|
+
decidim_conferences_admin: "#{base_path}/app/packs/entrypoints/decidim_conferences_admin.js"
|
8
|
+
)
|
9
|
+
Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/conferences/conferences")
|
data/config/locales/ar.yml
CHANGED
@@ -223,7 +223,6 @@ ar:
|
|
223
223
|
price: السعر
|
224
224
|
registrations_count: عدد التسجيلات
|
225
225
|
title: عنوان
|
226
|
-
weight: وزن
|
227
226
|
name: نوع التسجيل
|
228
227
|
partners:
|
229
228
|
create:
|
@@ -504,23 +503,6 @@ ar:
|
|
504
503
|
related_assemblies: الجمعيات ذات الصلة
|
505
504
|
related_consultations: المشاورات ذات الصلة
|
506
505
|
related_participatory_processes: العمليات التشاركية ذات الصلة
|
507
|
-
statistics:
|
508
|
-
answers_count: الأجوبة
|
509
|
-
comments_count: تعليقات
|
510
|
-
conference_count: المؤتمرات
|
511
|
-
debates_count: المناقشات
|
512
|
-
endorsements_count: موافقات
|
513
|
-
headline: نشاط
|
514
|
-
meetings_count: اجتماعات
|
515
|
-
orders_count: الدعم
|
516
|
-
pages_count: صفحات
|
517
|
-
posts_count: المشاركات
|
518
|
-
projects_count: مشاريع
|
519
|
-
proposals_count: اقتراحات
|
520
|
-
results_count: النتائج
|
521
|
-
surveys_count: الدراسات الاستقصائية
|
522
|
-
users_count: المشاركين
|
523
|
-
votes_count: الدعم
|
524
506
|
events:
|
525
507
|
conferences:
|
526
508
|
conference_registration_confirmed:
|
data/config/locales/ca.yml
CHANGED
@@ -246,7 +246,7 @@ ca:
|
|
246
246
|
price: Preu
|
247
247
|
registrations_count: Nombre d'inscripcions
|
248
248
|
title: Títol
|
249
|
-
weight:
|
249
|
+
weight: Ordre de posició
|
250
250
|
name: Tipus d'inscripció
|
251
251
|
partners:
|
252
252
|
create:
|
@@ -501,6 +501,7 @@ ca:
|
|
501
501
|
home:
|
502
502
|
highlighted_conferences:
|
503
503
|
active_conferences: Jornades actives
|
504
|
+
conferences_button_title: Enllaç a la pàgina de Conferències mostrant totes les conferències
|
504
505
|
see_all_conferences: Veure totes les jornades
|
505
506
|
photo:
|
506
507
|
image:
|
@@ -532,23 +533,6 @@ ca:
|
|
532
533
|
related_assemblies: Assemblees relacionades
|
533
534
|
related_consultations: Consultes relacionades
|
534
535
|
related_participatory_processes: Processos participatius relacionats
|
535
|
-
statistics:
|
536
|
-
answers_count: Respostes
|
537
|
-
comments_count: Comentaris
|
538
|
-
conference_count: Jornades
|
539
|
-
debates_count: Debats
|
540
|
-
endorsements_count: Adhesions
|
541
|
-
headline: Activitat
|
542
|
-
meetings_count: Trobades
|
543
|
-
orders_count: Donar suport
|
544
|
-
pages_count: Pàgines
|
545
|
-
posts_count: Publicacions
|
546
|
-
projects_count: Projectes
|
547
|
-
proposals_count: Propostes
|
548
|
-
results_count: Resultats
|
549
|
-
surveys_count: Enquestes
|
550
|
-
users_count: Participants
|
551
|
-
votes_count: Suports
|
552
536
|
events:
|
553
537
|
conferences:
|
554
538
|
conference_registration_confirmed:
|
@@ -596,6 +580,8 @@ ca:
|
|
596
580
|
title: Multimedia i enllaços
|
597
581
|
menu:
|
598
582
|
conferences: Jornades
|
583
|
+
statistics:
|
584
|
+
conferences_count: Jornades
|
599
585
|
devise:
|
600
586
|
mailer:
|
601
587
|
join_conference:
|
data/config/locales/cs.yml
CHANGED
@@ -252,7 +252,7 @@ cs:
|
|
252
252
|
price: Cena
|
253
253
|
registrations_count: Počet registrací
|
254
254
|
title: Název
|
255
|
-
weight:
|
255
|
+
weight: Pozice v řazení
|
256
256
|
name: Typ registrace
|
257
257
|
partners:
|
258
258
|
create:
|
@@ -509,6 +509,7 @@ cs:
|
|
509
509
|
home:
|
510
510
|
highlighted_conferences:
|
511
511
|
active_conferences: Aktivní konference
|
512
|
+
conferences_button_title: Odkaz na stránku Konference zobrazující všechny konference
|
512
513
|
see_all_conferences: Podívejte se na všechny konference
|
513
514
|
photo:
|
514
515
|
image:
|
@@ -540,23 +541,6 @@ cs:
|
|
540
541
|
related_assemblies: Související sestavy
|
541
542
|
related_consultations: Související konzultace
|
542
543
|
related_participatory_processes: Související procesy účasti
|
543
|
-
statistics:
|
544
|
-
answers_count: Odpovědi
|
545
|
-
comments_count: Komentáře
|
546
|
-
conference_count: Konference
|
547
|
-
debates_count: Debaty
|
548
|
-
endorsements_count: Schválení
|
549
|
-
headline: Aktivita
|
550
|
-
meetings_count: Setkání
|
551
|
-
orders_count: Hlasy
|
552
|
-
pages_count: Stránky
|
553
|
-
posts_count: Příspěvky
|
554
|
-
projects_count: Projekty
|
555
|
-
proposals_count: Návrhy
|
556
|
-
results_count: Výsledek
|
557
|
-
surveys_count: Průzkumy
|
558
|
-
users_count: Účastníci
|
559
|
-
votes_count: Hlasy
|
560
544
|
events:
|
561
545
|
conferences:
|
562
546
|
conference_registration_confirmed:
|
@@ -604,6 +588,8 @@ cs:
|
|
604
588
|
title: Média a odkazy
|
605
589
|
menu:
|
606
590
|
conferences: Konference
|
591
|
+
statistics:
|
592
|
+
conferences_count: Konference
|
607
593
|
devise:
|
608
594
|
mailer:
|
609
595
|
join_conference:
|
data/config/locales/de.yml
CHANGED
@@ -212,7 +212,7 @@ de:
|
|
212
212
|
price: Preis
|
213
213
|
registrations_count: Registrierungen zählen
|
214
214
|
title: Titel
|
215
|
-
weight:
|
215
|
+
weight: Bestellposition
|
216
216
|
name: Registrierungstyp
|
217
217
|
partners:
|
218
218
|
create:
|
@@ -467,6 +467,7 @@ de:
|
|
467
467
|
home:
|
468
468
|
highlighted_conferences:
|
469
469
|
active_conferences: Aktive Konferenzen
|
470
|
+
conferences_button_title: Link zur Konferenz-Seite die alle Konferenzen anzeigt
|
470
471
|
see_all_conferences: Alle Konferenzen anzeigen
|
471
472
|
photo:
|
472
473
|
image:
|
@@ -498,23 +499,6 @@ de:
|
|
498
499
|
related_assemblies: Ähnliche Gremien
|
499
500
|
related_consultations: Verwandte Konsultationen
|
500
501
|
related_participatory_processes: Ähnliche Beteiligungsprozesse
|
501
|
-
statistics:
|
502
|
-
answers_count: Antworten
|
503
|
-
comments_count: Bemerkungen
|
504
|
-
conference_count: Konferenzen
|
505
|
-
debates_count: Debatten
|
506
|
-
endorsements_count: Empfehlungen
|
507
|
-
headline: Aktivität
|
508
|
-
meetings_count: Meetings
|
509
|
-
orders_count: Stimmen
|
510
|
-
pages_count: Seiten
|
511
|
-
posts_count: Beiträge
|
512
|
-
projects_count: Projekte
|
513
|
-
proposals_count: Vorschläge
|
514
|
-
results_count: Ergebnisse
|
515
|
-
surveys_count: Umfragen
|
516
|
-
users_count: Teilnehmer
|
517
|
-
votes_count: Stimmen
|
518
502
|
events:
|
519
503
|
conferences:
|
520
504
|
conference_registration_confirmed:
|
@@ -562,6 +546,8 @@ de:
|
|
562
546
|
title: Medien und Links
|
563
547
|
menu:
|
564
548
|
conferences: Konferenzen
|
549
|
+
statistics:
|
550
|
+
conferences_count: Konferenzen
|
565
551
|
devise:
|
566
552
|
mailer:
|
567
553
|
join_conference:
|
data/config/locales/el.yml
CHANGED
@@ -212,7 +212,6 @@ el:
|
|
212
212
|
price: Τιμή
|
213
213
|
registrations_count: Αριθμός εγγραφών
|
214
214
|
title: Τίτλος
|
215
|
-
weight: Βάρος
|
216
215
|
name: Τύπος εγγραφής
|
217
216
|
partners:
|
218
217
|
create:
|
@@ -492,23 +491,6 @@ el:
|
|
492
491
|
related_assemblies: Σχετικές συνελεύσεις
|
493
492
|
related_consultations: Σχετικές διαβουλεύσεις
|
494
493
|
related_participatory_processes: Σχετικές διαδικασίες συμμετοχής
|
495
|
-
statistics:
|
496
|
-
answers_count: Απαντήσεις
|
497
|
-
comments_count: Σχόλια
|
498
|
-
conference_count: Διασκέψεις
|
499
|
-
debates_count: Συζητήσεις
|
500
|
-
endorsements_count: Επιδοκιμασίες
|
501
|
-
headline: Δραστηριότητα
|
502
|
-
meetings_count: Συσκέψεις
|
503
|
-
orders_count: Υποστηρίξεις
|
504
|
-
pages_count: Σελίδες
|
505
|
-
posts_count: Δημοσιεύσεις
|
506
|
-
projects_count: Έργα
|
507
|
-
proposals_count: Προτάσεις
|
508
|
-
results_count: Αποτελέσματα
|
509
|
-
surveys_count: Έρευνες
|
510
|
-
users_count: Συμμετέχοντες
|
511
|
-
votes_count: Υποστηρίξεις
|
512
494
|
events:
|
513
495
|
conferences:
|
514
496
|
conference_registration_confirmed:
|
data/config/locales/en.yml
CHANGED
@@ -247,7 +247,7 @@ en:
|
|
247
247
|
price: Price
|
248
248
|
registrations_count: Registrations count
|
249
249
|
title: Title
|
250
|
-
weight:
|
250
|
+
weight: Order position
|
251
251
|
name: Registration type
|
252
252
|
partners:
|
253
253
|
create:
|
@@ -502,6 +502,7 @@ en:
|
|
502
502
|
home:
|
503
503
|
highlighted_conferences:
|
504
504
|
active_conferences: Active conferences
|
505
|
+
conferences_button_title: Link to the Conferences page displaying all the conferences
|
505
506
|
see_all_conferences: See all conferences
|
506
507
|
photo:
|
507
508
|
image:
|
@@ -533,23 +534,6 @@ en:
|
|
533
534
|
related_assemblies: Related assemblies
|
534
535
|
related_consultations: Related Consultations
|
535
536
|
related_participatory_processes: Related participatory processes
|
536
|
-
statistics:
|
537
|
-
answers_count: Answers
|
538
|
-
comments_count: Comments
|
539
|
-
conference_count: Conferences
|
540
|
-
debates_count: Debates
|
541
|
-
endorsements_count: Endorsements
|
542
|
-
headline: Activity
|
543
|
-
meetings_count: Meetings
|
544
|
-
orders_count: Supports
|
545
|
-
pages_count: Pages
|
546
|
-
posts_count: Posts
|
547
|
-
projects_count: Projects
|
548
|
-
proposals_count: Proposals
|
549
|
-
results_count: Results
|
550
|
-
surveys_count: Surveys
|
551
|
-
users_count: Participants
|
552
|
-
votes_count: Supports
|
553
537
|
events:
|
554
538
|
conferences:
|
555
539
|
conference_registration_confirmed:
|
@@ -597,6 +581,8 @@ en:
|
|
597
581
|
title: Media and Links
|
598
582
|
menu:
|
599
583
|
conferences: Conferences
|
584
|
+
statistics:
|
585
|
+
conferences_count: Conferences
|
600
586
|
devise:
|
601
587
|
mailer:
|
602
588
|
join_conference:
|