forked from rDrama/rDrama
use ghostbox macro everywhere
parent
c4f9086068
commit
6656aef10b
|
@ -231,44 +231,26 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<div class="row no-gutters">
|
||||||
|
<div class="col">
|
||||||
|
<div class="text-center px-3 my-3">
|
||||||
{% if u %}
|
{% if u %}
|
||||||
{% if v and v.id == u.id %}
|
{% if "/saved/" in request.path %}
|
||||||
<div class="row no-gutters">
|
{% set text = "You haven't saved any posts yet!" %}
|
||||||
<div class="col">
|
{% elif "/subscribed/" in request.path %}
|
||||||
<div class="text-center px-3 my-3">
|
{% set text = "You haven't subscribed to any posts yet!" %}
|
||||||
<span class="fa-stack fa-2x text-muted mb-4">
|
{% elif v and v.id == u.id %}
|
||||||
<i class="fas fa-square text-gray-500 opacity-25 fa-stack-2x"></i>
|
{% set text = "You haven't made any posts yet!" %}
|
||||||
<i class="fas text-gray-500 fa-ghost fa-stack-1x text-lg"></i>
|
|
||||||
</span>
|
|
||||||
<h5>You haven't {% if "/saved/" in request.path %}saved{% elif "/subscribed/" in request.path %}subscribed to{% else %}made{% endif %} a post yet</h5>
|
|
||||||
<p class="text-muted mb-md-5">Your {% if "/saved/" in request.path %}saved posts{% elif "/subscribed/" in request.path %}subscribed posts{% else %}posting history{% endif %} will show here.</p>
|
|
||||||
{% if "/saved/" not in request.path and "/subscribed/" not in request.path %}<a href="/submit" class="btn btn-primary">Create a post</a>{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="row no-gutters">
|
{% set text = "@" ~ u.username ~ " hasn't made any posts yet!" %}
|
||||||
<div class="col">
|
|
||||||
<div class="text-center px-3 my-3">
|
|
||||||
<span class="fa-stack fa-2x text-muted mb-4">
|
|
||||||
<i class="fas fa-square text-gray-500 opacity-25 fa-stack-2x"></i>
|
|
||||||
<i class="fas text-gray-500 fa-scroll-old fa-stack-1x text-lg"></i>
|
|
||||||
</span>
|
|
||||||
<h5>@{{u.username}} hasn't made a post yet</h5>
|
|
||||||
<p class="text-muted mb-1">Their posting history will show here.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
{% elif request.path != '/notifications/posts' %}
|
{% set text = "No posts found!" if request.path.startswith('/search') else "" %}
|
||||||
<div class="row no-gutters">
|
|
||||||
<div class="col">
|
|
||||||
{{macros.ghost_box(error if request.path.startswith('/search') else '', '', 1)}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{macros.ghost_box(text, '', 1)}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<script src="{{'js/new_comments.js' | asset}}"></script>
|
<script src="{{'js/new_comments.js' | asset}}"></script>
|
||||||
|
|
|
@ -10,21 +10,16 @@
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="text-center px-3 my-3">
|
<div class="text-center px-3 my-3">
|
||||||
<span class="fa-stack fa-2x text-muted mb-4">
|
|
||||||
<i class="fas fa-square text-gray-500 opacity-25 fa-stack-2x"></i>
|
|
||||||
<i class="fas text-gray-500 fa-scroll-old fa-stack-1x text-lg"></i>
|
|
||||||
</span>
|
|
||||||
{% if '/saved/' in request.path %}
|
{% if '/saved/' in request.path %}
|
||||||
<h5>You haven't saved any comments yet</h5>
|
{% set text = "You haven't saved any comments yet!" %}
|
||||||
{% elif v and v.id == u.id %}
|
{% elif v and v.id == u.id %}
|
||||||
<h5>You haven't made any comments yet</h5>
|
{% set text = "You haven't made any comments yet!" %}
|
||||||
<p class="text-muted mb-md-5">Your commenting history will show here.</p>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<h5>@{{u.username}} hasn't made any comments yet</h5>
|
{% set text = '@' ~ u.username ~ " hasn't made any comments yet!" %}
|
||||||
<p class="text-muted">Their commenting history will show here.</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
|
|
||||||
|
{{macros.ghost_box(text, '', 1)}}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,13 +15,12 @@
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
{% if not listing %}
|
{% if not listing %}
|
||||||
<div id="ghost-town-box" class="text-center px-3 my-3">
|
{% if u.id == v.id %}
|
||||||
<span class="fa-stack fa-2x text-muted mb-4">
|
{% set text = "There's no comments on your wall yet!" %}
|
||||||
<i class="fas fa-square text-gray-500 opacity-25 fa-stack-2x"></i>
|
{% else %}
|
||||||
<i class="fas text-gray-500 fa-scroll-old fa-stack-1x text-lg"></i>
|
{% set text = "There's no comments on @" ~ u.username ~ "'s wall yet!" %}
|
||||||
</span>
|
{% endif %}
|
||||||
<h5>There's no comments on {% if u.id == v.id %}your{% else %}@{{u.username}}'s{% endif %} wall yet!</h5>
|
{{macros.ghost_box(text, '', 1)}}
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue