Track and untrack refs
This commit is contained in:
parent
4af950b6a4
commit
7e0bf21223
10 changed files with 134 additions and 25 deletions
|
|
@ -8,22 +8,32 @@
|
|||
|
||||
<details open>
|
||||
<summary>Tracked ({{ tracked_refs.len() }})</summary>
|
||||
<dl>
|
||||
{% for ref in tracked_refs %}
|
||||
<dt>{{ ref.name }}</dt>
|
||||
<dd>{{ ref.commit|safe }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<form method="post" action="{{ link_admin_refs_untrack }}">
|
||||
<dl>
|
||||
{% for ref in tracked_refs %}
|
||||
<dt>
|
||||
{{ ref.name }}
|
||||
[<button class="linkish" name="ref" value="{{ ref.name }}">untrack</button>]
|
||||
</dt>
|
||||
<dd>{{ ref.commit|safe }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</form>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Untracked ({{ untracked_refs.len() }})</summary>
|
||||
<dl>
|
||||
{% for ref in untracked_refs %}
|
||||
<dt>{{ ref.name }}</dt>
|
||||
<dd>{{ ref.commit|safe }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
<form method="post" action="{{ link_admin_refs_track }}">
|
||||
<dl>
|
||||
{% for ref in untracked_refs %}
|
||||
<dt>
|
||||
{{ ref.name }}
|
||||
[<button class="linkish" name="ref" value="{{ ref.name }}">track</button>]
|
||||
</dt>
|
||||
<dd>{{ ref.commit|safe }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</form>
|
||||
</details>
|
||||
|
||||
<form method="post" action="{{ link_admin_repo_update }}">
|
||||
|
|
|
|||
|
|
@ -50,9 +50,10 @@
|
|||
</td>
|
||||
<td>
|
||||
{{ task.priority }}
|
||||
[<button title="Increase priority by 1" formaction="{{ task.link_increase }}" name="hash"
|
||||
value="{{ task.hash }}">inc</button>/<button title="Decrease priority by 1"
|
||||
formaction="{{ task.link_decrease }}" name="hash" value="{{ task.hash }}">dec</button>]
|
||||
[<button class="linkish" title="Increase priority by 1" formaction="{{ task.link_increase }}"
|
||||
name="hash" value="{{ task.hash }}">inc</button>/<button class="linkish"
|
||||
title="Decrease priority by 1" formaction="{{ task.link_decrease }}" name="hash"
|
||||
value="{{ task.hash }}">dec</button>]
|
||||
</td>
|
||||
{% if task.workers.is_empty() %}
|
||||
<td>-</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue