Skip to content

Commit

Permalink
fix /u/.../lists links
Browse files Browse the repository at this point in the history
  • Loading branch information
trinkey committed Oct 13, 2024
1 parent af54043 commit f810a4b
Showing 1 changed file with 9 additions and 39 deletions.
48 changes: 9 additions & 39 deletions smiggins/templates/user_lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ <h2>{{ lang.user_page.lists_blocks }}</h2>
{% for USER in BLOCKS %}
<div class="post">
<div class="upper-content">
{% if NO_CSS_MODE == "false" %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
{% endif %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
<div class="displ-name">
<span style="--color-one: {{ USER.color_one }}; --color-two: {% if USER.is_gradient == 'true' %}{{ USER.color_two }}{% else %}{{ USER.color_one }}{% endif %}" class="user-badge banner-pfp"></span>

Expand All @@ -59,18 +57,10 @@ <h2>{{ lang.user_page.lists_blocks }}</h2>
<span aria-hidden="true" class="user-badge" data-add-badge="{{ BADGE }}"></span>
{% endfor %}
<span class="upper-lower-opacity">
{% if NO_CSS_MODE == "true" %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
{% endif %}
<span class="username">@{{ USER.username }}</span>
{% if NO_CSS_MODE == "true" %}
</a>
{% endif %}
<span class="username">@{{ USER.username }}</span>
</span>
</div>
{% if NO_CSS_MODE == "false" %}
</a>
{% endif %}
</a>
</div>

{% if ENABLE_USER_BIOS == 'true' %}
Expand All @@ -96,9 +86,7 @@ <h2>{{ lang.user_page.lists_following }}</h2>
{% for USER in FOLLOWING %}
<div class="post">
<div class="upper-content">
{% if NO_CSS_MODE == "false" %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
{% endif %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
<div class="displ-name">
<span style="--color-one: {{ USER.color_one }}; --color-two: {% if USER.is_gradient == 'true' %}{{ USER.color_two }}{% else %}{{ USER.color_one }}{% endif %}" class="user-badge banner-pfp"></span>

Expand All @@ -110,18 +98,10 @@ <h2>{{ lang.user_page.lists_following }}</h2>
<span aria-hidden="true" class="user-badge" data-add-badge="{{ BADGE }}"></span>
{% endfor %}
<span class="upper-lower-opacity">
{% if NO_CSS_MODE == "true" %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
{% endif %}
<span class="username">@{{ USER.username }}</span>
{% if NO_CSS_MODE == "true" %}
</a>
{% endif %}
<span class="username">@{{ USER.username }}</span>
</span>
</div>
{% if NO_CSS_MODE == "false" %}
</a>
{% endif %}
</a>
</div>

{% if ENABLE_USER_BIOS == 'true' %}
Expand All @@ -146,9 +126,7 @@ <h2>{{ lang.user_page.lists_followers }}</h2>
{% for USER in FOLLOWERS %}
<div class="post">
<div class="upper-content">
{% if NO_CSS_MODE == "false" %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
{% endif %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
<div class="displ-name">
<span style="--color-one: {{ USER.color_one }}; --color-two: {% if USER.is_gradient == 'true' %}{{ USER.color_two }}{% else %}{{ USER.color_one }}{% endif %}" class="user-badge banner-pfp"></span>

Expand All @@ -160,18 +138,10 @@ <h2>{{ lang.user_page.lists_followers }}</h2>
<span aria-hidden="true" class="user-badge" data-add-badge="{{ BADGE }}"></span>
{% endfor %}
<span class="upper-lower-opacity">
{% if NO_CSS_MODE == "true" %}
<a href="/u/{{ USER.username }}/" class="no-underline text">
{% endif %}
<span class="username">@{{ USER.username }}</span>
{% if NO_CSS_MODE == "true" %}
</a>
{% endif %}
<span class="username">@{{ USER.username }}</span>
</span>
</div>
{% if NO_CSS_MODE == "false" %}
</a>
{% endif %}
</a>
</div>

{% if ENABLE_USER_BIOS == 'true' %}
Expand Down

0 comments on commit f810a4b

Please sign in to comment.