Skip to content

Commit fb83069

Browse files
committed
Turn the branch scope note on a repository's page into a button
The edit form on a repository's page said, in small gray text, that branches are left out of scans on the Branches and scope page. It is now a Change Scanned Branches button that opens that page, with a line saying what it is for. Only administrators see it, as before.
1 parent 83fb632 commit fb83069

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎app/web/templates/repository.html‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@
138138
{% endfor %}
139139
</div>
140140
</label>
141-
{% if can_scope %}<p class="faint small">Branches to leave out of scans
142-
are set on <a href="{{ base }}/repositories/{{ repo.id }}/scope">Branches
143-
and scope</a>, with Do not scan.</p>{% endif %}
141+
{% if can_scope %}<div style="margin:.6rem 0">
142+
<a class="btn" href="{{ base }}/repositories/{{ repo.id }}/scope">Change Scanned Branches</a>
143+
<span class="faint small">Pick branches to leave out of scans, or to scan for
144+
credentials only.</span></div>{% endif %}
144145
<p class="faint small">Owners and notify are email addresses, so somebody
145146
can be asked later. Several are fine, comma separated. Anything left
146147
empty, or with nothing ticked, uses what the connection says. A ticked

0 commit comments

Comments
 (0)