forked from rDrama/rDrama
Change leaderboard to use id link vs username since page is cached and username can change (#216)
Found by @Grue Co-authored-by: Chuck <dude@bussy.com> Reviewed-on: rDrama/rDrama#216 Co-authored-by: top <top@noreply.fsdfsd.net> Co-committed-by: top <top@noreply.fsdfsd.net>master
parent
f18055838c
commit
23ceccddfc
|
@ -16,7 +16,7 @@
|
||||||
<td>{{position_no}}</td>
|
<td>{{position_no}}</td>
|
||||||
<td>{% include "user_in_table.html" %}</td>
|
<td>{% include "user_in_table.html" %}</td>
|
||||||
{% if user_relative_url is not none %}
|
{% if user_relative_url is not none %}
|
||||||
<td><a href="/@{{user.username}}/{{user_relative_url}}">{{"{:,}".format(value)}}</a></td>
|
<td><a href="/id/{{user.id}}">{{"{:,}".format(value)}}</a></td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td>{{"{:,}".format(value)}}</td>
|
<td>{{"{:,}".format(value)}}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% if user %}
|
{% if user %}
|
||||||
{% if can_see(v, user) %}
|
{% if can_see(v, user) %}
|
||||||
{%- include 'admin/shadowbanned_tooltip.html' -%}
|
{%- include 'admin/shadowbanned_tooltip.html' -%}
|
||||||
<a class="unbreakable" data-sort-key="{{user.username.lower()}}" style="color:#{{user.name_color}};font-weight:bold" href="/@{{user.username}}">
|
<a class="unbreakable" data-sort-key="{{user.username.lower()}}" style="color:#{{user.name_color}};font-weight:bold" href="/id/{{user.id}}">
|
||||||
<div class="profile-pic-20-wrapper mb-2">
|
<div class="profile-pic-20-wrapper mb-2">
|
||||||
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
|
<img loading="lazy" src="{{user.profile_url}}" class="pp20">
|
||||||
{% if user.hat_active(v)[0] -%}
|
{% if user.hat_active(v)[0] -%}
|
||||||
|
|
Loading…
Reference in New Issue