-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b61d35c
commit a800e9b
Showing
13 changed files
with
278 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%= turbo_frame_tag "events_without_dates" do %> | ||
<h2 class="mb-4">Events without conference dates (<%= @events_without_dates_count %>)</h2> | ||
|
||
<article class="prose mb-6">This section lists events that are missing conference dates. Adding conference dates allows us to show when this event took place, so we could show them in a calendar or similar.</article> | ||
|
||
<div id="events-without-dates" class="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 gap-4 min-w-full mb-6"> | ||
<% @events_without_dates.each do |file_path, events| %> | ||
<%= link_to "https://github.com/adrienpoly/rubyvideo/edit/main/#{file_path}", id: "event-#{file_path}", class: "hover:bg-gray-100 p-4 rounded-lg border bg-white", target: :_blank do %> | ||
<div class="flex flex-col"> | ||
<h3 class="line-clamp-1"><pre>Data File: <%= file_path %></pre></h3> | ||
|
||
<b class="mt-4 mb-2">Events missing dates:</b> | ||
|
||
<% events.each do |event| %> | ||
<span><%= event.title %></span> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% 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,21 @@ | ||
<%= turbo_frame_tag "events_without_location" do %> | ||
<h2 class="mb-4">Events without locations (<%= @events_without_location_count %>)</h2> | ||
|
||
<article class="prose mb-6">This section lists events that are missing location information. By adding a location, we can show in which city/country this event took place.</article> | ||
|
||
<div id="events-without-locations" class="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 gap-4 min-w-full mb-6"> | ||
<% @events_without_location.each do |file_path, events| %> | ||
<%= link_to "https://github.com/adrienpoly/rubyvideo/edit/main/#{file_path}", id: "event-#{file_path}", class: "hover:bg-gray-100 p-4 rounded-lg border bg-white", target: :_blank do %> | ||
<div class="flex flex-col"> | ||
<h3 class="line-clamp-1"><pre>Data File: <%= file_path %></pre></h3> | ||
|
||
<b class="mt-4 mb-2">Events missing locations:</b> | ||
|
||
<% events.each do |event| %> | ||
<span><%= event.title %></span> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% 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,21 @@ | ||
<%= turbo_frame_tag "events_without_videos" do %> | ||
<h2 class="mb-4">Events without videos (<%= @events_without_videos_count %>)</h2> | ||
|
||
<article class="prose mb-6">This section highlights events that do not have associated videos available. Explore these events to see if the talks weren't recorded or just not yet added the site.</article> | ||
|
||
<div id="events-without-locations" class="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 gap-4 min-w-full mb-6"> | ||
<% @events_without_videos.each do |organisation, events| %> | ||
<%= content_tag :div, id: dom_id(organisation, "without-videos"), class: "p-4 rounded-lg border bg-white", target: :_blank do %> | ||
<div class="flex flex-col"> | ||
<h3 class="line-clamp-1"><p>Organisation: <%= link_to organisation.name, organisation, class: "hover:underline" %></p></h3> | ||
|
||
<b class="mt-4 mb-2">Events without videos:</b> | ||
|
||
<% events.each do |event| %> | ||
<span><%= link_to event.name, event, class: "hover:underline" %></span> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% 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,19 @@ | ||
<article class="prose"> | ||
<h2>Welcome to RubyVideo.dev! 🌟</h2> | ||
|
||
<p>We are thrilled to have you here and appreciate your interest in making this resource the best it can be for the community. If you would like to lend a hand, there are various ways you can contribute.</p> | ||
|
||
<p>This page serves as a friendly starting point for anyone looking to get involved but unsure where to begin. Here are some ways you can help:</p> | ||
|
||
<ul> | ||
<li>Assist in adding missing GitHub handles to speakers</li> | ||
<li>Help identify speakers based on conference screenshots</li> | ||
<li>Contribute by adding last names to speakers</li> | ||
<li>Attach Slides to talks</li> | ||
<li>Review the date when the talk was given</li> | ||
<li>Add location information to conferences</li> | ||
<li>Add event dates to conferences</li> | ||
<li>Add data for new conferences</li> | ||
</ul> | ||
</article> | ||
</div> |
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,25 @@ | ||
<%= turbo_frame_tag "missing_videos_cue" do %> | ||
<h2 class="mb-4">Missing Video Cues (<%= @missing_videos_cue_count %>)</h2> | ||
|
||
<article class="prose mb-6"> | ||
This section highlights talks that have child talks but are missing video cues. You can help by adding video cues to these talks so we can let users play the the talk from the exact time it starts. | ||
</article> | ||
|
||
<div id="talks-dates-out-of-bounds" class="grid sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-2 gap-4 min-w-full mb-6"> | ||
<% @missing_videos_cue.each do |event, talks| %> | ||
<%= content_tag :div, id: dom_id(event), class: "p-4 rounded-lg border bg-white", target: :_blank do %> | ||
<article class="prose"> | ||
<h3 class="line-clamp-1">Event: <%= event.name %></h3> | ||
|
||
<b class="mt-4 mb-2">Recording doesn't have cues for it's child talks:</b> | ||
|
||
<ul> | ||
<% talks.each do |talk| %> | ||
<li><%= link_to talk.title, talk %> (<%= link_to pluralize(talk.child_talks.size, "talk"), talk %>) [<%= link_to "Data File", "https://github.com/adrienpoly/rubyvideo/edit/main/#{talk.static_metadata.__file_path}", target: :_blank %>]</li> | ||
<% end %> | ||
</ul> | ||
</article> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% 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,26 @@ | ||
<%= turbo_frame_tag "speakers_without_github" do %> | ||
<h2 class="mb-4">Speakers without GitHub handles (<%= @speakers_without_github_count %>)</h2> | ||
|
||
<article class="prose mb-6">These speakers are currently missing a GitHub handle. By adding a GitHub handle to their profile, we can enhance their speaker profiles with an avatar and automatically retrieve additional information.</article> | ||
|
||
<div id="speakers" class="grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 min-w-full mb-6"> | ||
<% @speakers_without_github.each do |speaker| %> | ||
<%= content_tag :div, id: dom_id(speaker), class: "flex justify-between p-4 rounded-lg border bg-white" do %> | ||
<span><%= link_to speaker.name, edit_speaker_path(speaker), class: "underline link", data: {turbo_frame: "modal"} %></span> | ||
<span> | ||
<%= link_to "https://github.com/search?q=#{speaker.name}&type=users", target: "_blank", class: "underline link" do %> | ||
<%= heroicon "magnifying-glass", variant: :outline, class: "size-5" %> | ||
<% end %> | ||
</span> | ||
<% end %> | ||
<% end %> | ||
|
||
<% remaining_speakers_count = (@speakers_without_github_count - @speakers_without_github.count) %> | ||
|
||
<% if remaining_speakers_count.positive? %> | ||
<div class="flex items-center hover:bg-gray-100 p-4 rounded-lg border bg-white"> | ||
<span>and <%= remaining_speakers_count %> more</span> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> |
25 changes: 25 additions & 0 deletions
25
app/views/contributions/_talks_dates_out_of_bounds.html.erb
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,25 @@ | ||
<%= turbo_frame_tag "talks_dates_out_of_bounds" do %> | ||
<h2 class="mb-4">Review Talk Dates (<%= @out_of_bound_talks_count %>)</h2> | ||
|
||
<article class="prose mb-6">This section shows talks with dates that don't quite match the event dates. Sometimes we only have the year for certain events, so we use that as a reference.</article> | ||
|
||
<div id="talks-dates-out-of-bounds" class="grid sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-2 gap-4 min-w-full mb-6"> | ||
<% @out_of_bound_talks.select { |_event, talks| talks.any? }.each do |event, talks| %> | ||
<%= content_tag :div, id: dom_id(event), class: "p-4 rounded-lg border bg-white", target: :_blank do %> | ||
<article class="prose"> | ||
<h3 class="line-clamp-1">Event: <%= event.name %></h3> | ||
|
||
<b class="mt-4 mb-2">Talk date is outside event dates:</b> | ||
|
||
<p class="mb-2">Event Dates: <%= @dates_by_event_name[event.name].inspect %></p> | ||
|
||
<ul> | ||
<% talks.each do |talk| %> | ||
<li><%= link_to talk.title, talk %> (<%= link_to talk.date.to_fs(:long), talk %>)</li> | ||
<% end %> | ||
</ul> | ||
</article> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% 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,24 @@ | ||
<%= turbo_frame_tag "talks_without_slides" do %> | ||
<h2 class="mb-4">Talks without slides (<%= @talks_without_slides_count %>)</h2> | ||
|
||
<article class="prose mb-6">These talks currently do not have slides attached. However, we know that the speaker has an account on Speakerdeck where they usually upload their slides. Feel free to explore if these talks have associated slidedecks on Speakerdeck.com.</article> | ||
|
||
<div id="speakers" class="grid sm:grid-cols-1 lg:grid-cols-2 xl:grid-cols-2 gap-4 min-w-full mb-6"> | ||
<% @talks_without_slides.each do |talk| %> | ||
<%= link_to edit_talk_path(talk), id: dom_id(talk), class: "hover:bg-gray-100 p-4 rounded-lg border bg-white" do %> | ||
<div class="flex flex-col"> | ||
<span class="font-bold"><%= talk.title %></span> | ||
<span><%= talk.speakers.first.name %></span> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
|
||
<% remaining_talks_count = (@talks_without_slides_count - @talks_without_slides.count) %> | ||
|
||
<% if remaining_talks_count.positive? %> | ||
<div class="flex items-center hover:bg-gray-100 p-4 rounded-lg border bg-white"> | ||
<span>and <%= remaining_talks_count %> more</span> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> |
Oops, something went wrong.