Skip to content

Commit f8a771d

Browse files
committed
Fix bug causing writer profile embeds to not show article count
1 parent 4f4da6f commit f8a771d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/embeds/writer/default.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<img class="block h-full bg-black border border-white border-solid rounded-l-lg" src="{{ url_for('UserContent.get_avatar', uid=(user.discord or 0), s='full')}}">
77
<div class="flex flex-col flex-1 h-full pl-4 text-white bg-black rounded-r-lg">
88
<h1 class="m-0 mt-1 text-xl font-bold text-white">{{user.wikidot}}</h1>
9-
<p class="m-0 text-sm"><b>{{stats.originals}}</b> Článků</p>
9+
<p class="m-0 text-sm"><b>{{stats.original_count}}</b> Článků</p>
1010
<p class="m-0 text-sm">Nejnovější článek: <b><a href="{{last.link}}" class="text-white transition-opacity hover:opacity-75" target="_top">{{last.name}}</b></a></p>
1111
</div>
1212
<div class="absolute top-0 right-0 block p-2 font-semibold text-white rounded-tr-lg rounded-bl-lg bg-gradient-to-r from-teal-200 to-teal-500">Spisovatel</div>

templates/embeds/writer/zozi.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<img class="block h-full bg-black border border-white border-solid rounded-l-lg" src="{{ url_for('UserContent.get_avatar', uid=(user.discord or 0), s='full')}}">
77
<div class="flex flex-col flex-1 h-full pl-4 bg-center text-white bg-pink-900 bg-[url('../../static/catto.png')] rounded-r-lg">
88
<h1 class="m-0 mt-1 text-xl font-bold text-white">{{user.wikidot}}</h1>
9-
<p class="m-0 text-sm"><b>{{stats.originals}}</b> Článků</p>
9+
<p class="m-0 text-sm"><b>{{stats.original_count}}</b> Článků</p>
1010
<p class="m-0 text-sm">Nejnovější článek: <b><a href="{{last.link}}" class="text-white transition-opacity hover:opacity-75" target="_top">{{last.name}}</b></a></p>
1111
</div>
1212
<div class="absolute top-0 right-0 block p-2 font-semibold text-white rounded-tr-lg rounded-bl-lg bg-gradient-to-r from-teal-200 to-teal-500">Spisovatel</div>

0 commit comments

Comments
 (0)