Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Restore individual cancel-build buttons

These were hidden by an errant edit when web auth was added.
Previously, the buttons would only be displayed when a username/password
form was not required; that unique logic is no longer necessary.
  • Loading branch information...
commit 8a8f18b4f0b3dcdf29f3cd703aae83925db0a71a 1 parent bec38d2
@djmitche djmitche authored
Showing with 14 additions and 16 deletions.
  1. +14 −16 master/buildbot/status/web/templates/forms.html
View
30 master/buildbot/status/web/templates/forms.html
@@ -1,22 +1,20 @@
{% macro cancel_pending_build(cancel_url, authz, short=False, id='all') %}
- {% if not short %}
- <form method="post" name="cancel" action="{{ cancel_url }}" class='command cancelbuild'
- {{ 'style="display:inline"' if short else '' }}>
- {% if not short %}
- {% if id == 'all' %}
- <p>To cancel all builds, fill out the following fields and
- push the 'Cancel' button</p>
- <p>To cancel individual builds, click the 'Cancel' buttons above.</p>
- {% else %}
- <p>To cancel this build, fill out the following fields and
- push the 'Cancel' button</p>
- {% endif %}
+ <form method="post" name="cancel" action="{{ cancel_url }}" class='command cancelbuild'
+ {{ 'style="display:inline"' if short else '' }}>
+ {% if not short %}
+ {% if id == 'all' %}
+ <p>To cancel all builds, fill out the following fields and
+ push the 'Cancel' button</p>
+ <p>To cancel individual builds, click the 'Cancel' buttons above.</p>
+ {% else %}
+ <p>To cancel this build, fill out the following fields and
+ push the 'Cancel' button</p>
{% endif %}
- <input type="hidden" name="id" value="{{ id }}" />
- <input type="submit" value="Cancel" />
- </form>
- {% endif %}
+ {% endif %}
+ <input type="hidden" name="id" value="{{ id }}" />
+ <input type="submit" value="Cancel" />
+ </form>
{% endmacro %}
{% macro stop_change_builds(stopchange_url, changenum, authz) %}
Please sign in to comment.
Something went wrong with that request. Please try again.