Browse Source

BugFix - Small BugFix to Archive and Voting (adding line of text)

main
PupperWoff 7 years ago
committed by discomrade
parent
commit
fca78a3a04
  1. 5
      inc/archive.php
  2. 2
      templates/mod/archive_featured_list.html
  3. 5
      templates/mod/archive_list.html

5
inc/archive.php

@ -277,7 +277,6 @@ class Archive {
'config' => $config,
'mod' => false,
'hide_dashboard_link' => true,
'board' => $board,
'boardlist' => createBoardList(false),
'title' => $title,
'subtitle' => "",
@ -322,7 +321,7 @@ class Archive {
// If featuring of threads is turned off return
if(!$config['feature']['threads'])
return;
// Get featured archived threads
$archive = self::getArchiveList(true);
@ -337,9 +336,9 @@ class Archive {
'boardlist' => createBoardList(false),
'title' => $title,
'subtitle' => "",
'boardlist' => createBoardlist(),
'body' => Element("mod/archive_featured_list.html", array(
'config' => $config,
'board' => $board,
'archive' => $archive
))
));

2
templates/mod/archive_featured_list.html

@ -1,7 +1,7 @@
{% if config.archive.threads %}
<p style="text-align: center">
<a id="unimportant" href="{% if mod %}{{ config.file_mod }}?{% endif %}{{ config.root }}{{ board.dir }}{{ config.dir.archive }}">[{% trans %}Thread Archive{% endtrans %}]</a>
<a id="unimportant" href="{% if mod %}{{ config.file_mod }}?{% endif %}{{ config.root }}{{ board.dir }}{{ config.dir.archive }}">[{% trans %}Board Archive{% endtrans %}]</a>
</p>
{% endif %}

5
templates/mod/archive_list.html

@ -9,7 +9,8 @@
</p>
{% endif %}
<p style="text-align: center">
<b>{% trans 'Displaying' %} {{ thread_count }} {% trans 'expired threads' %}{% if config.archive.lifetime %} {% trans 'from the past' %} {{ config.archive.lifetime }} {% trans 'days' %}{% endif %}</b>
<b>{% trans 'Displaying' %} {{ thread_count }} {% trans 'expired threads' %}{% if config.archive.lifetime %} {% trans 'from the past' %} {{ config.archive.lifetime }}{% endif %}</b><br/>
<small>Vote for a thread to be added to the featured archive</small>
</p>
<table id="archive-list" class="archive-list modlog">
@ -80,4 +81,4 @@
</tr>
{% endfor %}
</tbody>
</table>
</table>

Loading…
Cancel
Save