forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-07 22:16:38 -06:00
parent 29eaa9af11
commit f1d5cf4632
1 changed files with 19 additions and 21 deletions

View File

@ -83,27 +83,25 @@
{% endblock %}
{% block subHeader2 %}
<div class="grid gird-cols-12">
<div class="col-span-full">
<div class="px-4 py-2 flex space-x-3 divide-x divide-gray-400 text-xs bg-gray-100 md:border-b md:border-gray-300">
<ul class="flex items-center space-x-3 leading-normal mb-0">
<li>
<a class="{{ 'font-bold text-red-600' if not '/commnents/' or not '/saved/' in request.path else 'text-gray-700' }}" href="/@{{u.username}}">
Posts <span class="text-gray-500 font-normal">{{ u.post_count }}</span>
</a>
</li>
<li>
<a class="{{ 'font-bold text-red-600' if '/comments/' in request.path else 'text-gray-700' }}" href="/@{{u.username}}/comments">
Comments <span class="text-gray-500 font-normal">{{ u.comment_count }}</span>
</a>
</li>
<li>
<a class="{{ 'font-bold text-red-600' if '/saved/' in request.path else 'text-gray-700' }}" href="/@{{u.username}}/saved/posts">
Saved Posts
</a>
</li>
</ul>
</div>
<div class="w-full md:px-4">
<div class="px-4 py-2 flex space-x-3 divide-x divide-gray-400 text-xs bg-gray-100 md:border-b md:border-gray-300">
<ul class="flex items-center space-x-3 leading-normal mb-0">
<li>
<a class="{{ 'font-bold text-red-600' if not '/commnents/' or not '/saved/' in request.path else 'text-gray-700' }}" href="/@{{u.username}}">
Posts <span class="text-gray-500 font-normal">{{ u.post_count }}</span>
</a>
</li>
<li>
<a class="{{ 'font-bold text-red-600' if '/comments/' in request.path else 'text-gray-700' }}" href="/@{{u.username}}/comments">
Comments <span class="text-gray-500 font-normal">{{ u.comment_count }}</span>
</a>
</li>
<li>
<a class="{{ 'font-bold text-red-600' if '/saved/' in request.path else 'text-gray-700' }}" href="/@{{u.username}}/saved/posts">
Saved Posts
</a>
</li>
</ul>
</div>
</div>
{% endblock %}