Skip to content

Commit

Permalink
Merge pull request #243 from Parallels/bug_fixes/fix_for_buttons
Browse files Browse the repository at this point in the history
Fix for "empty", "compact" and "requeue all" buttons
  • Loading branch information
eoranged committed Nov 5, 2019
2 parents e92eafc + a9fb116 commit 7b0950f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rq_dashboard/templates/rq_dashboard/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ <h1>Workers <a id="workers-btn" href="#">(toggle)</a></h1>

<h1>Jobs on <strong{% if queue.name == 'failed' %} class="failed"{% endif %}>{{ queue.name }}</strong></h1>
<p class="intro">
{% if queue.name != 'failed' %}
<a href="{{ url_for('rq_dashboard.empty_queue', queue_name=queue.name) }}" id="empty-btn"
class="btn btn-danger btn-small" style="float: right" data-toggle="tooltip"
title="Remove all jobs from this queue (<b>destructive</b>)" data-html=true><i
Expand All @@ -104,10 +105,12 @@ <h1>Jobs on <strong{% if queue.name == 'failed' %} class="failed"{% endif %}>{{
class="btn btn-small" style="float: right; margin-right: 8px;" data-toggle="tooltip"
title="Remove all stale jobs from this queue (non-destructive)"><i class="icon-resize-small"></i>
Compact</a>
{% else %}
<a href="{{ url_for('rq_dashboard.requeue_all') }}" id="requeue-all-btn" class="btn btn-small"
style="float: right; margin-right: 8px;"><i class="icon-retweet"></i> Requeue All</a>
This list below contains all the registered jobs on queue <strong>{{ queue.name }}</strong>, sorted by
age (oldest on top).</p>
{% endif %}

<table id="jobs" class="table table-bordered">
<thead>
Expand Down

0 comments on commit 7b0950f

Please sign in to comment.