decidim-conferences 0.21.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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_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 +10 -3
- data/app/commands/decidim/conferences/admin/update_conference_admin.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 +16 -1
- data/app/models/decidim/conference_speaker.rb +5 -2
- 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/presenters/decidim/conferences/admin_log/{conferences_presenter.rb → conference_presenter.rb} +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/{conferences_user_role_presenter.rb → conference_user_role_presenter.rb} +2 -2
- data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
- data/app/presenters/decidim/conferences/conference_stats_presenter.rb +1 -1
- 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 +2 -2
- data/app/views/decidim/conferences/admin/conferences/index.html.erb +1 -1
- 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_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/conference.html.erb +4 -5
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/bg-BG.yml +7 -0
- data/config/locales/bg.yml +7 -0
- data/config/locales/ca.yml +9 -0
- data/config/locales/cs.yml +35 -26
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +51 -41
- data/config/locales/el.yml +579 -0
- data/config/locales/en.yml +9 -0
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +9 -0
- data/config/locales/es-PY.yml +9 -0
- data/config/locales/es.yml +9 -0
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/fi-plain.yml +10 -1
- data/config/locales/fi.yml +16 -7
- 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 +3 -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 +15 -5
- data/config/locales/no.yml +12 -3
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +204 -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/si-LK.yml +1 -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 +25 -15
- data/config/locales/sw-KE.yml +1 -0
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +68 -58
- 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 +17 -12
- data/lib/decidim/conferences/test/factories.rb +3 -3
- data/lib/decidim/conferences/version.rb +1 -1
- metadata +58 -17
@@ -10,13 +10,17 @@ module Decidim
|
|
10
10
|
include Decidim::HasAttachmentCollections
|
11
11
|
include Decidim::Participable
|
12
12
|
include Decidim::Publicable
|
13
|
-
include Decidim::
|
13
|
+
include Decidim::ScopableParticipatorySpace
|
14
14
|
include Decidim::Followable
|
15
15
|
include Decidim::HasReference
|
16
16
|
include Decidim::Traceable
|
17
17
|
include Decidim::Loggable
|
18
18
|
include Decidim::ParticipatorySpaceResourceable
|
19
19
|
include Decidim::Searchable
|
20
|
+
include Decidim::HasUploadValidations
|
21
|
+
include Decidim::TranslatableResource
|
22
|
+
|
23
|
+
translatable_fields :title, :slogan, :short_description, :description, :objectives, :registration_terms
|
20
24
|
|
21
25
|
belongs_to :organization,
|
22
26
|
foreign_key: "decidim_organization_id",
|
@@ -51,9 +55,16 @@ module Decidim
|
|
51
55
|
validates :slug, uniqueness: { scope: :organization }
|
52
56
|
validates :slug, presence: true, format: { with: Decidim::Conference.slug_format }
|
53
57
|
|
58
|
+
validates_upload :hero_image
|
54
59
|
mount_uploader :hero_image, Decidim::HeroImageUploader
|
60
|
+
|
61
|
+
validates_upload :banner_image
|
55
62
|
mount_uploader :banner_image, Decidim::HomepageImageUploader
|
63
|
+
|
64
|
+
validates_upload :main_logo
|
56
65
|
mount_uploader :main_logo, Decidim::Conferences::DiplomaUploader
|
66
|
+
|
67
|
+
validates_upload :signature
|
57
68
|
mount_uploader :signature, Decidim::Conferences::DiplomaUploader
|
58
69
|
|
59
70
|
searchable_fields({
|
@@ -124,6 +135,10 @@ module Decidim
|
|
124
135
|
roles.where(role: role_name)
|
125
136
|
end
|
126
137
|
|
138
|
+
def attachment_context
|
139
|
+
:admin
|
140
|
+
end
|
141
|
+
|
127
142
|
# Allow ransacker to search for a key in a hstore column (`title`.`en`)
|
128
143
|
ransacker :title do |parent|
|
129
144
|
Arel::Nodes::InfixOperation.new("->>", parent.table[:title], Arel::Nodes.build_quoted(I18n.locale.to_s))
|
@@ -6,16 +6,19 @@ module Decidim
|
|
6
6
|
class ConferenceSpeaker < ApplicationRecord
|
7
7
|
include Decidim::Traceable
|
8
8
|
include Decidim::Loggable
|
9
|
+
include Decidim::HasUploadValidations
|
10
|
+
include Decidim::TranslatableResource
|
11
|
+
|
12
|
+
translatable_fields :position, :affiliation, :short_bio
|
9
13
|
|
10
14
|
belongs_to :user, foreign_key: "decidim_user_id", class_name: "Decidim::User", optional: true
|
11
15
|
belongs_to :conference, foreign_key: "decidim_conference_id", class_name: "Decidim::Conference"
|
12
16
|
has_many :conference_speaker_conference_meetings, dependent: :destroy
|
13
17
|
has_many :conference_meetings, through: :conference_speaker_conference_meetings, foreign_key: "conference_speaker_id", class_name: "Decidim::ConferenceMeeting"
|
14
18
|
|
15
|
-
validates :avatar, file_size: { less_than_or_equal_to: ->(_record) { Decidim.maximum_avatar_size } }
|
16
|
-
|
17
19
|
default_scope { order(full_name: :asc, created_at: :asc) }
|
18
20
|
|
21
|
+
validates_avatar
|
19
22
|
mount_uploader :avatar, Decidim::AvatarUploader
|
20
23
|
|
21
24
|
delegate :organization, to: :conference
|
@@ -6,6 +6,9 @@ module Decidim
|
|
6
6
|
class MediaLink < ApplicationRecord
|
7
7
|
include Decidim::Traceable
|
8
8
|
include Decidim::Loggable
|
9
|
+
include Decidim::TranslatableResource
|
10
|
+
|
11
|
+
translatable_fields :title
|
9
12
|
|
10
13
|
belongs_to :conference, foreign_key: "decidim_conference_id", class_name: "Decidim::Conference"
|
11
14
|
|
@@ -6,15 +6,19 @@ module Decidim
|
|
6
6
|
class Partner < ApplicationRecord
|
7
7
|
include Decidim::Traceable
|
8
8
|
include Decidim::Loggable
|
9
|
+
include Decidim::HasUploadValidations
|
9
10
|
|
10
11
|
TYPES = %w(main_promotor collaborator).freeze
|
11
12
|
|
12
13
|
belongs_to :conference, foreign_key: "decidim_conference_id", class_name: "Decidim::Conference"
|
13
|
-
validates :logo, file_size: { less_than_or_equal_to: ->(_record) { Decidim.maximum_avatar_size } }
|
14
14
|
|
15
15
|
default_scope { order(partner_type: :desc, weight: :asc) }
|
16
|
+
|
17
|
+
validates_avatar :logo
|
16
18
|
mount_uploader :logo, Decidim::Conferences::PartnerLogoUploader
|
17
19
|
|
20
|
+
delegate :organization, to: :conference
|
21
|
+
|
18
22
|
alias participatory_space conference
|
19
23
|
|
20
24
|
def self.log_presenter_class_for(_log)
|
@@ -7,6 +7,9 @@ module Decidim
|
|
7
7
|
include Decidim::Publicable
|
8
8
|
include Decidim::Traceable
|
9
9
|
include Decidim::Loggable
|
10
|
+
include Decidim::TranslatableResource
|
11
|
+
|
12
|
+
translatable_fields :title, :description
|
10
13
|
|
11
14
|
belongs_to :conference, foreign_key: "decidim_conference_id", class_name: "Decidim::Conference"
|
12
15
|
has_many :conference_meeting_registration_types, dependent: :destroy
|
@@ -38,7 +38,7 @@ module Decidim
|
|
38
38
|
|
39
39
|
def render_stats_data(component_manifest, name, data, index)
|
40
40
|
safe_join([
|
41
|
-
index.zero? ? manifest_icon(component_manifest) : " / ".html_safe,
|
41
|
+
index.zero? ? manifest_icon(component_manifest, role: "img", "aria-hidden": true) : " / ".html_safe,
|
42
42
|
content_tag(:span, "#{number_with_delimiter(data)} " + I18n.t(name, scope: "decidim.conferences.statistics"),
|
43
43
|
class: "#{name} process_stats-text")
|
44
44
|
])
|
@@ -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>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<td>
|
24
24
|
<% if conference.promoted? %>
|
25
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") %>">
|
26
|
-
<%= icon "star" %>
|
26
|
+
<%= icon "star", aria_label: t("models.conference.fields.promoted", scope: "decidim.admin"), role: "img" %>
|
27
27
|
</span>
|
28
28
|
<% end %>
|
29
29
|
<% if allowed_to? :update, :conference, conference: conference %>
|
@@ -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>
|
@@ -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 %>
|