decidim-conferences 0.19.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/app/assets/images/decidim/conferences/conference.svg +1 -3
  4. data/app/cells/decidim/conferences/conference_m/footer.erb +1 -1
  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/commands/decidim/conferences/admin/create_conference.rb +3 -3
  14. data/app/commands/decidim/conferences/admin/create_conference_admin.rb +2 -1
  15. data/app/commands/decidim/conferences/admin/notify_role_assigned_to_conference.rb +22 -0
  16. data/app/commands/decidim/conferences/admin/update_conference.rb +3 -3
  17. data/app/commands/decidim/conferences/admin/update_conference_admin.rb +2 -1
  18. data/app/controllers/concerns/decidim/conferences/admin/filterable.rb +27 -0
  19. data/app/controllers/decidim/conferences/admin/conference_registrations_controller.rb +2 -1
  20. data/app/controllers/decidim/conferences/admin/conference_speakers_controller.rb +2 -1
  21. data/app/controllers/decidim/conferences/admin/conference_user_roles_controller.rb +2 -1
  22. data/app/controllers/decidim/conferences/admin/conferences_controller.rb +4 -4
  23. data/app/controllers/decidim/conferences/admin/media_links_controller.rb +2 -1
  24. data/app/controllers/decidim/conferences/admin/partners_controller.rb +2 -1
  25. data/app/controllers/decidim/conferences/admin/registration_types_controller.rb +2 -1
  26. data/app/events/decidim/conferences/conference_role_assigned_event.rb +30 -0
  27. data/app/jobs/decidim/conferences/admin/send_conference_diploma_job.rb +1 -1
  28. data/app/models/decidim/conference.rb +25 -0
  29. data/app/models/decidim/conference_user_role.rb +1 -1
  30. data/app/permissions/decidim/conferences/permissions.rb +9 -0
  31. data/app/presenters/decidim/conferences/conference_stats_presenter.rb +1 -1
  32. data/app/types/decidim/conferences/conference_media_link_type.rb +19 -0
  33. data/app/types/decidim/conferences/conference_partner_type.rb +20 -0
  34. data/app/types/decidim/conferences/conference_speaker_type.rb +24 -0
  35. data/app/types/decidim/conferences/conference_type.rb +45 -0
  36. data/app/views/decidim/conferences/_order_by_conferences.html.erb +1 -1
  37. data/app/views/decidim/conferences/admin/conference_invites/index.html.erb +2 -2
  38. data/app/views/decidim/conferences/admin/conference_speakers/index.html.erb +3 -2
  39. data/app/views/decidim/conferences/admin/conference_user_roles/index.html.erb +1 -0
  40. data/app/views/decidim/conferences/admin/conferences/index.html.erb +7 -3
  41. data/app/views/decidim/conferences/admin/partners/index.html.erb +1 -0
  42. data/app/views/decidim/conferences/admin/registration_types/index.html.erb +1 -0
  43. data/app/views/decidim/conferences/conference_program/_program_item.html.erb +6 -4
  44. data/app/views/decidim/conferences/conference_program/show.html.erb +6 -6
  45. data/app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb +1 -1
  46. data/app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb +1 -1
  47. data/app/views/decidim/conferences/conference_speakers/index.html.erb +1 -1
  48. data/app/views/decidim/conferences/conferences/_partners.html.erb +1 -1
  49. data/app/views/decidim/conferences/conferences/_promoted_conference.html.erb +3 -3
  50. data/app/views/decidim/conferences/conferences/show.html.erb +7 -13
  51. data/app/views/decidim/conferences/media/index.html.erb +3 -3
  52. data/app/views/layouts/decidim/_conference_hero.html.erb +4 -8
  53. data/app/views/layouts/decidim/_conferences_nav.html.erb +2 -2
  54. data/app/views/layouts/decidim/admin/conference.html.erb +2 -2
  55. data/app/views/layouts/decidim/conference.html.erb +3 -5
  56. data/config/locales/ar.yml +4 -2
  57. data/config/locales/bg-BG.yml +7 -0
  58. data/config/locales/ca.yml +9 -0
  59. data/config/locales/cs.yml +16 -7
  60. data/config/locales/da-DK.yml +1 -0
  61. data/config/locales/de.yml +9 -0
  62. data/config/locales/el-GR.yml +1 -0
  63. data/config/locales/el.yml +580 -0
  64. data/config/locales/en.yml +9 -0
  65. data/config/locales/es-MX.yml +9 -0
  66. data/config/locales/es-PY.yml +9 -0
  67. data/config/locales/es.yml +9 -0
  68. data/config/locales/et-EE.yml +1 -0
  69. data/config/locales/fi-plain.yml +9 -0
  70. data/config/locales/fi.yml +13 -4
  71. data/config/locales/fr-CA.yml +580 -0
  72. data/config/locales/fr.yml +9 -0
  73. data/config/locales/ga-IE.yml +1 -0
  74. data/config/locales/hr-HR.yml +1 -0
  75. data/config/locales/hu.yml +5 -1
  76. data/config/locales/is-IS.yml +1 -0
  77. data/config/locales/it.yml +168 -159
  78. data/config/locales/ja-JP.yml +575 -0
  79. data/config/locales/lt-LT.yml +1 -0
  80. data/config/locales/lv-LV.yml +584 -0
  81. data/config/locales/mt-MT.yml +1 -0
  82. data/config/locales/nl.yml +9 -0
  83. data/config/locales/no.yml +566 -0
  84. data/config/locales/pl.yml +192 -182
  85. data/config/locales/pt-BR.yml +1 -1
  86. data/config/locales/pt.yml +238 -229
  87. data/config/locales/ro-RO.yml +536 -0
  88. data/config/locales/sk-SK.yml +585 -0
  89. data/config/locales/sk.yml +585 -0
  90. data/config/locales/sl.yml +37 -0
  91. data/config/locales/sr-CS.yml +19 -0
  92. data/config/locales/sv.yml +22 -13
  93. data/db/migrate/20200320105913_index_foreign_keys_in_decidim_conferences.rb +7 -0
  94. data/db/migrate/20200320105914_index_foreign_keys_in_decidim_conferences_conference_invites.rb +7 -0
  95. data/db/migrate/20200320105915_index_foreign_keys_in_decidim_conferences_conference_registrations.rb +7 -0
  96. data/db/seeds/city.jpeg +0 -0
  97. data/db/seeds/city2.jpeg +0 -0
  98. data/lib/decidim/conferences/participatory_space.rb +10 -1
  99. data/lib/decidim/conferences/test/factories.rb +16 -0
  100. data/lib/decidim/conferences/version.rb +1 -1
  101. metadata +39 -12
  102. data/app/views/decidim/conferences/conference_widgets/show.html.erb +0 -11
@@ -11,7 +11,7 @@ module Decidim
11
11
  return unless confirmed_registrations.any?
12
12
 
13
13
  confirmed_registrations.each do |registration_confirmed|
14
- SendConferenceDiplomaMailer.diploma(conference, registration_confirmed.user).deliver_now
14
+ SendConferenceDiplomaMailer.diploma(conference, registration_confirmed.user).deliver_later
15
15
  end
16
16
  end
17
17
  end
@@ -16,6 +16,7 @@ module Decidim
16
16
  include Decidim::Traceable
17
17
  include Decidim::Loggable
18
18
  include Decidim::ParticipatorySpaceResourceable
19
+ include Decidim::Searchable
19
20
 
20
21
  belongs_to :organization,
21
22
  foreign_key: "decidim_organization_id",
@@ -55,6 +56,18 @@ module Decidim
55
56
  mount_uploader :main_logo, Decidim::Conferences::DiplomaUploader
56
57
  mount_uploader :signature, Decidim::Conferences::DiplomaUploader
57
58
 
59
+ searchable_fields({
60
+ scope_id: :decidim_scope_id,
61
+ participatory_space: :itself,
62
+ A: :title,
63
+ B: :slogan,
64
+ C: :short_description,
65
+ D: [:description, :objectives],
66
+ datetime: :published_at
67
+ },
68
+ index_on_create: ->(_conference) { false },
69
+ index_on_update: ->(conference) { conference.visible? })
70
+
58
71
  # Scope to return only the promoted conferences.
59
72
  #
60
73
  # Returns an ActiveRecord::Relation.
@@ -103,5 +116,17 @@ module Decidim
103
116
 
104
117
  end_date < Date.current
105
118
  end
119
+
120
+ def user_roles(role_name = nil)
121
+ roles = Decidim::ConferenceUserRole.where(conference: self)
122
+ return roles if role_name.blank?
123
+
124
+ roles.where(role: role_name)
125
+ end
126
+
127
+ # Allow ransacker to search for a key in a hstore column (`title`.`en`)
128
+ ransacker :title do |parent|
129
+ Arel::Nodes::InfixOperation.new("->>", parent.table[:title], Arel::Nodes.build_quoted(I18n.locale.to_s))
130
+ end
106
131
  end
107
132
  end
@@ -11,7 +11,7 @@ module Decidim
11
11
  belongs_to :conference, foreign_key: "decidim_conference_id", class_name: "Decidim::Conference", optional: true
12
12
  alias participatory_space conference
13
13
 
14
- ROLES = %w(admin collaborator moderator).freeze
14
+ ROLES = %w(admin collaborator moderator valuator).freeze
15
15
  validates :role, inclusion: { in: ROLES }, uniqueness: { scope: [:user, :conference] }
16
16
  validate :user_and_conference_same_organization
17
17
 
@@ -51,6 +51,7 @@ module Decidim
51
51
 
52
52
  moderator_action?
53
53
  collaborator_action?
54
+ valuator_action?
54
55
  conference_admin_action?
55
56
 
56
57
  permission_action
@@ -252,6 +253,14 @@ module Decidim
252
253
  allow! if permission_action.action == :read || permission_action.action == :preview
253
254
  end
254
255
 
256
+ # Valuators can only read components
257
+ def valuator_action?
258
+ return unless can_manage_conference?(role: :valuator)
259
+
260
+ allow! if permission_action.action == :read && permission_action.subject == :component
261
+ allow! if permission_action.action == :export && permission_action.subject == :component_data
262
+ end
263
+
255
264
  # Process admins can eprform everything *inside* that conference. They cannot
256
265
  # create a conference or perform actions on conference groups or other
257
266
  # conferences.
@@ -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
  ])
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferenceMediaLinkType = GraphQL::ObjectType.define do
7
+ name "ConferenceMediaLink"
8
+ description "A conference media link"
9
+
10
+ field :id, !types.ID, "Internal ID for this media link"
11
+ field :title, Decidim::Core::TranslatedFieldType, "Title for this media link"
12
+ field :link, types.String, "URL for this media link"
13
+ field :date, Decidim::Core::DateType, "Relevant date for the media link"
14
+ field :weight, types.Int, "Order of appearance in which it should be presented"
15
+ field :createdAt, Decidim::Core::DateTimeType, "The time this entry was created", property: :created_at
16
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this entry was updated", property: :updated_at
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferencePartnerType = GraphQL::ObjectType.define do
7
+ name "ConferencePartner"
8
+ description "A conference partner"
9
+
10
+ field :id, !types.ID, "ID of the resource"
11
+ field :name, types.String, "Partner name"
12
+ field :partnerType, types.String, "Partner type", property: :partner_type
13
+ field :weight, types.Int, "Order of appearance in which it should be presented"
14
+ field :link, types.String, "Relevant URL for this partner"
15
+ field :logo, types.String, "Link to the partner's logo"
16
+ field :createdAt, Decidim::Core::DateTimeType, "The time this partner was created", property: :created_at
17
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this partner was updated", property: :updated_at
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferenceSpeakerType = GraphQL::ObjectType.define do
7
+ name "ConferenceSpeaker"
8
+ description "A conference speaker"
9
+
10
+ field :id, !types.ID, "Internal ID of the speaker"
11
+ field :fullName, types.String, "Full name of the speaker", property: :full_name
12
+ field :position, Decidim::Core::TranslatedFieldType, "Position of the speaker in the conference"
13
+ field :affiliation, Decidim::Core::TranslatedFieldType, "Affiliation of the speaker"
14
+ field :twitterHandle, types.String, "Twitter handle", property: :twitter_handle
15
+ field :shortBio, Decidim::Core::TranslatedFieldType, "Short biography of the speaker", property: :short_bio
16
+ field :personalUrl, types.String, "Personal URL of the speaker", property: :personal_url
17
+ field :avatar, types.String, "Avatar of the speaker"
18
+ field :user, Decidim::Core::UserType, "Decidim user corresponding to this speaker", property: :user
19
+
20
+ field :createdAt, Decidim::Core::DateTimeType, "The time this member was created ", property: :created_at
21
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this member was updated", property: :updated_at
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferenceType = GraphQL::ObjectType.define do
7
+ interfaces [
8
+ -> { Decidim::Core::ParticipatorySpaceInterface },
9
+ -> { Decidim::Core::ScopableInterface },
10
+ -> { Decidim::Core::AttachableInterface }
11
+ ]
12
+
13
+ name "Conference"
14
+ description "A conference"
15
+
16
+ field :id, !types.ID, "Internal ID for this conference"
17
+ field :shortDescription, Decidim::Core::TranslatedFieldType, "The short description of this conference", property: :short_description
18
+ field :description, Decidim::Core::TranslatedFieldType, "The description of this conference"
19
+ field :slug, types.String, "The slug of this conference"
20
+ field :hashtag, types.String, "The hashtag for this conference"
21
+ field :slogan, Decidim::Core::TranslatedFieldType, "The slogan of the conference"
22
+ field :location, types.String, "The location of this conference"
23
+ field :createdAt, Decidim::Core::DateTimeType, "The time this conference was created", property: :created_at
24
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this conference was updated", property: :updated_at
25
+ field :publishedAt, Decidim::Core::DateTimeType, "The time this conference was published", property: :published_at
26
+ field :reference, types.String, "Reference prefix for this conference"
27
+
28
+ field :heroImage, types.String, "The hero image for this conference", property: :hero_image
29
+ field :bannerImage, types.String, "The banner image for this conference", property: :banner_image
30
+ field :promoted, types.Boolean, "If this conference is promoted (therefore in the homepage)"
31
+ field :objectives, Decidim::Core::TranslatedFieldType, "The objectives of the conference"
32
+ field :showStatistics, types.Boolean, "If this conference shows the statistics", property: :show_statistics
33
+ field :startDate, Decidim::Core::DateType, "The date this conference starts", property: :start_date
34
+ field :endDate, Decidim::Core::DateType, "The date this conference ends", property: :end_date
35
+ field :registrationsEnabled, types.Boolean, "If the registrations are enabled in this conference", property: :registrations_enabled
36
+ field :availableSlots, types.Int, "The number of available slots in this conference", property: :available_slots
37
+ field :registrationTerms, Decidim::Core::TranslatedFieldType, "The registration terms of this conference", property: :registration_terms
38
+
39
+ field :speakers, types[Decidim::Conferences::ConferenceSpeakerType], "List of speakers in this conference"
40
+ field :partners, types[Decidim::Conferences::ConferencePartnerType], "List of partners in this conference"
41
+ field :categories, types[Decidim::Core::CategoryType], "List of categories in this conference"
42
+ field :mediaLinks, types[Decidim::Conferences::ConferenceMediaLinkType], "List of media links in this conference", property: :media_links
43
+ end
44
+ end
45
+ end
@@ -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>
@@ -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>
@@ -60,6 +60,7 @@
60
60
  <% end %>
61
61
  </tbody>
62
62
  </table>
63
+ <%= paginate @conference_user_roles, theme: "decidim" %>
63
64
  </div>
64
65
  </div>
65
66
  </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>
@@ -51,6 +51,7 @@
51
51
  <% end %>
52
52
  </tbody>
53
53
  </table>
54
+ <%= paginate @partners, theme: "decidim" %>
54
55
  </div>
55
56
  </div>
56
57
  </div>
@@ -60,6 +60,7 @@
60
60
  <% end %>
61
61
  </tbody>
62
62
  </table>
63
+ <%= paginate @registration_types, theme: "decidim" %>
63
64
  </div>
64
65
  </div>
65
66
  </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 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>
@@ -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>
@@ -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
- <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 %>