You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
507 B

<div class="w-full bg-cyan-200 p-4">
<div class="flex justify-between items-center">
<h1 class="font-bold text-4xl">Scores</h1>
<%= link_to "New score", new_score_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
</div>
<table class="min-w-full divide-y divide-gray-300">
<thead>
<tr>
<th>Name</th>
<th>Grade</th>
<th>Actions</th>
</tr>
</thead>
<%= render @scores %>
</table>
<%== pagy_nav(@pagy) %>
</div>