Skip to content

Commit 5cead4c

Browse files
authored
Merge pull request #290 from wikimediabrasil/hackathon-stats
fix: show username if user is not the user statistics
2 parents 81dcd42 + 3a634d2 commit 5cead4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/web/templates/statistics_all_time_counters.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
<article>
3030
<header>{% translate "Editors" %}</header>
3131
<b style="font-size: 1.5em;" {% if loading %}aria-busy="true"{% endif %}>{{ editors }}</b>
32-
{% if username %}<br><span style="font-size: 0.7em;">Hey, it's you!<span>{% endif %}
32+
{% if username %}<br><span style="font-size: 0.7em;">
33+
Hey, it's {% if user.username == username %}you!{% else %}{{ username }}!{% endif %}
34+
<span>{% endif %}
3335
</article>
3436

3537
<article>

0 commit comments

Comments
 (0)