|
| 1 | +<div class="container py-8"> |
| 2 | + <div class="flex items-center mb-8"> |
| 3 | + <%= link_to @back_path, class: "mr-4 text-gray-500 hover:text-gray-700" do %> |
| 4 | + <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 5 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path> |
| 6 | + </svg> |
| 7 | + <% end %> |
| 8 | + <h1 class="title"> |
| 9 | + <%= title "Conferences Missing Sponsor Data" %> |
| 10 | + </h1> |
| 11 | + </div> |
| 12 | + |
| 13 | + <div class="bg-blue-50 border border-blue-200 rounded-lg p-6 mb-8"> |
| 14 | + <div class="flex items-start"> |
| 15 | + <%= fa("question-circle", size: :md, class: "fill-blue-600 mt-0.5 mr-4 flex-shrink-0") %> |
| 16 | + <div> |
| 17 | + <h2 class="font-semibold text-blue-800 text-lg mb-2">Help Complete Our Database</h2> |
| 18 | + <p class="text-blue-700 mb-4"> |
| 19 | + The conferences listed below are missing sponsor information. If you have knowledge about |
| 20 | + who sponsored these events, please consider contributing this data to help make RubyEvents.org |
| 21 | + more complete. |
| 22 | + </p> |
| 23 | + <div class="bg-white border border-blue-200 rounded p-4"> |
| 24 | + <h3 class="font-semibold text-blue-800 mb-2">How to contribute sponsor data:</h3> |
| 25 | + <ul class="text-sm text-blue-700 space-y-1"> |
| 26 | + <li>• Research the event website, program, or recorded videos</li> |
| 27 | + <li>• Look for sponsor logos and acknowledgments</li> |
| 28 | + <li>• <a href="https://github.com/rubyevents/rubyevents/blob/main/docs/ADDING_SPONSORS.md" class="underline hover:text-blue-900" target="_blank">Follow our contribution guide</a> to submit the data</li> |
| 29 | + <li>• Create a pull request with the sponsor information</li> |
| 30 | + </ul> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + |
| 36 | + <% if @events_by_year.any? %> |
| 37 | + <div class="space-y-8"> |
| 38 | + <% @events_by_year.each do |year, events| %> |
| 39 | + <div> |
| 40 | + <h2 class="text-2xl font-bold text-gray-900 mb-4 border-b border-gray-200 pb-2"> |
| 41 | + <%= year %> |
| 42 | + <span class="text-base font-normal text-gray-500 ml-2">(<%= pluralize(events.count, "event") %>)</span> |
| 43 | + </h2> |
| 44 | + |
| 45 | + <div class="grid gap-4 md:grid-cols-2 lg:grid-cols-3"> |
| 46 | + <% events.each do |event| %> |
| 47 | + <%= link_to event_path(event), class: "block bg-white border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow hover:border-gray-300" do %> |
| 48 | + <div class="flex items-start justify-between"> |
| 49 | + <div class="flex-1"> |
| 50 | + <h3 class="font-semibold text-gray-900 mb-1 hover:text-brand-600"> |
| 51 | + <%= event.name %> |
| 52 | + </h3> |
| 53 | + <p class="text-sm text-gray-600 mb-2"><%= event.organisation.name %></p> |
| 54 | + <div class="flex items-center text-xs text-gray-500"> |
| 55 | + <%= fa("clock", size: :xs, class: "fill-gray-400 mr-1") %> |
| 56 | + <%= event.start_date&.strftime("%B %Y") || "Date unknown" %> |
| 57 | + </div> |
| 58 | + <% if event.city.present? %> |
| 59 | + <div class="flex items-center text-xs text-gray-500 mt-1"> |
| 60 | + <svg class="w-3 h-3 mr-1 fill-gray-400" viewBox="0 0 24 24"> |
| 61 | + <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /> |
| 62 | + </svg> |
| 63 | + <%= [event.city, event.country_code].compact.join(", ") %> |
| 64 | + </div> |
| 65 | + <% end %> |
| 66 | + </div> |
| 67 | + <%= fa("question-circle", size: :sm, class: "fill-red-500 ml-2 flex-shrink-0") %> |
| 68 | + </div> |
| 69 | + <% end %> |
| 70 | + <% end %> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + <% end %> |
| 74 | + </div> |
| 75 | + |
| 76 | + <div class="mt-12 text-center"> |
| 77 | + <p class="text-gray-600 mb-4"> |
| 78 | + Total conferences missing sponsor data: <strong><%= @events_without_sponsors.count %></strong> |
| 79 | + </p> |
| 80 | + <p class="text-sm text-gray-500"> |
| 81 | + Last updated: <%= Date.current.strftime("%B %d, %Y") %> |
| 82 | + </p> |
| 83 | + </div> |
| 84 | + <% else %> |
| 85 | + <div class="text-center py-12"> |
| 86 | + <div class="text-6xl mb-4">🎉</div> |
| 87 | + <h2 class="text-2xl font-bold text-gray-900 mb-4">All Conferences Have Sponsor Data!</h2> |
| 88 | + <p class="text-gray-600"> |
| 89 | + Great news! All conferences in our database have sponsor information. |
| 90 | + </p> |
| 91 | + </div> |
| 92 | + <% end %> |
| 93 | +</div> |
0 commit comments