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/mod | |
| parent | eb245c2970062620f349024922f8c48379ffea88 (diff) | |
support for slugified links; may introduce a few bugs
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/debug/recent_posts.html | 2 | ||||
| -rw-r--r-- | templates/mod/search_results.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/mod/debug/recent_posts.html b/templates/mod/debug/recent_posts.html index e4eb4f3a..ce4cffc4 100644 --- a/templates/mod/debug/recent_posts.html +++ b/templates/mod/debug/recent_posts.html @@ -63,7 +63,7 @@ {% else %} {% set thread = post.id %} {% endif %} - <a href="?/{{ post.board ~ '/' ~ config.dir.res}}{{ config.file_page|sprintf(thread) }}#{{ post.id }}"> + <a href="?/{{ post.board ~ '/' ~ config.dir.res}}{{ link_for(post) }}#{{ post.id }}"> {{ post.id }} </a> </td> diff --git a/templates/mod/search_results.html b/templates/mod/search_results.html index 0d3c2a10..186ee5db 100644 --- a/templates/mod/search_results.html +++ b/templates/mod/search_results.html @@ -195,7 +195,7 @@ {% else %} {% set thread = post.id %} {% endif %} - <a href="?/{{ post.board ~ '/' ~ config.dir.res}}{{ config.file_page|sprintf(thread) }}#{{ post.id }}"> + <a href="?/{{ post.board ~ '/' ~ config.dir.res}}{{ link_for(post) }}#{{ post.id }}"> {{ post.id }} </a> </td> @@ -265,4 +265,4 @@ <a href="?/search/{{ search_type }}/{{ search_query_escaped }}/{{ i + 1 }}">[{{ i + 1 }}]</a> {% endfor %} </p> -{% endif %}
\ No newline at end of file +{% endif %} |
