Skip to content

Commit

Permalink
feat: add results link to experiments table
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewilli committed Jan 3, 2025
1 parent fa0060c commit 78a5838
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ <h1 class="modal-title fs-5" id="createModalLabel">
{% include "nimbus_experiments/table_header.html" with field="Features" up=sort_choices.FEATURES_UP down=sort_choices.FEATURES_DOWN %}
{% include "nimbus_experiments/table_header.html" with field="Versions" up=sort_choices.VERSIONS_UP down=sort_choices.VERSIONS_DOWN %}
{% include "nimbus_experiments/table_header.html" with field="Dates" up=sort_choices.DATES_UP down=sort_choices.DATES_DOWN %}
<th scope="col">Results</th>

</tr>
</thead>
Expand Down Expand Up @@ -118,6 +119,11 @@ <h1 class="modal-title fs-5" id="createModalLabel">
N/A
{% endif %}
</td>
<td>
{% if experiment.show_results_url %}
<a href="{% url "nimbus-results" slug=experiment.slug %}">Results</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
Expand Down
3 changes: 3 additions & 0 deletions experimenter/experimenter/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
re_path(r"^nimbus/new/", NimbusUIView.as_view(), name="nimbus-create"),
re_path(r"^nimbus/$", NimbusExperimentsListView.as_view(), name="nimbus-list"),
re_path(r"^nimbus/(?P<slug>[\w-]+)/", NimbusUIView.as_view(), name="nimbus-detail"),
re_path(
r"^nimbus/(?P<slug>[\w-]+)/results", NimbusUIView.as_view(), name="nimbus-results"
),
re_path(r"^legacy/$", ExperimentListView.as_view(), name="home"),
re_path(
r"^$",
Expand Down

0 comments on commit 78a5838

Please sign in to comment.