mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2025-12-12 16:58:50 +01:00
Fix #5 List of all the users
This commit is contained in:
parent
8d635a3f71
commit
c4cf1d3670
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
17
_global/Special:Users.html
Normal file
17
_global/Special:Users.html
Normal 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user