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.

17 lines
567 B

11 months ago
  1. <div id="<%= dom_id score %>">
  2. <p class="my-5">
  3. <strong class="block font-medium mb-1">Name:</strong>
  4. <%= score.name %>
  5. </p>
  6. <p class="my-5">
  7. <strong class="block font-medium mb-1">Grade:</strong>
  8. <%= score.grade %>
  9. </p>
  10. <% if action_name != "show" %>
  11. <%= link_to "Show this score", score, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
  12. <%= link_to "Edit this score", edit_score_path(score), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
  13. <hr class="mt-6">
  14. <% end %>
  15. </div>