-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for algorithm editors to mark old image as active (#2827)
This is the second part of DIAGNijmegen/rse-roadmap#223 It updates the `latest_executable_image` methods on `Algorithms`, `Phases` and `Workstations` to take into account `is_desired_version` and renames this property to `active_image`. This also adds a button on the algorithm image detail view that enables algorithm editors to mark an image of their choice as the desired version for an algorithm and some small UI additions related to that.   --------- Co-authored-by: James Meakin <[email protected]>
- Loading branch information
Showing
33 changed files
with
549 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/grandchallenge/algorithms/templates/algorithms/image_activate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "base.html" %} | ||
{% load crispy_forms_tags %} | ||
|
||
{% block title %} | ||
Activate Algorithm Image - {{ block.super }} | ||
{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a | ||
href="{% url 'algorithms:list' %}">Algorithms</a> | ||
</li> | ||
<li class="breadcrumb-item"><a | ||
href="{{ object.get_absolute_url }}">{{ object.title }} | ||
</a> | ||
</li> | ||
<li class="breadcrumb-item active" | ||
aria-current="page">Activate Algorithm Image | ||
</li> | ||
</ol> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h2>Activate Algorithm Image</h2> | ||
|
||
<div class="mb-2">Activating an image will result in this image being used for all subsequent algorithm runs.</div> | ||
|
||
{% crispy form %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.