|
13 | 13 | <%= render "shared/stat_card", title: "Uni Events", count: @university_events_count, path: admin_university_calendar_events_path %> |
14 | 14 | </div> |
15 | 15 |
|
16 | | -<div class="m3-card shadow-sm"> |
17 | | - <div class="px-4 py-5 sm:p-6"> |
18 | | - <h3 class="text-lg leading-6 font-medium text-on-surface mb-4">Quick Actions</h3> |
19 | | - <div class="space-y-2"> |
20 | | - <%= link_to "Manage Users", admin_users_path, class: "m3-btn-text block w-fit" %> |
21 | | - <%= link_to "Manage Calendars", admin_calendars_path, class: "m3-btn-text block w-fit" %> |
22 | | - <%= link_to "Fill Missing RMP IDs#{" (#{@missing_rmp_ids_count})" if @missing_rmp_ids_count&.> 0}", missing_rmp_ids_admin_faculties_path, class: "m3-btn-text block w-fit" %> |
23 | | - <% if policy(:course_catalog).index? %> |
24 | | - <%= link_to "Fetch Course Catalog", admin_course_catalog_path, class: "m3-btn-text block w-fit" %> |
| 16 | +<div class="m3-card"> |
| 17 | + <div class="px-4 py-4 border-b border-outline-variant"> |
| 18 | + <h3 class="text-sm font-semibold text-on-surface-variant uppercase tracking-wide">Quick Actions</h3> |
| 19 | + </div> |
| 20 | + <div class="p-2"> |
| 21 | + <%= link_to admin_users_path, class: "m3-list-item" do %> |
| 22 | + <svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 23 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"/> |
| 24 | + </svg> |
| 25 | + Manage Users |
| 26 | + <% end %> |
| 27 | + <%= link_to admin_calendars_path, class: "m3-list-item" do %> |
| 28 | + <svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 29 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/> |
| 30 | + </svg> |
| 31 | + Manage Calendars |
| 32 | + <% end %> |
| 33 | + <%= link_to missing_rmp_ids_admin_faculties_path, class: "m3-list-item" do %> |
| 34 | + <svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 35 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/> |
| 36 | + </svg> |
| 37 | + Fill Missing RMP IDs |
| 38 | + <% if @missing_rmp_ids_count&.> 0 %> |
| 39 | + <span class="ml-auto m3-badge-error"><%= @missing_rmp_ids_count %></span> |
| 40 | + <% end %> |
| 41 | + <% end %> |
| 42 | + <% if policy(:course_catalog).index? %> |
| 43 | + <%= link_to admin_course_catalog_path, class: "m3-list-item" do %> |
| 44 | + <svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
| 45 | + <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/> |
| 46 | + </svg> |
| 47 | + Fetch Course Catalog |
25 | 48 | <% end %> |
26 | | - </div> |
| 49 | + <% end %> |
27 | 50 | </div> |
28 | 51 | </div> |
0 commit comments