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.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/conferences/conference.svg +1 -3
  3. data/app/cells/decidim/conferences/conference_m/footer.erb +1 -1
  4. data/app/cells/decidim/conferences/conference_m_cell.rb +4 -0
  5. data/app/cells/decidim/conferences/conference_speaker/show.erb +2 -2
  6. data/app/cells/decidim/conferences/content_blocks/highlighted_conferences/show.erb +9 -10
  7. data/app/cells/decidim/conferences/media_link/show.erb +2 -2
  8. data/app/cells/decidim/conferences/partner_cell.rb +1 -1
  9. data/app/cells/decidim/conferences/photo/show.erb +3 -5
  10. data/app/cells/decidim/conferences/photo_cell.rb +2 -2
  11. data/app/cells/decidim/conferences/photos_list/show.erb +1 -1
  12. data/app/cells/decidim/conferences/registration_type/join_conference.erb +1 -1
  13. data/app/cells/decidim/conferences/registration_type_cell.rb +2 -2
  14. data/app/commands/decidim/conferences/admin/create_conference_admin.rb +2 -1
  15. data/app/commands/decidim/conferences/admin/create_partner.rb +9 -9
  16. data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +22 -0
  17. data/app/commands/decidim/conferences/admin/update_conference.rb +10 -3
  18. data/app/commands/decidim/conferences/admin/update_conference_admin.rb +2 -1
  19. data/app/events/decidim/conferences/conference_role_assigned_event.rb +30 -0
  20. data/app/forms/decidim/conferences/admin/conference_form.rb +5 -2
  21. data/app/forms/decidim/conferences/admin/conference_speaker_form.rb +12 -1
  22. data/app/forms/decidim/conferences/admin/diploma_form.rb +6 -2
  23. data/app/forms/decidim/conferences/admin/partner_form.rb +16 -1
  24. data/app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb +1 -1
  25. data/app/models/decidim/conference.rb +16 -1
  26. data/app/models/decidim/conference_speaker.rb +5 -2
  27. data/app/models/decidim/conferences/media_link.rb +3 -0
  28. data/app/models/decidim/conferences/partner.rb +5 -1
  29. data/app/models/decidim/conferences/registration_type.rb +3 -0
  30. data/app/presenters/decidim/conferences/admin_log/{conferences_presenter.rb → conference_presenter.rb} +2 -2
  31. data/app/presenters/decidim/conferences/admin_log/conference_registration_presenter.rb +2 -2
  32. data/app/presenters/decidim/conferences/admin_log/conference_speaker_presenter.rb +2 -2
  33. data/app/presenters/decidim/conferences/admin_log/{conferences_user_role_presenter.rb → conference_user_role_presenter.rb} +2 -2
  34. data/app/presenters/decidim/conferences/admin_log/media_link_presenter.rb +2 -2
  35. data/app/presenters/decidim/conferences/admin_log/partner_presenter.rb +2 -2
  36. data/app/presenters/decidim/conferences/admin_log/registration_type_presenter.rb +2 -2
  37. data/app/presenters/decidim/conferences/conference_stats_presenter.rb +1 -1
  38. data/app/views/decidim/conferences/_order_by_conferences.html.erb +1 -1
  39. data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +2 -2
  40. data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +2 -2
  41. data/app/views/decidim/conferences/admin/conferences/index.html.erb +1 -1
  42. data/app/views/decidim/conferences/conference_program/_program_item.html.erb +6 -4
  43. data/app/views/decidim/conferences/conference_program/show.html.erb +6 -6
  44. data/app/views/decidim/conferences/conference_speakers/index.html.erb +1 -1
  45. data/app/views/decidim/conferences/conferences/_partners.html.erb +1 -1
  46. data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +3 -3
  47. data/app/views/decidim/conferences/conferences/show.html.erb +7 -13
  48. data/app/views/decidim/conferences/media/index.html.erb +3 -3
  49. data/app/views/decidim/conferences/registration_types/index.html.erb +1 -1
  50. data/app/views/layouts/decidim/_conference_hero.html.erb +4 -8
  51. data/app/views/layouts/decidim/_conferences_nav.html.erb +2 -2
  52. data/app/views/layouts/decidim/conference.html.erb +4 -5
  53. data/config/locales/am-ET.yml +1 -0
  54. data/config/locales/bg-BG.yml +7 -0
  55. data/config/locales/bg.yml +7 -0
  56. data/config/locales/ca.yml +9 -0
  57. data/config/locales/cs.yml +35 -26
  58. data/config/locales/da-DK.yml +1 -0
  59. data/config/locales/da.yml +1 -0
  60. data/config/locales/de.yml +51 -41
  61. data/config/locales/el.yml +579 -0
  62. data/config/locales/en.yml +9 -0
  63. data/config/locales/eo.yml +1 -0
  64. data/config/locales/es-MX.yml +9 -0
  65. data/config/locales/es-PY.yml +9 -0
  66. data/config/locales/es.yml +9 -0
  67. data/config/locales/et-EE.yml +1 -0
  68. data/config/locales/et.yml +1 -0
  69. data/config/locales/fi-plain.yml +10 -1
  70. data/config/locales/fi.yml +16 -7
  71. data/config/locales/fr-CA.yml +581 -0
  72. data/config/locales/fr.yml +10 -0
  73. data/config/locales/ga-IE.yml +1 -0
  74. data/config/locales/hr-HR.yml +1 -0
  75. data/config/locales/hr.yml +1 -0
  76. data/config/locales/hu.yml +3 -0
  77. data/config/locales/is.yml +1 -0
  78. data/config/locales/it.yml +169 -159
  79. data/config/locales/ja-JP.yml +575 -0
  80. data/config/locales/ja.yml +576 -0
  81. data/config/locales/ko-KR.yml +1 -0
  82. data/config/locales/ko.yml +1 -0
  83. data/config/locales/lt-LT.yml +1 -0
  84. data/config/locales/lt.yml +1 -0
  85. data/config/locales/lv.yml +584 -0
  86. data/config/locales/mt-MT.yml +1 -0
  87. data/config/locales/mt.yml +1 -0
  88. data/config/locales/nl.yml +15 -5
  89. data/config/locales/no.yml +12 -3
  90. data/config/locales/om-ET.yml +1 -0
  91. data/config/locales/pl.yml +204 -193
  92. data/config/locales/pt-BR.yml +1 -1
  93. data/config/locales/pt.yml +238 -229
  94. data/config/locales/ro-RO.yml +536 -0
  95. data/config/locales/si-LK.yml +1 -0
  96. data/config/locales/sk-SK.yml +585 -0
  97. data/config/locales/sk.yml +585 -0
  98. data/config/locales/sl.yml +42 -0
  99. data/config/locales/so-SO.yml +1 -0
  100. data/config/locales/sr-CS.yml +19 -0
  101. data/config/locales/sv.yml +25 -15
  102. data/config/locales/sw-KE.yml +1 -0
  103. data/config/locales/ti-ER.yml +1 -0
  104. data/config/locales/tr-TR.yml +68 -58
  105. data/config/locales/vi-VN.yml +1 -0
  106. data/config/locales/vi.yml +1 -0
  107. data/config/locales/zh-CN.yml +576 -0
  108. data/config/locales/zh-TW.yml +1 -0
  109. data/db/migrate/20200320105913_index_foreign_keys_in_decidim_conferences.rb +7 -0
  110. data/db/migrate/20200320105914_index_foreign_keys_in_decidim_conferences_conference_invites.rb +7 -0
  111. data/db/migrate/20200320105915_index_foreign_keys_in_decidim_conferences_conference_registrations.rb +7 -0
  112. data/db/seeds/city.jpeg +0 -0
  113. data/db/seeds/city2.jpeg +0 -0
  114. data/lib/decidim/conferences/admin_engine.rb +1 -0
  115. data/lib/decidim/conferences/participatory_space.rb +17 -12
  116. data/lib/decidim/conferences/test/factories.rb +3 -3
  117. data/lib/decidim/conferences/version.rb +1 -1
  118. 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::Scopable
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
@@ -48,8 +48,8 @@ module Decidim
48
48
  end
49
49
  end
50
50
 
51
- def has_diff?
52
- action == "unpublish" || super
51
+ def diff_actions
52
+ super + %w(unpublish)
53
53
  end
54
54
  end
55
55
  end
@@ -34,8 +34,8 @@ module Decidim
34
34
  end
35
35
  end
36
36
 
37
- def has_diff?
38
- action == "delete" || super
37
+ def diff_actions
38
+ super + %w(delete)
39
39
  end
40
40
  end
41
41
  end
@@ -43,8 +43,8 @@ module Decidim
43
43
  end
44
44
  end
45
45
 
46
- def has_diff?
47
- action == "delete" || super
46
+ def diff_actions
47
+ super + %w(delete)
48
48
  end
49
49
  end
50
50
  end
@@ -44,8 +44,8 @@ module Decidim
44
44
  ).changeset
45
45
  end
46
46
 
47
- def has_diff?
48
- action == "delete" || super
47
+ def diff_actions
48
+ super + %w(delete)
49
49
  end
50
50
  end
51
51
  end
@@ -36,8 +36,8 @@ module Decidim
36
36
  end
37
37
  end
38
38
 
39
- def has_diff?
40
- action == "delete" || super
39
+ def diff_actions
40
+ super + %w(delete)
41
41
  end
42
42
  end
43
43
  end
@@ -38,8 +38,8 @@ module Decidim
38
38
  end
39
39
  end
40
40
 
41
- def has_diff?
42
- action == "delete" || super
41
+ def diff_actions
42
+ super + %w(delete)
43
43
  end
44
44
  end
45
45
  end
@@ -36,8 +36,8 @@ module Decidim
36
36
  end
37
37
  end
38
38
 
39
- def has_diff?
40
- action == "delete" || super
39
+ def diff_actions
40
+ super + %w(delete)
41
41
  end
42
42
  end
43
43
  end
@@ -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) : " /&nbsp".html_safe,
41
+ index.zero? ? manifest_icon(component_manifest, role: "img", "aria-hidden": true) : " /&nbsp".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
- <h2 class="order-by__text section-heading"><%= t("conferences.order_by_conferences.conferences", scope: "layouts.decidim", count: collection.count) %></h2>
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 button--muted">
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 button--muted">
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 button in an anchor to make foundation tabs work -->
12
- <a href="#conference-row-<%= seed %>-tab<%= i %>">
13
- <button class="button button--shadow secondary tiny light"><%= category.present? ? translated_attribute(category.name) : "other" %></button>
14
- </a>
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
- <h1 class="section-heading"><%= t(".program") %></h1>
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 button in an anchor to make foundation tabs work -->
32
- <a href="#conference-day-tab-<%= i %>">
33
- <button class="button button--nomargin button--sc secondary light">
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
- </button>
36
- </a>
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
- <h2 class="section-heading"><%= t(".speakers") %></h2>
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
- <h1 class="section-heading"><%= t(".#{partner_type.pluralize}") %></h1>
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
- <article class="card card--full card--process">
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 secondary small hollow card__button" do %>
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
- </article>
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
- <h4 class="section-heading"><%= t("conferences.show.introduction", scope: "decidim") %></h4>
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
- <h4 class="section-heading"><%= t("conferences.show.details", scope: "decidim") %></h4>
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) do %>
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) do %>
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
- <h4 class="section-heading"><%= t(".register") %></h4>
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) do %>
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
- <h4 class="section-heading"><%= t("conferences.show.objectives", scope: "decidim") %></h4>
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
- <h1 class="section-heading"><%= t("media.index.title", scope: "decidim") %></h1>
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
- <section class="media-links">
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
- </section>
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
- No registrations
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
- <h3 class="text-highlight">
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
- </h3>
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) do %>
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) do %>
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 %>