Improve button placement

This commit is contained in:
rubenwardy 2018-12-21 17:00:16 +00:00
parent c6a26786ec
commit 3a0e0377f9

@ -21,11 +21,6 @@
<div class="row" style="margin-top: 4rem;"> <div class="row" style="margin-top: 4rem;">
<div class="col"> <div class="col">
{% if package.getDownloadRelease() %}
<a class="btn btn-success" href="{{ package.getDownloadURL() }}" class="btn_green">Download</a>
{% else %}
No download available.
{% endif %}
</div> </div>
<div class="btn-group-horizontal col-md-auto"> <div class="btn-group-horizontal col-md-auto">
{% if package.repo %}<a class="btn btn-primary" href="{{ package.repo }}">View Source</a>{% endif %} {% if package.repo %}<a class="btn btn-primary" href="{{ package.repo }}">View Source</a>{% endif %}
@ -35,9 +30,6 @@
{# {% if current_user.is_authenticated %} {# {% if current_user.is_authenticated %}
<a class="btn btn-primary" href="{{ package.getCreateEditRequestURL() }}">Suggest Changes</a> <a class="btn btn-primary" href="{{ package.getCreateEditRequestURL() }}">Suggest Changes</a>
{% endif %} #} {% endif %} #}
{% if package.checkPerm(current_user, "DELETE_PACKAGE") %}
<a class="btn btn-danger" href="{{ package.getDeleteURL() }}">Delete</a>
{% endif %}
</div> </div>
</div> </div>
</div> </div>
@ -132,12 +124,26 @@
{% endif %} {% endif %}
<aside class="float-right ml-4" style="width: 18rem;"> <aside class="float-right ml-4" style="width: 18rem;">
<div class="card"> {% if package.getDownloadRelease() %}
<a class="btn btn-success btn-lg btn-block"
href="{{ package.getDownloadURL() }}" class="btn_green">
Download
</a>
{% else %}
No download available.
{% endif %}
<div class="card my-4">
<div class="card-header"> <div class="card-header">
Details Details
<div class="btn-group float-right">
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %} {% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
<a class="btn btn-sm btn-xs btn-primary float-right" href="{{ package.getEditURL() }}">Edit</a> <a class="btn btn-primary btn-sm btn-xs mx-1" href="{{ package.getEditURL() }}">Edit</a>
{% endif %} {% endif %}
{% if package.checkPerm(current_user, "DELETE_PACKAGE") %}
<a class="btn btn-danger btn-sm btn-xs mx-1" href="{{ package.getDeleteURL() }}">Delete</a>
{% endif %}
</div>
</div> </div>
<div class="card-body"> <div class="card-body">