mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Improve layout of resource lists
This commit is contained in:
parent
86f3f3351b
commit
5151bb11ba
|
@ -5,11 +5,7 @@
|
|||
{% block content %}
|
||||
<form class="container">
|
||||
<div class="row">
|
||||
{% if current_user and current_user.id == owner.id %}
|
||||
<div class="form-group col-md-12">
|
||||
{% else %}
|
||||
<div class="form-group col-md-10">
|
||||
{% endif %}
|
||||
<input
|
||||
name="search"
|
||||
type="text"
|
||||
|
@ -22,14 +18,18 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-10 event-list">
|
||||
{% if current_user and current_user.id == owner.id %}
|
||||
<div class="col-md-9 event-list">
|
||||
{% else %}
|
||||
<div class="col-md-12 event-list">
|
||||
{% endif %}
|
||||
{% block resource_list %}
|
||||
TODO: populate resource list
|
||||
{% endblock %}
|
||||
{{pagination()}}
|
||||
</div>
|
||||
{% if current_user and current_user.id == owner.id %}
|
||||
<div class="col-md-2">
|
||||
<div class="col-md-3">
|
||||
{% block sidebar %}
|
||||
TODO: populate sidebar
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue