diff options
| author | czaks <marcin@6irc.net> | 2015-03-10 12:48:59 +0100 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-10 12:48:59 +0100 |
| commit | bdb6001f3f7e93e0b9655c0491bbef6f1df8a5fa (patch) | |
| tree | 4f4007d1b090694746fc6d36a19dd8accfd3f8ca /templates/post_thread.html | |
| parent | eb245c2970062620f349024922f8c48379ffea88 (diff) | |
support for slugified links; may introduce a few bugs
Diffstat (limited to 'templates/post_thread.html')
| -rw-r--r-- | templates/post_thread.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html index 08b4c4c1..61146491 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -15,8 +15,8 @@ {% include 'post/time.html' %} </label> {% include 'post/poster_id.html' %} - <a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', config.file_page50) }}{% else %}{{ post.link }}{% endif %}">No.</a> - <a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', config.file_page50) }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a> + <a class="post_no" id="post_no_{{ post.id }}" onclick="highlightReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('', '50') }}{% else %}{{ post.link }}{% endif %}">No.</a> + <a class="post_no" onclick="citeReply({{ post.id }})" href="{% if isnoko50 %}{{ post.link('q', '50') }}{% else %}{{ post.link('q') }}{% endif %}">{{ post.id }}</a> {% if post.sticky %} {% if config.font_awesome %} <i class="fa fa-thumb-tack"></i> @@ -39,14 +39,14 @@ {% endif %} {% endif %} {% if index %} - <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a> + <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}Reply{% endtrans %}]</a> {% endif %} {% if isnoko50 %} - <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}View All{% endtrans %}]</a> + <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post) }}">[{% trans %}View All{% endtrans %}]</a> {% endif %} {% if hasnoko50 and not isnoko50 %} {% set lastcount = config.noko50_count %} - <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page50|sprintf(post.id) }}">[{% trans %}Last 1 Post{% plural lastcount %}Last {{ count }} Posts{% endtrans %}]</a> + <a href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ link_for(post, true) }}">[{% trans %}Last 1 Post{% plural lastcount %}Last {{ count }} Posts{% endtrans %}]</a> {% endif %} {% include 'post/post_controls.html' %} </p> |
