2017-06-05 22:29:52 +00:00
2017-06-13 23:25:14 +00:00
{% 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 >
< / p >
{% endif %}
{% if is_mod_archive %}
{% if mod and mod|hasPermission(config.mod.remove_from_mod_archive) %}
< p style = "text-align: center" >
< b > Please be curtious and don't delete the threads archived here as they were archived for a reason.< / b >
< / p >
{% endif %}
{% endif %}
2017-06-05 22:29:52 +00:00
< table id = "archive-list" class = "archive-list modlog" >
< thead >
< tr >
< th width = '80px' > Post #< / th >
< th > Snippet< / th >
< th width = '50px' > < / th >
{% if mod and mod|hasPermission(config.mod.delete_featured_archived_threads, board.uri) %}
< th width = '80px' > < / th >
{% endif %}
< / tr >
< / thead >
< tbody >
{% for thread in archive %}
< tr >
< td > {{ thread.id }}< / td >
< td > {{ thread.snippet }}< / td >
< td > < a href = "{{ thread.featured_url }}" > [{% trans 'View' %}]< / a > < / td >
2017-06-13 23:25:14 +00:00
{% if is_mod_archive %}
{% if mod and mod|hasPermission(config.mod.remove_from_mod_archive, board.uri) %}
< td >
< form action = "" method = "post" class = "archiveForm" >
< input type = "hidden" name = "token" value = "{{ token }}" >
< input type = "hidden" name = "id" value = "{{ thread.id }}" >
< input type = "hidden" name = "delete" value = "1" >
< a href = "#" onclick = "return confirm('Are you sure you want to permanently delete this thread from featured archive?')?this.parentNode.submit():false;" > [{% trans 'Delete' %}]< / a >
< / form >
< / td >
{% endif %}
{% else %}
{% if mod and mod|hasPermission(config.mod.delete_featured_archived_threads, board.uri) %}
< td >
< form action = "" method = "post" class = "archiveForm" >
< input type = "hidden" name = "token" value = "{{ token }}" >
< input type = "hidden" name = "id" value = "{{ thread.id }}" >
< input type = "hidden" name = "delete" value = "1" >
< a href = "#" onclick = "return confirm('Are you sure you want to permanently delete this thread from featured archive?')?this.parentNode.submit():false;" > [{% trans 'Delete' %}]< / a >
< / form >
< / td >
{% endif %}
2017-06-05 22:29:52 +00:00
{% endif %}
< / tr >
{% endfor %}
< / tbody >
< / table >