-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mail-status
- Loading branch information
Showing
13 changed files
with
99 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<%= turbo_stream.replace dom_id(@session, "bookmark") do %> | ||
<%= render( | ||
partial: 'sessions/bookmark', | ||
locals: { | ||
session: @session, | ||
user_is_an_attendee: @user_session_ids.include?(@session.id) | ||
} | ||
) %> | ||
<% end %> | ||
<%= turbo_stream.append "flash_message" do %> | ||
<%= render( | ||
partial: "layouts/flash_message", | ||
locals: { | ||
message: I18n.t("controllers.attendees.add_user.notice") | ||
} | ||
)%> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%= turbo_stream.replace dom_id(@session, "bookmark") do %> | ||
<%= render( | ||
partial: 'sessions/bookmark', | ||
locals: { | ||
session: @session, | ||
user_is_an_attendee: @user_session_ids.include?(@session.id) | ||
} | ||
) %> | ||
<% end %> | ||
<%= turbo_stream.remove dom_id(@session, "schedule")%> | ||
<%= turbo_stream.append "flash_message" do %> | ||
<%= render( | ||
partial: "layouts/flash_message", | ||
locals: { | ||
message: I18n.t("controllers.attendees.remove_user.notice") | ||
} | ||
)%> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<% if show_bookmark_button?(session) %> | ||
<% if user_is_an_attendee %> | ||
<%= button_to( | ||
session_attendee_path(session_id: session.id, params: request.params[:starts_at], anchor: session_anchor(session)), | ||
method: :delete, form: { class: "z-10 flex items-center", id: dom_id(session, "bookmark") } | ||
) do %> | ||
<div class="p-2"> | ||
<%= inline_svg_tag("icons/bookmark-full.svg") %> | ||
</div> | ||
<% end %> | ||
<% else %> | ||
<%= button_to( | ||
session_attendee_path(session_id: session.id, params: request.params[:starts_at], anchor: session_anchor(session)), | ||
form: { class: "z-10 flex items-center", id: dom_id(session, "bookmark"), } | ||
) do %> | ||
<div class="p-2"> | ||
<%= inline_svg_tag("icons/bookmark-outline.svg", class: "") %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters