Improve icons, add homepage links to courses
Build and Publish Docker Container / build (push) Successful in 5m28s

This commit is contained in:
2023-10-08 16:38:40 +01:00
parent b2d8ee0dd9
commit f712837f91
6 changed files with 29 additions and 5 deletions
+11 -1
View File
@@ -6,7 +6,17 @@
<div class="-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8">
<div class="inline-block py-2 align-middle px-6 lg:px-8">
<div class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 rounded-lg">
<h2 class="text-2xl p-2 px-4"><%= course.title %></h2>
<div class="flex flex-row justify-between items-center px-4 p-2">
<h2 class="text-2xl">
<%= course.title %>
</h2>
<% if course.homepage.present? %>
<a class="align-middle" href="<%= course.homepage %>">
<i class="fa fa-link text-blue-600"></i>
</a>
<% end %>
</div>
<table class="border-t-2 divide-y divide-gray-300 w-full">
<thead class="bg-gray-50">
+6 -2
View File
@@ -19,8 +19,12 @@
<i class="fa fa-hourglass-start <%= prep_icon_class %>"></i>
<% if lecture.attended? %>
<i class="fa fa-chalkboard-user text-green-700"></i>
<% elsif lecture.live? %>
<% if lecture.entirely_attended_in_person? %>
<i class="fa fa-chalkboard-user text-green-700"></i>
<% else %>
<i class="fa fa-video text-green-700"></i>
<% end %>
<% elsif lecture.is_live? %>
<i class="fa fa-video text-blue-700"></i>
<% elsif lecture.start_time.past? %>
<i class="fa fa-times text-red-700"></i>
+1 -1
View File
@@ -15,7 +15,7 @@
<% if work_item.completed? %>
<i class="fa fa-check text-green-700"></i>
<% elsif work_item.started? %>
<i class="fa fa-play text-blue-700"></i>
<i class="fa fa-pen text-blue-700"></i>
<% else %>
<%# Symbol to show work has not started yet %>
<i class="fa fa-clock text-blue-gray-700"></i>