Skip to content

Commit

Permalink
chore: Update experiment status display in Leva experiments view
Browse files Browse the repository at this point in the history
The commit updates the `_experiment.html.erb` partial in the Leva experiments view. It modifies the status display to show the capitalized status of the experiment if available, and "N/A" if not. This change improves the consistency and clarity of the experiment status information.

Related to recent user commits that updated the top bar in the Leva workbench view, refactored results, improved the dataset, and made enhancements to the workbench and Leva views. Also aligns with recent repository commits that updated navigation styling and links, updated the Leva gem, and updated foreign key references in migration files.
  • Loading branch information
kieranklaassen committed Aug 19, 2024
1 parent 20f8936 commit 85d7da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/leva/experiments/_experiment.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="bg-gray-800 rounded-lg shadow-lg p-6">
<h3 class="text-xl font-semibold mb-2 text-indigo-200"><%= experiment.name %></h3>
<p class="text-gray-400 mb-2">Status: <%= experiment.status.capitalize %></p>
<p class="text-gray-400 mb-2">Status: <%= experiment.status&.capitalize || 'N/A' %></p>
<div class="flex space-x-2">
<%= link_to 'View Results', experiment_path(experiment), class: "btn btn-small btn-primary flex-1 text-center" %>
<%= link_to 'Edit', edit_experiment_path(experiment), class: "btn btn-small btn-secondary flex-1 text-center" %>
Expand Down

0 comments on commit 85d7da4

Please sign in to comment.