Skip to content

Commit

Permalink
Merge 7f7cb94 into fabf937
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekSuchanek authored Jun 30, 2018
2 parents fabf937 + 7f7cb94 commit 4d3dac2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions repocribro/templates/manage/repo.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,16 @@ <h1>{{ repo.full_name }}
<form action="{{ url_for('manage.repository_activate') }}" method="POST">
<input type="hidden" value="{{ repo.full_name }}" name="full_name">
<div class="btn-group" role="group">
<button type="submit" class="btn btn-success" name="enable" value="{{ Repository.VISIBILITY_PUBLIC }}">
<button type="submit" class="btn btn-success{% if repo.is_public %} disabled{% endif %}" name="enable"
value="{{ Repository.VISIBILITY_PUBLIC }}"{% if repo.is_public %} disabled{% endif %}>
Public
</button>
<button type="submit" class="btn btn-primary" name="enable" value="{{ Repository.VISIBILITY_HIDDEN }}">
<button type="submit" class="btn btn-primary{% if repo.is_hidden %} disabled{% endif %}" name="enable"
value="{{ Repository.VISIBILITY_HIDDEN }}"{% if repo.is_hidden %} disabled{% endif %}>
Hidden
</button>
<button type="submit" class="btn btn-warning" name="enable" value="{{ Repository.VISIBILITY_PRIVATE }}">
<button type="submit" class="btn btn-warning{% if repo.is_private %} disabled{% endif %}" name="enable"
value="{{ Repository.VISIBILITY_PRIVATE }}"{% if repo.is_private %} disabled{% endif %}>
Private
</button>
</div>
Expand Down

0 comments on commit 4d3dac2

Please sign in to comment.