Fix project buttons layout
This commit is contained in:
parent
b5c4a360d7
commit
df987c1181
1 changed files with 14 additions and 10 deletions
|
@ -18,15 +18,19 @@
|
|||
{{ article.content }}
|
||||
</div>
|
||||
</section>
|
||||
<div class="container text-center">
|
||||
<div class="btn-group">
|
||||
{% if article.download_link %}
|
||||
<a class="btn btn-primary btn-xl" href="{{ article.download_link }}">Download {{ article.title }}</a>
|
||||
{% endif %}
|
||||
{% if article.download_link or aricle.repo %}
|
||||
<section class="text-center">
|
||||
<div class="container">
|
||||
<div class="btn-group">
|
||||
{% if article.download_link %}
|
||||
<a class="btn btn-primary btn-xl" href="{{ article.download_link }}">Download {{ article.title }}</a>
|
||||
{% endif %}
|
||||
|
||||
{% if article.repo %}
|
||||
<a class="btn btn-github btn-xl" href="{{ article.repo }}"><i class="fa fa-github fa-lg"></i> View on Github</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% if article.repo %}
|
||||
<a class="btn btn-github btn-xl" href="{{ article.repo }}"><i class="fa fa-github fa-lg"></i> View on Github</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue