Adjusted profile page a little
This commit is contained in:
parent
cd687381ea
commit
beb539f36e
@ -3,10 +3,10 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<div>
|
<div>
|
||||||
<h1>Welcome {{ current_user.name }}</h1>
|
<div class="row">
|
||||||
<a href="{{ url_for('UploadView:index') }}" class="btn btn-secondary">Upload</a>
|
<h1 class="d-inline">Welcome {{ current_user.name }}</h1>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
|
||||||
{% if current_user.uploads %}
|
{% if current_user.uploads %}
|
||||||
<div class="row"><h2>Your uploads</h2></div>
|
<div class="row"><h2>Your uploads</h2></div>
|
||||||
<div class="row mx-2">
|
<div class="row mx-2">
|
||||||
@ -29,9 +29,10 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="row"><h2>Your purchases</h2></div>
|
||||||
<div class="row mx-2">
|
<div class="row mx-2">
|
||||||
<div class="row"><h2>Your purchases</h2></div>
|
{% if current_user.purchases %}
|
||||||
<div class="row mx-2">
|
|
||||||
{% for purchase in current_user.purchases %}
|
{% for purchase in current_user.purchases %}
|
||||||
<div class="col-12 col-sm-6 col-md-4 px-2 mb-3">
|
<div class="col-12 col-sm-6 col-md-4 px-2 mb-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -49,8 +50,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
{% else %}
|
||||||
|
<p>Nothing is here! Check the <a href="{{ url_for("IndexView:index") }}">Home page</a> for images to
|
||||||
|
purchase</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p><a href="{{ url_for_security('login') }}">Log in</a> to view your profile.</p>
|
<p><a href="{{ url_for_security('login') }}">Log in</a> to view your profile.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user