generate unique board identifiers...

This commit is contained in:
Sebastian Hugentobler 2015-05-18 17:55:38 +02:00
parent 73e1b58923
commit fcdb33f6c0
5 changed files with 12 additions and 9 deletions

View file

@ -14,14 +14,14 @@
{% if board.boards |length > 0 %}
<ul>
{% for board in board.boards %}
<li><a href={{ "../board/" + board.title |url_replacer + ".html" }}>{{ board.title }}</a></li>
<li><a href={{ "../board/" + board |find_board_id + '_' + board.title |url_replacer + ".html" }}>{{ board.title }}</a></li>
{% endfor %}
</ul>
<hr>
{% endif %}
<ul>
{% for thread in board.threads %}
<li><a href={{ "thread/" + thread.title |url_replacer + ".html" }}>{{ thread.title }}</a></li>
<li><a href={{ "thread/" + thread.id + '_' + thread.title |url_replacer + ".html" }}>{{ thread.title }}</a></li>
{% endfor %}
</ul>
</body>

View file

@ -8,13 +8,14 @@
</head>
<body>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="users.html">Users</a></li>
</ul>
<hr>
<ul>
{% for board in boards %}
<li>
<a href={{ "board/" + board.title |url_replacer + ".html" }}>{{ board.title }}</a><br>
<a href={{ "board/" + board |find_board_id + '_' + board.title |url_replacer + ".html" }}>{{ board.title }}</a><br>
<i>{{ board.description }}</i>
</li>
{% endfor %}

View file

@ -8,7 +8,7 @@
</head>
<body>
<ul>
<li><a href={{ "../" + board.title |url_replacer + ".html" }}>{{ board.title }}</a></li>
<li><a href={{ "../" + board |find_board_id + '_' + board.title |url_replacer + ".html" }}>{{ board.title }}</a></li>
</ul>
<hr>
<h1>{{ thread.title }}</h1>

View file

@ -8,6 +8,7 @@
</head>
<body>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="boards.html">Boards</a></li>
</ul>
<hr>