Move cards to sidebar
This commit is contained in:
parent
c97eefc7b2
commit
266d579e9d
@ -119,8 +119,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="float-right">
|
||||
<div class="card" style="width: 18rem;">
|
||||
<aside class="float-right" style="width: 18rem;">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Details
|
||||
{% if package.checkPerm(current_user, "EDIT_PACKAGE") %}
|
||||
@ -198,27 +198,8 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<ul class="screenshot_list">
|
||||
{% for ss in package.screenshots %}
|
||||
{% if ss.approved or package.checkPerm(current_user, "ADD_SCREENSHOTS") %}
|
||||
<li>
|
||||
<a href="{% if package.checkPerm(current_user, 'ADD_SCREENSHOTS') %}{{ ss.getEditURL() }}{% else %}{{ ss.url }}{% endif %}">
|
||||
<img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{{ package.desc | markdown }}
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<div class="row my-4">
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
<div class="card my-4">
|
||||
<div class="card-header">Dependencies</div>
|
||||
<ul class="list-group list-group-flush">
|
||||
{% for dep in package.dependencies %}
|
||||
@ -239,12 +220,8 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
<div class="card my-4">
|
||||
<div class="card-header">
|
||||
Releases
|
||||
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
||||
@ -284,10 +261,8 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
<div class="card">
|
||||
<div class="card my-4"">
|
||||
<div class="card-header">
|
||||
Threads
|
||||
{% if package.approved and package.checkPerm(current_user, "CREATE_THREAD") %}
|
||||
@ -302,9 +277,23 @@
|
||||
{{ render_threadlist(threads, list_group=True) }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<ul class="screenshot_list">
|
||||
{% for ss in package.screenshots %}
|
||||
{% if ss.approved or package.checkPerm(current_user, "ADD_SCREENSHOTS") %}
|
||||
<li>
|
||||
<a href="{% if package.checkPerm(current_user, 'ADD_SCREENSHOTS') %}{{ ss.getEditURL() }}{% else %}{{ ss.url }}{% endif %}">
|
||||
<img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{{ package.desc | markdown }}
|
||||
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
{#
|
||||
{% if current_user.is_authenticated or requests %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user