decidim-conferences 0.19.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/assets/images/decidim/conferences/conference.svg +1 -3
- data/app/cells/decidim/conferences/conference_m/footer.erb +1 -1
- data/app/cells/decidim/conferences/conference_m_cell.rb +4 -0
- data/app/cells/decidim/conferences/conference_speaker/show.erb +2 -2
- data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +9 -10
- data/app/cells/decidim/conferences/media_link/show.erb +2 -2
- data/app/cells/decidim/conferences/partner_cell.rb +1 -1
- data/app/cells/decidim/conferences/photo/show.erb +3 -5
- data/app/cells/decidim/conferences/photo_cell.rb +2 -2
- data/app/cells/decidim/conferences/photos_list/show.erb +1 -1
- data/app/cells/decidim/conferences/registration_type/join_conference.erb +1 -1
- data/app/cells/decidim/conferences/registration_type_cell.rb +2 -2
- data/app/commands/decidim/conferences/admin/create_conference.rb +3 -3
- data/app/commands/decidim/conferences/admin/create_conference_admin.rb +2 -1
- data/app/commands/decidim/conferences/admin/create_partner.rb +9 -9
- data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +22 -0
- data/app/commands/decidim/conferences/admin/update_conference.rb +13 -6
- data/app/commands/decidim/conferences/admin/update_conference_admin.rb +2 -1
- data/app/controllers/concerns/decidim/conferences/admin/filterable.rb +27 -0
- data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_speakers_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/conferences_controller.rb +4 -4
- data/app/controllers/decidim/conferences/admin/media_links_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/partners_controller.rb +2 -1
- data/app/controllers/decidim/conferences/admin/registration_types_controller.rb +2 -1
- data/app/events/decidim/conferences/conference_role_assigned_event.rb +30 -0
- data/app/forms/decidim/conferences/admin/conference_form.rb +5 -2
- data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +12 -1
- data/app/forms/decidim/conferences/admin/diploma_form.rb +6 -2
- data/app/forms/decidim/conferences/admin/partner_form.rb +16 -1
- data/app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb +1 -1
- data/app/models/decidim/conference.rb +41 -1
- data/app/models/decidim/conference_speaker.rb +5 -2
- data/app/models/decidim/conference_user_role.rb +1 -1
- data/app/models/decidim/conferences/media_link.rb +3 -0
- data/app/models/decidim/conferences/partner.rb +5 -1
- data/app/models/decidim/conferences/registration_type.rb +3 -0
- data/app/permissions/decidim/conferences/permissions.rb +9 -0
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +1 -1
- data/app/types/decidim/conferences/conference_media_link_type.rb +19 -0
- data/app/types/decidim/conferences/conference_partner_type.rb +20 -0
- data/app/types/decidim/conferences/conference_speaker_type.rb +24 -0
- data/app/types/decidim/conferences/conference_type.rb +45 -0
- data/app/views/decidim/conferences/_order_by_conferences.html.erb +1 -1
- data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +2 -2
- data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +3 -2
- data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +1 -0
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +7 -3
- data/app/views/decidim/conferences/admin/partners/index.html.erb +1 -0
- data/app/views/decidim/conferences/admin/registration_types/index.html.erb +1 -0
- data/app/views/decidim/conferences/conference_program/_program_item.html.erb +6 -4
- data/app/views/decidim/conferences/conference_program/show.html.erb +6 -6
- data/app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb +1 -1
- data/app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb +1 -1
- data/app/views/decidim/conferences/conference_speakers/index.html.erb +1 -1
- data/app/views/decidim/conferences/conferences/_partners.html.erb +1 -1
- data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +3 -3
- data/app/views/decidim/conferences/conferences/show.html.erb +7 -13
- data/app/views/decidim/conferences/media/index.html.erb +3 -3
- data/app/views/decidim/conferences/registration_types/index.html.erb +1 -1
- data/app/views/layouts/decidim/_conference_hero.html.erb +4 -8
- data/app/views/layouts/decidim/_conferences_nav.html.erb +2 -2
- data/app/views/layouts/decidim/admin/conference.html.erb +2 -2
- data/app/views/layouts/decidim/conference.html.erb +4 -5
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +4 -2
- data/config/locales/bg-BG.yml +7 -0
- data/config/locales/bg.yml +7 -0
- data/config/locales/ca.yml +10 -0
- data/config/locales/cs.yml +20 -10
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +9 -0
- data/config/locales/el-GR.yml +1 -0
- data/config/locales/el.yml +580 -0
- data/config/locales/en.yml +10 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +10 -0
- data/config/locales/es-PY.yml +10 -0
- data/config/locales/es.yml +10 -0
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +10 -0
- data/config/locales/fi.yml +14 -4
- data/config/locales/fr-CA.yml +581 -0
- data/config/locales/fr.yml +10 -0
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +4 -0
- data/config/locales/is-IS.yml +1 -0
- data/config/locales/is.yml +1 -0
- data/config/locales/it.yml +169 -159
- data/config/locales/ja-JP.yml +575 -0
- data/config/locales/ja.yml +576 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +584 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +10 -0
- data/config/locales/no.yml +470 -7
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +203 -193
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/pt.yml +238 -229
- data/config/locales/ro-RO.yml +536 -0
- data/config/locales/sk-SK.yml +585 -0
- data/config/locales/sk.yml +585 -0
- data/config/locales/sl.yml +42 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +19 -0
- data/config/locales/sv.yml +24 -15
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +576 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200320105913_index_foreign_keys_in_decidim_conferences.rb +7 -0
- data/db/migrate/20200320105914_index_foreign_keys_in_decidim_conferences_conference_invites.rb +7 -0
- data/db/migrate/20200320105915_index_foreign_keys_in_decidim_conferences_conference_registrations.rb +7 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/lib/decidim/conferences/admin_engine.rb +1 -0
- data/lib/decidim/conferences/participatory_space.rb +21 -12
- data/lib/decidim/conferences/test/factories.rb +19 -3
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +58 -12
- data/app/views/decidim/conferences/conference_widgets/show.html.erb +0 -11
@@ -1,3 +1,3 @@
|
|
1
1
|
<div class="row collapse order-by">
|
2
|
-
<
|
2
|
+
<h3 class="order-by__text section-heading"><%= t("conferences.order_by_conferences.conferences", scope: "layouts.decidim", count: collection.count) %></h3>
|
3
3
|
</div>
|
@@ -26,8 +26,8 @@
|
|
26
26
|
<%= search_field_tag :q, @query,label: false, class: "input-group-field", placeholder: t(".search") %>
|
27
27
|
<%= hidden_field_tag :state, @state %>
|
28
28
|
<div class="input-group-button">
|
29
|
-
<button type="submit" class="button
|
30
|
-
<%= icon "magnifying-glass", aria_label: t(".search") %>
|
29
|
+
<button type="submit" class="button">
|
30
|
+
<%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
|
31
31
|
</button>
|
32
32
|
</div>
|
33
33
|
</div>
|
@@ -5,8 +5,8 @@
|
|
5
5
|
<div class="input-group">
|
6
6
|
<%= search_field_tag :q, @query,label: false, class: "input-group-field", placeholder: t(".search") %>
|
7
7
|
<div class="input-group-button">
|
8
|
-
<button type="submit" class="button
|
9
|
-
<%= icon "magnifying-glass", aria_label: t(".search") %>
|
8
|
+
<button type="submit" class="button">
|
9
|
+
<%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
|
10
10
|
</button>
|
11
11
|
</div>
|
12
12
|
</div>
|
@@ -63,6 +63,7 @@
|
|
63
63
|
<% end %>
|
64
64
|
</tbody>
|
65
65
|
</table>
|
66
|
+
<%= paginate @conference_speakers, theme: "decidim" %>
|
66
67
|
</div>
|
67
68
|
</div>
|
68
69
|
</div>
|
@@ -1,17 +1,18 @@
|
|
1
|
-
<div class="card" id="conferences">
|
1
|
+
<div class="card with-overflow" id="conferences">
|
2
2
|
<div class="card-divider">
|
3
3
|
<h2 class="card-title">
|
4
4
|
<%= t "decidim.admin.titles.conferences" %>
|
5
5
|
<%= link_to t("actions.new_conference", scope: "decidim.admin"), new_conference_path, class: "button tiny button--title" if allowed_to? :create, :conference %>
|
6
6
|
</h2>
|
7
7
|
</div>
|
8
|
+
<%= admin_filter_selector %>
|
8
9
|
<div class="card-section">
|
9
10
|
<div class="table-scroll">
|
10
11
|
<table class="table-list">
|
11
12
|
<thead>
|
12
13
|
<tr>
|
13
14
|
<th><%= t("models.conference.fields.title", scope: "decidim.admin") %></th>
|
14
|
-
<th><%= t("models.conference.fields.created_at", scope: "decidim.admin") %></th>
|
15
|
+
<th><%= sort_link(query, :created_at, t("models.conference.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
15
16
|
<th class="table-list__actions"><%= t("models.conference.fields.published", scope: "decidim.admin") %></th>
|
16
17
|
<th></th>
|
17
18
|
</tr>
|
@@ -22,11 +23,13 @@
|
|
22
23
|
<td>
|
23
24
|
<% if conference.promoted? %>
|
24
25
|
<span data-tooltip class="icon-state icon-highlight" aria-haspopup="true" data-disable-hover="false" title="<%= t("models.conference.fields.promoted", scope: "decidim.admin") %>">
|
25
|
-
<%= icon "star" %>
|
26
|
+
<%= icon "star", aria_label: t("models.conference.fields.promoted", scope: "decidim.admin"), role: "img" %>
|
26
27
|
</span>
|
27
28
|
<% end %>
|
28
29
|
<% if allowed_to? :update, :conference, conference: conference %>
|
29
30
|
<%= link_to translated_attribute(conference.title), edit_conference_path(conference) %><br>
|
31
|
+
<% elsif allowed_to? :read, :component, conference: conference %>
|
32
|
+
<%= link_to translated_attribute(conference.title), components_path(conference) %><br>
|
30
33
|
<% elsif allowed_to? :preview, :conference, conference: conference %>
|
31
34
|
<%= link_to translated_attribute(conference.title), decidim_conferences.conference_path(conference) %><br>
|
32
35
|
<% elsif allowed_to? :read, :moderation, conference: conference %>
|
@@ -60,6 +63,7 @@
|
|
60
63
|
<% end %>
|
61
64
|
</tbody>
|
62
65
|
</table>
|
66
|
+
<%= paginate @conferences, theme: "decidim" %>
|
63
67
|
</div>
|
64
68
|
</div>
|
65
69
|
</div>
|
@@ -8,10 +8,12 @@
|
|
8
8
|
<ul class="tabs buttons__row" id="conference-row-<%= seed %>-tabs" data-tabs>
|
9
9
|
<% categories.each_with_index do |category, i| %>
|
10
10
|
<li class="tabs-title<%= " is-active" if i == 0 %>">
|
11
|
-
<!-- Wrap
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
11
|
+
<!-- Wrap the anchor inside a div to keep correct button styling -->
|
12
|
+
<div>
|
13
|
+
<a href="#conference-row-<%= seed %>-tab<%= i %>" class="button button--shadow tiny hollow">
|
14
|
+
<%= category.present? ? translated_attribute(category.name) : "other" %>
|
15
|
+
</a>
|
16
|
+
</div>
|
15
17
|
</li>
|
16
18
|
<% end %>
|
17
19
|
</ul>
|
@@ -12,7 +12,7 @@ end
|
|
12
12
|
<% add_decidim_meta_tags(title: t("conference_program.index.title", scope: "decidim")) %>
|
13
13
|
<div class="section row">
|
14
14
|
<div class="columns mediumlarge-12">
|
15
|
-
<
|
15
|
+
<h3 class="section-heading"><%= t(".program") %></h3>
|
16
16
|
<div class="conference-programme">
|
17
17
|
<div class="row collapse programme-selector">
|
18
18
|
<div class="column medium-2">
|
@@ -28,12 +28,12 @@ end
|
|
28
28
|
data-tabs>
|
29
29
|
<% meeting_days.each_with_index do |day, i| %>
|
30
30
|
<li class="tabs-title <%= "is-active" if i == 0 %>">
|
31
|
-
<!-- Wrap
|
32
|
-
<
|
33
|
-
<
|
31
|
+
<!-- Wrap the anchor inside a div to keep correct button styling -->
|
32
|
+
<div>
|
33
|
+
<a href="#conference-day-tab-<%= i %>" class="button button--nomargin button--sc hollow">
|
34
34
|
<%= l day, format: :decidim_with_day_and_month_name %>
|
35
|
-
</
|
36
|
-
</
|
35
|
+
</a>
|
36
|
+
</div>
|
37
37
|
</li>
|
38
38
|
<% end %>
|
39
39
|
</ul>
|
@@ -3,7 +3,7 @@
|
|
3
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>
|
4
4
|
|
5
5
|
<ul>
|
6
|
-
<% @registration_type.conference_meetings.each do |conference_meeting| %>
|
6
|
+
<% @registration_type.conference_meetings.order(:start_time).each do |conference_meeting| %>
|
7
7
|
<li><%= present(conference_meeting).title %> </li>
|
8
8
|
<% end %>
|
9
9
|
</ul>
|
data/app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
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>
|
4
4
|
|
5
5
|
<ul>
|
6
|
-
<% @registration_type.conference_meetings.each do |conference_meeting| %>
|
6
|
+
<% @registration_type.conference_meetings.order(:start_time).each do |conference_meeting| %>
|
7
7
|
<li><%= present(conference_meeting).title %> </li>
|
8
8
|
<% end %>
|
9
9
|
</ul>
|
@@ -11,7 +11,7 @@ edit_link(
|
|
11
11
|
|
12
12
|
<section class="" id="conference_speakers-grid">
|
13
13
|
<div class="row column">
|
14
|
-
<
|
14
|
+
<h3 class="section-heading"><%= t(".speakers") %></h3>
|
15
15
|
<div class="row small-up-2 medium-up-5 mb-l">
|
16
16
|
<%= render(collection) %>
|
17
17
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% conference.partners.group_by(&:partner_type).each do |partner_type, partners| %>
|
4
4
|
<hr class="reset mt-none mb-m">
|
5
5
|
<section class="section">
|
6
|
-
<
|
6
|
+
<h3 class="section-heading"><%= t(".#{partner_type.pluralize}") %></h3>
|
7
7
|
<div class="row small-up-2 medium-up-3 card-grid">
|
8
8
|
<% partners.each do |partner| %>
|
9
9
|
<%= cell "decidim/conferences/partner", partner %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<
|
1
|
+
<div class="card card--full card--process">
|
2
2
|
<div class="row collapse card--process__row">
|
3
3
|
<div class="columns mediumlarge-8 large-6 card--process__column">
|
4
4
|
<div class="card__content">
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<h2 class="card__title"><%= translated_attribute promoted_conference.title %></h2>
|
7
7
|
<% end %>
|
8
8
|
<%= decidim_sanitize html_truncate(translated_attribute(promoted_conference.short_description), length: 630, separator: "...") %>
|
9
|
-
<%= link_to conference_path(promoted_conference), class: "button
|
9
|
+
<%= link_to conference_path(promoted_conference), class: "button small hollow card__button" do %>
|
10
10
|
<%= t("conferences.promoted_conference.more_info", scope: "layouts.decidim") %>
|
11
11
|
<% end %>
|
12
12
|
</div>
|
@@ -24,4 +24,4 @@
|
|
24
24
|
</div>
|
25
25
|
</div>
|
26
26
|
</div>
|
27
|
-
</
|
27
|
+
</div>
|
@@ -19,28 +19,24 @@ edit_link(
|
|
19
19
|
<div class="row">
|
20
20
|
<div class="columns mediumlarge-12">
|
21
21
|
<section class="section">
|
22
|
-
<
|
22
|
+
<h3 class="section-heading"><%= t("conferences.show.introduction", scope: "decidim") %></h3>
|
23
23
|
<%= decidim_sanitize translated_attribute(current_participatory_space.short_description) %>
|
24
24
|
</section>
|
25
25
|
<hr class="reset mt-none mb-m">
|
26
26
|
<section class="section">
|
27
|
-
<
|
27
|
+
<h3 class="section-heading"><%= t("conferences.show.details", scope: "decidim") %></h3>
|
28
28
|
<%= decidim_sanitize translated_attribute(current_participatory_space.description) %>
|
29
29
|
<div class="row mt-l mb-l">
|
30
30
|
<div class="column medium-9 medium-centered">
|
31
31
|
<% if current_participatory_space.registrations_enabled? %>
|
32
32
|
<div class="column medium-6">
|
33
|
-
<%= link_to decidim_conferences.conference_registration_types_path(current_participatory_space)
|
34
|
-
<button type="button" class="button button--sc light expanded"><%= t(".register") %></button>
|
35
|
-
<% end %>
|
33
|
+
<%= link_to t(".register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class:"button button--sc light expanded" %>
|
36
34
|
</div>
|
37
35
|
<% end %>
|
38
36
|
<% current_participatory_space.components.where(manifest_name: "meetings").each do |component_meeting| %>
|
39
37
|
<% if component_meeting.published? || component_meeting == self.try(:current_component) %>
|
40
38
|
<div class="column medium-6 end">
|
41
|
-
<%= link_to decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id)
|
42
|
-
<button type="button" class="button button--sc secondary light expanded"><%= translated_attribute(component_meeting.name) %></button>
|
43
|
-
<% end %>
|
39
|
+
<%= link_to translated_attribute(component_meeting.name), decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id), class:"button button--sc secondary light expanded" %>
|
44
40
|
</div>
|
45
41
|
<% end %>
|
46
42
|
<% end %>
|
@@ -55,15 +51,13 @@ edit_link(
|
|
55
51
|
<% if current_participatory_space.registrations_enabled? %>
|
56
52
|
<hr class="reset mt-none mb-m">
|
57
53
|
<section class="section">
|
58
|
-
<
|
54
|
+
<h3 class="section-heading"><%= t(".register") %></h3>
|
59
55
|
<% if current_user.present? %>
|
60
56
|
<div class="card p-m text-center">
|
61
57
|
<p><%= t(".login_as", name: current_user.name, email: current_user.email ) %></p>
|
62
58
|
<p><%= t(".make_conference_registration") %></p>
|
63
59
|
<div class="medium-3" style="margin: 0 auto;">
|
64
|
-
<%= link_to decidim_conferences.conference_registration_types_path(current_participatory_space)
|
65
|
-
<button type="button" class="button button--sc light expanded"><%= t(".register") %></button>
|
66
|
-
<% end %>
|
60
|
+
<%= link_to t(".register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class:"button button--sc light expanded" %>
|
67
61
|
</div>
|
68
62
|
</div>
|
69
63
|
<% else %>
|
@@ -76,7 +70,7 @@ edit_link(
|
|
76
70
|
|
77
71
|
<% unless translated_attribute(current_participatory_space.objectives).blank? %>
|
78
72
|
<section class="section">
|
79
|
-
<
|
73
|
+
<h3 class="section-heading"><%= t("conferences.show.objectives", scope: "decidim") %></h3>
|
80
74
|
<%= decidim_sanitize translated_attribute(current_participatory_space.objectives) %>
|
81
75
|
</section>
|
82
76
|
<% end %>
|
@@ -13,17 +13,17 @@ edit_link(
|
|
13
13
|
<div class="columns mediumlarge-12 conference-media">
|
14
14
|
<% if @media_links.any? %>
|
15
15
|
<section>
|
16
|
-
<
|
16
|
+
<h3 class="section-heading"><%= t("media.index.title", scope: "decidim") %></h3>
|
17
17
|
<p><%= t("media.index.description", scope: "decidim") %></p>
|
18
18
|
</section>
|
19
19
|
<hr class="reset mt-none mb-s">
|
20
|
-
<
|
20
|
+
<div class="media-links">
|
21
21
|
<ul class="list-reset">
|
22
22
|
<% @media_links.each do |media_link| %>
|
23
23
|
<%= cell "decidim/conferences/media_link", media_link %>
|
24
24
|
<% end %>
|
25
25
|
</ul>
|
26
|
-
</
|
26
|
+
</div>
|
27
27
|
<hr class="reset mt-none mb-s">
|
28
28
|
<% end %>
|
29
29
|
<%= attachments_for_conference current_participatory_space %>
|
@@ -23,7 +23,7 @@ edit_link(
|
|
23
23
|
<%= cell "decidim/conferences/registration_type", registration_type, allowed: allowed_to?(:join, :conference, conference: current_participatory_space) %>
|
24
24
|
<% end %>
|
25
25
|
<% else %>
|
26
|
-
|
26
|
+
<%= t("registration_types.index.no_registrations", scope: "decidim.conferences") %>
|
27
27
|
<% end %>
|
28
28
|
</section>
|
29
29
|
</div>
|
@@ -6,14 +6,14 @@
|
|
6
6
|
<h1 class="text-highlight hero-heading mb-none">
|
7
7
|
<%= translated_attribute(current_participatory_space.title) %>
|
8
8
|
</h1>
|
9
|
-
<
|
9
|
+
<h2 class="text-highlight">
|
10
10
|
<% if current_participatory_space.hashtag.present? %>
|
11
11
|
<span class="process-header__hashtag card__link">
|
12
12
|
<%= link_to "##{current_participatory_space.hashtag}", "https://twitter.com/hashtag/#{current_participatory_space.hashtag}", target: "_blank" %>
|
13
13
|
</span>
|
14
14
|
<% end %>
|
15
15
|
<%= translated_attribute(current_participatory_space.slogan) %>
|
16
|
-
</
|
16
|
+
</h2>
|
17
17
|
</div>
|
18
18
|
</div>
|
19
19
|
<div class="row">
|
@@ -26,17 +26,13 @@
|
|
26
26
|
</div>
|
27
27
|
<% if current_participatory_space.registrations_enabled? %>
|
28
28
|
<div class="column medium-3 end">
|
29
|
-
<%= link_to decidim_conferences.conference_registration_types_path(current_participatory_space)
|
30
|
-
<button type="button" class="button button--sc light expanded"><%= t(".register") %></button>
|
31
|
-
<% end %>
|
29
|
+
<%= link_to t(".register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class:"button button--sc light expanded" %>
|
32
30
|
</div>
|
33
31
|
<% end %>
|
34
32
|
<% current_participatory_space.components.where(manifest_name: "meetings").each do |component_meeting| %>
|
35
33
|
<% if component_meeting.published? || component_meeting == self.try(:current_component) %>
|
36
34
|
<div class="column medium-3 end">
|
37
|
-
<%= link_to decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id)
|
38
|
-
<button type="button" class="button button--sc secondary light expanded"><%= translated_attribute(component_meeting.name) %></button>
|
39
|
-
<% end %>
|
35
|
+
<%= link_to translated_attribute(component_meeting.name), decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id), class:"button button--sc light hollow expanded" %>
|
40
36
|
</div>
|
41
37
|
<% end %>
|
42
38
|
<% end %>
|
@@ -16,11 +16,11 @@
|
|
16
16
|
active: is_active_link?(decidim_conferences.conference_conference_speakers_path(current_participatory_space), :inclusive)
|
17
17
|
} : nil
|
18
18
|
] + meeting_components.map do |component|
|
19
|
-
{
|
19
|
+
Decidim::Meetings::Meeting.visible_meeting_for(current_user).any? ? {
|
20
20
|
name: translated_attribute(component.name),
|
21
21
|
url: decidim_conferences.conference_conference_program_path(current_participatory_space, id: component.id),
|
22
22
|
active: is_active_link?(decidim_conferences.conference_conference_program_path(current_participatory_space, id: component.id), :inclusive)
|
23
|
-
}
|
23
|
+
} : nil
|
24
24
|
end + [
|
25
25
|
current_participatory_space.partners.any? ? {
|
26
26
|
name: t(".conference_partners_menu_item"),
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<% if allowed_to? :read, :component, conference: current_participatory_space %>
|
11
11
|
<li <% if is_active_link?(decidim_admin_conferences.components_path(current_participatory_space)) %> class="is-active" <% end %>>
|
12
12
|
<%= aria_selected_link_to t("components", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.components_path(current_participatory_space) %>
|
13
|
-
<ul>
|
13
|
+
<ul id="components-list">
|
14
14
|
<% current_participatory_space.components.each do |component| %>
|
15
|
-
<% if component.manifest.admin_engine %>
|
15
|
+
<% if component.manifest.admin_engine && user_role_config.component_is_accessible?(component.manifest_name) %>
|
16
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)) %> class="is-active" <% end %>>
|
17
17
|
<%= link_to manage_component_path(component) do %>
|
18
18
|
<%= translated_attribute component.name %>
|
@@ -8,11 +8,10 @@
|
|
8
8
|
<%= render "layouts/decidim/application" do %>
|
9
9
|
<%= render partial: "layouts/decidim/conference_hero" %>
|
10
10
|
<%= render partial: "layouts/decidim/conferences_nav" %>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
</section>
|
11
|
+
<%= cell "decidim/translation_bar", current_organization %>
|
12
|
+
<div class="wrapper">
|
13
|
+
<%= yield %>
|
14
|
+
</div>
|
16
15
|
|
17
16
|
<% if content_for? :expanded %>
|
18
17
|
<div class="expanded">
|
@@ -0,0 +1 @@
|
|
1
|
+
am:
|
data/config/locales/ar.yml
CHANGED
@@ -16,7 +16,7 @@ ar:
|
|
16
16
|
promoted: سلط الضوء
|
17
17
|
published_at: نشرت في
|
18
18
|
scope_id: نطاق
|
19
|
-
scopes_enabled:
|
19
|
+
scopes_enabled: النطاقات المُفعّلَة
|
20
20
|
short_description: وصف قصير
|
21
21
|
show_statistics: عرض الإحصائيات
|
22
22
|
slogan: شعار
|
@@ -161,6 +161,7 @@ ar:
|
|
161
161
|
attachments: مرفقات
|
162
162
|
categories: الاقسام
|
163
163
|
components: المكونات
|
164
|
+
conference_admins: المشرفون على المؤتمر
|
164
165
|
conference_invites: تدعو
|
165
166
|
conference_speakers: مكبرات الصوت
|
166
167
|
diploma: شهادة حضور
|
@@ -384,7 +385,7 @@ ar:
|
|
384
385
|
registration: التسجيل
|
385
386
|
conference_program:
|
386
387
|
program_meeting:
|
387
|
-
content:
|
388
|
+
content: المحتوى
|
388
389
|
location: موقعك
|
389
390
|
speakers: مكبرات الصوت
|
390
391
|
streaming: تدفق
|
@@ -395,6 +396,7 @@ ar:
|
|
395
396
|
confirmation:
|
396
397
|
confirmed_html: تم تأكيد تسجيلك للمؤتمر <a href="%{url}">%{title}</a>.
|
397
398
|
details_1: 'أنت مسجل في المؤتمر مع %{registration_type} نوع. تبلغ تكلفتها %{price} ويمكنك حضور الأحداث التالية:'
|
399
|
+
details_2: سوف تجد تفاصيل المحاضرة في المرفقات.
|
398
400
|
pending_validation:
|
399
401
|
confirmation_pending: سوف تتلقى التأكيد قريبا
|
400
402
|
details: 'لقد قمت بالتسجيل إلى %{registration_type} نوع بتكلفة %{price} ويمكنك حضور الأحداث التالية:'
|
data/config/locales/ca.yml
CHANGED
@@ -183,6 +183,7 @@ ca:
|
|
183
183
|
admin: Administradora
|
184
184
|
collaborator: Col·laboradora
|
185
185
|
moderator: Moderadora
|
186
|
+
valuator: Avaluadora
|
186
187
|
media_link:
|
187
188
|
fields:
|
188
189
|
date: Data
|
@@ -461,6 +462,9 @@ ca:
|
|
461
462
|
active_conferences: Jornades actives
|
462
463
|
see_all_conferences: Veure totes les jornades
|
463
464
|
photo:
|
465
|
+
image:
|
466
|
+
attributes:
|
467
|
+
alt: Imatge
|
464
468
|
show:
|
465
469
|
close_modal: Tanca el modal
|
466
470
|
photo: Imatge
|
@@ -471,6 +475,7 @@ ca:
|
|
471
475
|
index:
|
472
476
|
choose_an_option: 'Tria el teu tipus d''inscripció:'
|
473
477
|
login_as: Has iniciat la sessió com a %{name} <%{email}>
|
478
|
+
no_registrations: Sense insripcions
|
474
479
|
register: Inscriu-te
|
475
480
|
title: Tipus d'inscripció
|
476
481
|
shared:
|
@@ -524,6 +529,11 @@ ca:
|
|
524
529
|
email_outro: Has rebut aquesta notificació perquè segueixes la jornada "%{resource_title}". Pots deixar de seguir-la des de l'enllaç anterior.
|
525
530
|
email_subject: S'han activat les inscripcions per a la jornada "%{resource_title}".
|
526
531
|
notification_title: S'han habilitat les inscripcions a la jornada <a href="%{resource_path}">%{resource_title}</a>.
|
532
|
+
role_assigned:
|
533
|
+
email_intro: T'han assignat el rol de %{role} a la jornada "%{resource_title}".
|
534
|
+
email_outro: Reps aquesta notificació perquè se t'ha assignat el rol de %{role} a la jornada "%{resource_title}".
|
535
|
+
email_subject: Se t'ha assignat el rol de %{role} a "%{resource_title}".
|
536
|
+
notification_title: Se t'ha assignat el rol de %{role} a la jornada <a href="%{resource_url}">%{resource_title}</a>.
|
527
537
|
upcoming_conference:
|
528
538
|
email_intro: 'La jornada "%{resource_title}" es durà a terme en 2 dies. Pots llegir-ne la descripció des de la pàgina:'
|
529
539
|
email_outro: Has rebut aquesta notificació perquè estàs seguint la jornada "%{resource_title}". Podeu deixar-la de seguir-a des de l'enllaç anterior.
|