Fix #5 List of all the users

This commit is contained in:
Alexis Hassler 2019-05-04 22:24:47 +02:00
parent 8d635a3f71
commit c4cf1d3670
5 changed files with 22 additions and 3 deletions

View File

@ -19,3 +19,5 @@ global_pages:
text: Home page text: Home page
- url: /Special:Tags - url: /Special:Tags
text: All the tags text: All the tags
- url: /Special:Users
text: All the users

View File

@ -19,3 +19,5 @@ global_pages:
text: Accueil text: Accueil
- url: /Special:Tags - url: /Special:Tags
text: Toutes les catégories text: Toutes les catégories
- url: /Special:Users
text: Tous les utilisateurs

View File

@ -17,8 +17,6 @@ layout: default
</style> </style>
<div class="container"> <div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p> <p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p> <p>The requested page could not be found.</p>
</div> </div>

View File

@ -13,6 +13,6 @@ menu: ['global']
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}
<li id="n-tag-{{ tag }}"><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a> ({{counter}} pages)</li> <li><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a> ({{counter}} pages)</li>
{%- endfor -%} {%- endfor -%}
</ul> </ul>

View File

@ -0,0 +1,17 @@
---
layout: default
title: Users
menu: ['global']
---
{%- include /functions/wiki-tags.html -%}
<ul>
{%- for user in site.data.users -%}
{%- assign counter = 0 -%}
{%- for other_page in wiki_pages %}
{%- if other_page.author == user[0] -%}
{%- assign counter = counter | plus: 1 -%}
{%- endif -%}
{%- endfor -%}
<li><a href="/{{ site.data.i18n[site.lang].prefix.user }}{{ user[0] }}.html">{{ user[1].name }}</a> ({{counter}} pages)</li>
{%- endfor -%}
</ul>