Files
fizzy/app/views/events/_weekly_highlights.html.erb
T
Jorge Manrubia 307d46855b Remove trace
2025-10-06 12:48:04 +02:00

26 lines
891 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<% if day_timeline.has_weekly_highlights? %>
<h2 class="events__day-header">
<span class="events__day-time min-width max-width">
<span class="overflow-ellipsis">
<span>Weekly Highlights for</span>
<%= local_datetime_tag day_timeline.week_starts_at - 1.week, style: :shortdate %>
<%= local_datetime_tag day_timeline.week_ends_at - 1.week - 1.day, style: :shortdate %>
</span>
</span>
</h2>
<div class="events__activity-summary txt-small">
<div>
<%= day_timeline.weekly_highlights.to_html %>
<% if Current.user.staff? %>
<%= link_to admin_prompt_sandbox_path(day: day_timeline.day), class: "btn txt-xx-small events__activity-prompt-edit" do %>
<%= icon_tag "bolt" %>
<span class="for-screen-reader">Prompt sandbox</span>
<% end %>
<% end %>
</div>
</div>
<% end %>