Skip to content

Commit

Permalink
override online meeting button
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed May 28, 2024
1 parent 2aa0b28 commit 56fa570
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .rubocop_ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ AllCops:
# Otherwise we fallback to the oldest officially supported Ruby version (2.0).
TargetRubyVersion: 2.7

RSpec:
Patterns:
- "(?:^|/)spec/"
- "(?:^|/)test/"

# Indent private/protected/public as deep as method definitions
Layout/AccessModifierIndentation:
EnforcedStyle: indent
Expand Down
44 changes: 44 additions & 0 deletions app/cells/decidim/meetings/online_meeting_link/show.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<% if online_meeting_url? %>
<% if live? || future? %>
<div class="card card--secondary">
<div class="card__content text-center">
<% if live? %>
<div class="heading1 text-primary">
<%= icon "audio", class: "heading4" %>
</div>
<div>
<strong class="heading5"><%= t("live_event", scope: "decidim.meetings.meetings.show") %></strong>
<% unless show_embed? %>
<p><small><%= t("micro_camera_permissions_warning", scope: "decidim.meetings.meetings.show") %></small></p>
<% end %>
</div>
<% end %>
<% if show_embed? && live? %>
<div class="<%= "margin-top-3" if live? %> absolutes aspect-ratio-16-9">
<%== embed_code(request.host) %>
</div>
<% elsif live? || future? %>
<div class="absolutes">
<% if live? %>
<%= link_to t("started", scope: "decidim.meetings.meetings.show"), live_event_url, target: "_blank", class: "button button--sc" %>
<% elsif future? %>
<span><%= t("link_closed", scope: "decidim.meetings.meetings.show") %></span>
<% end %>
</div>
<% end %>
</div>
</div>
<% end %>
<% else %>
<div class="card card--secondary">
<div class="card__content address">
<div class="address__info">
<%= icon "timer", role: "img", "aria-hidden": true, remove_icon_class: true, width: 40, height: 70 %>
<div class="address__details">
<span><%= t("link_available_soon", scope: "decidim.meetings.meetings.show") %></span>
</div>
</div>
</div>
</div>
<% end %>
5 changes: 5 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ en:
email_outro: You have received this notification because you are following %{amendable_title}. You can stop receiving notifications following the previous link.
email_subject: Amendment rejected for %{amendable_title} from %{emendation_author_nickname}
notification_title: The <a href="%{emendation_path}">amendment</a> created by <a href="%{emendation_author_path}">%{emendation_author_nickname}</a> has been rejected for <a href="%{amendable_path}">%{amendable_title}</a>.
meetings:
meetings:
show:
join: Sign-up for meeting
started: Join meeting
devise:
mailer:
direct_invite:
Expand Down
5 changes: 5 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ fr:
email_outro: Vous avez reçu cette notification parce que vous suivez %{amendable_title}. Si vous souhaitez vous désabonner des notifications, connectez-vous à la plateforme, puis rendez-vous dans l'onglet “Mon compte” > “Paramètres des notifications”.
email_subject: Un amendement rejeté pour %{amendable_title} à %{emendation_author_nickname}
notification_title: Le <a href="%{emendation_path}">amendement</a> créé par <a href="%{emendation_author_path}">%{emendation_author_nickname}</a> a été rejetée pour <a href="%{amendable_path}">%{amendable_title}</a>.
meetings:
meetings:
show:
join: S'inscrire à la réunion
started: Rejoindre la réunion
devise:
mailer:
direct_invite:
Expand Down
5 changes: 3 additions & 2 deletions spec/lib/overrides_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
files: {
"/app/controllers/decidim/meetings/admin/invites_controller.rb" => "2cf91718146e0223d7b7794f44d5d8c6",
"/app/cells/decidim/meetings/meeting_m/single_date.erb" => "d7bb73188f6c1299c926bafa59aedc24",
"/app/views/decidim/meetings/meetings/show.html.erb" => "69914b0ea3e30b47506bb254269fbd3d"
"/app/cells/decidim/meetings/online_meeting_link/show.erb" => "9557df6e46040a6395c71c75cd84792c",
"/app/views/decidim/meetings/meetings/show.html.erb" => "1a1ed9e537d856fede9834cde396293d"
}
},
{
Expand Down Expand Up @@ -79,7 +80,7 @@
files: {
"/app/controllers/decidim/proposals/proposals_controller.rb" => "b263741e3335110fa0e37c488c777190",
"/app/views/decidim/proposals/proposals/index.html.erb" => "48fbf7a8332f5f4c026b793e7922bdbc",
"/app/views/decidim/proposals/proposals/show.html.erb" => "f27bbec257eb6da28dbdd07ac0a224a5",
"/app/views/decidim/proposals/proposals/show.html.erb" => "23188e6a12cc1ac6ce44c857b3b81a4c",
"/app/cells/decidim/proposals/highlighted_proposals_for_component_cell.rb" => "b8a9a1b573b2f888b293d10a7fab6577",
"/app/views/decidim/proposals/proposals/_proposals.html.erb" => "a4057670154210aff98e5f206d0fdfc2",
"/app/views/decidim/proposals/proposals/_wizard_aside.html.erb" => "45dc17085fabc549bee6474b8a3e79df",
Expand Down

0 comments on commit 56fa570

Please sign in to comment.