gitweb: Move create button into manage section

- Also make it the default button rather than primary button to avoid multiple
  primary buttons in the page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-11-27 00:23:44 -08:00 committed by James Valleroy
parent eff9f619c7
commit cc1aef969c
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -40,19 +40,19 @@
</style>
{% endblock %}
{% block status %}
<a href="{% url 'gitweb:create' %}" class="btn btn-primary"
role="button" title="{% trans 'Create repository' %}">
<span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Create repository' %}
</a>
{% endblock %}
{% block configuration %}
{{ block.super }}
<h3>{% trans "Manage Repositories" %}</h3>
<div class="btn-toolbar">
<a href="{% url 'gitweb:create' %}" class="btn btn-default"
role="button" title="{% trans 'Create repository' %}">
<span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Create repository' %}
</a>
</div>
<div class="row">
<div class="col-sm-6">
{% if not repos %}