forked from rDrama/rDrama
fix
parent
ec5c425059
commit
3e1cb59bee
|
@ -15,32 +15,32 @@
|
|||
</small>
|
||||
<ul class="hidden text-gray-500 text-sm flex items-center space-x-3 leading-normal mb-0">
|
||||
<li>
|
||||
<a class="{% if not '=true' in request.full_path %}font-bold text-red-600{% endif %}" href="/notifications">
|
||||
<a class="{% if not '=true' in request.full_path %}font-bold text-primary{% endif %}" href="/notifications">
|
||||
Wealthiest
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if '/notifications?posts=true' in request.full_path %}font-bold text-red-600{% endif %}" href="/notifications?posts=true">
|
||||
<a class="{% if '/notifications?posts=true' in request.full_path %}font-bold text-primary{% endif %}" href="/notifications?posts=true">
|
||||
Spenders
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-red-600{% endif %}" href="/notifications?messages=true">
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-primary{% endif %}" href="/notifications?messages=true">
|
||||
Followers
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-red-600{% endif %}" href="/notifications?messages=true">
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-primary{% endif %}" href="/notifications?messages=true">
|
||||
Posts
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-red-600{% endif %}" href="/notifications?messages=true">
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-primary{% endif %}" href="/notifications?messages=true">
|
||||
Comments
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-red-600{% endif %}" href="/notifications?messages=true">
|
||||
<a class="{% if '/notifications?messages=true' in request.full_path %}font-bold text-primary{% endif %}" href="/notifications?messages=true">
|
||||
Awards
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
</h1>
|
||||
<ul class="text-xs flex items-center space-x-3 leading-normal mb-0">
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if not '=true' in request.full_path else 'text-gray-500' }}" href="/notifications">
|
||||
<a class="{{ 'font-bold text-primary' if not '=true' in request.full_path else 'text-gray-500' }}" href="/notifications">
|
||||
All
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if '/notifications?posts=true' in request.full_path else 'text-gray-500' }}" href="/notifications?posts=true">
|
||||
<a class="{{ 'font-bold text-primary' if '/notifications?posts=true' in request.full_path else 'text-gray-500' }}" href="/notifications?posts=true">
|
||||
Posts
|
||||
{% if v.post_notifications_count %}
|
||||
<span class="text-gray-600">({{v.post_notifications_count}})</span>
|
||||
|
@ -27,13 +27,13 @@
|
|||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if '/notifications?messages=true' in request.full_path else 'text-gray-500' }}" href="/notifications?messages=true">
|
||||
<a class="{{ 'font-bold text-primary' if '/notifications?messages=true' in request.full_path else 'text-gray-500' }}" href="/notifications?messages=true">
|
||||
Messages
|
||||
</a>
|
||||
</li>
|
||||
{% if v.admin_level > 1 %}
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if '/notifications?modmail=true' in request.full_path else 'text-gray-500' }}" href="/notifications?modmail=true">
|
||||
<a class="{{ 'font-bold text-primary' if '/notifications?modmail=true' in request.full_path else 'text-gray-500' }}" href="/notifications?modmail=true">
|
||||
Mod Mail
|
||||
</a>
|
||||
</li>
|
||||
|
@ -88,9 +88,9 @@
|
|||
{% set path = request.full_path %}
|
||||
{% endif %}
|
||||
{% if request.full_path == "/notifications" %}
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-red-600 bg-gray-900" href="{{path}}?page={{page-1}}">Previous</a></small>
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-primary bg-gray-900" href="{{path}}?page={{page-1}}">Previous</a></small>
|
||||
{% else %}
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-red-600 bg-gray-900" href="{{path}}&page={{page-1}}">Previous</a></small>
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-primary bg-gray-900" href="{{path}}&page={{page-1}}">Previous</a></small>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% else %}
|
||||
|
@ -107,9 +107,9 @@
|
|||
{% set path = request.full_path %}
|
||||
{% endif %}
|
||||
{% if request.full_path == "/notifications" %}
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-red-600 bg-gray-900" href="{{path}}?page={{page+1}}">Next</a></small>
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-primary bg-gray-900" href="{{path}}?page={{page+1}}">Next</a></small>
|
||||
{% else %}
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-red-600 bg-gray-900" href="{{path}}&page={{page+1}}">Next</a></small>
|
||||
<small><a class="block px-2 py-1 text-sm font-bold text-primary bg-gray-900" href="{{path}}&page={{page+1}}">Next</a></small>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% else %}
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
<div class="flex space-x-3 divide-x divide-gray-400 text-xs">
|
||||
<ul class="flex items-center space-x-3 leading-normal mb-0">
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if '/posts/' in request.path else 'text-gray-500' }}" href="/search/posts/?sort={{sort}}&q={{query | urlencode}}&t={{t}}">
|
||||
<a class="{{ 'font-bold text-primary' if '/posts/' in request.path else 'text-gray-500' }}" href="/search/posts/?sort={{sort}}&q={{query | urlencode}}&t={{t}}">
|
||||
Posts
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if '/comments/' in request.path else 'text-gray-500' }}" href="/search/comments/?sort={{sort}}&q={{query | urlencode}}&t={{t}}">
|
||||
<a class="{{ 'font-bold text-primary' if '/comments/' in request.path else 'text-gray-500' }}" href="/search/comments/?sort={{sort}}&q={{query | urlencode}}&t={{t}}">
|
||||
Comments
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="{{ 'font-bold text-red-600' if '/users/' in request.path else 'text-gray-500' }}" href="/search/users/?sort={{sort}}&q={{query | urlencode}}&t={{t}}">
|
||||
<a class="{{ 'font-bold text-primary' if '/users/' in request.path else 'text-gray-500' }}" href="/search/users/?sort={{sort}}&q={{query | urlencode}}&t={{t}}">
|
||||
Users
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue