Latest Posts

Topic: Improvement Wiki index page

kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48
Posts: 2433
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-11-28, 13:42

I have tested some imprrovements for https://wl.widelands.org/wiki/list/. Screenshot:



At the top you could find a sentence with the count of all pages.

I replaced the list with a table and added the following columns

* "Summary": This is the mandatory summary-filed you have to fill by creating a new article
* "Last update": When this articel last changed

The related diff (to /templates/wiki/index.html):

2a3
> {% load custom_date wlprofile %}
10c11,20
< 		<ul>
---
> 		<p> There are {{ articles|length }} articles in this wiki:</p>
> 		<table>
> 		<thead>
> 			<tr>
> 				<th>Page</th>
> 				<th>Summary</th>
> 				<th>Last update</th>
> 			</tr>
> 		</thead>
> 		<tbody>
12c22,26
< 				<li><a href="{% url wiki_article article.title %}">{{ article.title }}</a></li>
---
> 			<tr>
> 				<td><a href="{% url wiki_article article.title %}">{{ article.title }}</a></td>
> 				<td>{{ article.summary }}</td>
> 				<td>{{ article.last_update|custom_date:user }}</td>
> 			</tr>
14c28,29
< 		</ul>
---
> 		</tbody>
> 		</table>


I hope you like my suggestion. This was tested by locally installed lp:widelands-website.

Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
wl-zocker

Joined: 2011-12-30, 17:37
Posts: 495
Ranking
Tribe Member
Location: Germany
Posted at: 2014-11-28, 17:15

I think that looks better than the ordinary list. Especially the summary is very useful - sometimes, the title is not very meaningful.


"Only few people know how much one has to know in order to know how little one knows." - Werner Heisenberg

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-11-28, 18:15

+1

Can you open a new bug at https://bugs.launchpad.net/widelands-website and attach the patch as a file? This way, it will be easier to apply face-smile.png

Or even better, you could push your local fix into a new branch on widelands-website and make a merge request.


Busy indexing nil values

Top Quote
kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 20:48
Posts: 2433
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-11-28, 23:29

Thanks for reply face-smile.png

I've made a bugreport

Or even better, you could push your local fix into a new branch on widelands-website and make a merge request.

Maybe later. I have to learn how to do this.... and the next time i have a focus on wikiarticles....


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-11-29, 10:17

Thanks for the bug report face-smile.png

Instructions for BZR are here: https://wl.widelands.org/wiki/BzrPrimer/

I also use a tool called Bazaar Explorer to help me with committing and pushing.

Edited: 2014-11-29, 10:24

Busy indexing nil values

Top Quote