Skip to content

Commit

Permalink
Formatted the code
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerAK committed Nov 27, 2023
1 parent 0eab1d8 commit f818a6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ui/runs/templates/runs/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h4 {% if not forloop.first %}class="mt-4"{% endif %}>{{ step.section_heading }}
<a href="{{ step.table_link }}" target="_blank"
class="col-4 btn btn-grey me-2">View table</a>
{% endif %}
{% if step.protein_graph_link %}
{% if step.protein_graph_link %}
<a href="{{ step.protein_graph_link }}" target="_blank"
class=" btn btn-grey me-2">View Protein Graph</a>
{% endif %}
Expand Down Expand Up @@ -247,7 +247,7 @@ <h3>{{ display_name }}</h3>
{% csrf_token %}
<div class="form-group">
{% if show_back %}
<a href="{% url 'runs:back' run_name %}" class="btn btn-grey mr-auto">Back</a>
<a href="{% url 'runs:back' run_name %}" class="btn btn-grey mr-auto">Back</a>
{% endif %}
<button class="btn btn-red" {% if not show_next %} disabled {% endif %}>Next
</button>
Expand Down
6 changes: 2 additions & 4 deletions ui/runs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def detail(request, run_name):
run = active_runs[run_name]
section, step, method = run.current_run_location()
allow_next = run.calculated_method is not None or (run.step == "plot" and run.plots)

end_of_run = not step

current_plots = []
Expand Down Expand Up @@ -132,7 +131,7 @@ def detail(request, run_name):
name_field=make_name_field(allow_next, "runs_next", run, end_of_run),
current_plots=current_plots,
show_next=allow_next,
show_back= bool(run.history.steps),
show_back=bool(run.history.steps),
show_plot_button=run.result_df is not None,
sidebar=make_sidebar(request, run, run_name),
end_of_run=end_of_run,
Expand Down Expand Up @@ -442,8 +441,7 @@ def back(request, run_name):
:rtype: HttpResponse
"""
run = active_runs[run_name]
if run.step_index > 0:
run.back_step()
run.back_step()
return HttpResponseRedirect(reverse("runs:detail", args=(run_name,)))


Expand Down

0 comments on commit f818a6b

Please sign in to comment.