2015-04-13 17:40:45 +02:00
< main id = "boardlist" >
< section class = "description box col col-12" >
< h2 class = "box-title" > Global Statistics< / h2 >
2015-04-13 21:36:38 +02:00
< p class = "box-content" > {% trans %}There are currently < strong > {{boards_public}}< / strong > public boards, < strong > {{boards_total}}< / strong > total. Site-wide, < strong > {{posts_hour}}< / strong > posts have been made in the last hour, with < strong > {{posts_total}}< / strong > being made on all active boards since {{founding_date}}.{% endtrans %}< / p >
2015-04-13 17:40:45 +02:00
{% if uptime %}< p class = "box-content" > {{uptime}} without interruption< / p > {% endif %}
< p class = "box-content" > This page last updated {{page_updated}}.< / p >
< / section >
< div class = "board-list" >
< aside class = "search-container col col-2" >
2015-04-15 21:46:48 +02:00
< form id = "search-form" class = "box" method = "get" action = "/boards.php" >
2015-04-13 17:40:45 +02:00
< h2 class = "box-title" > Search< / h2 >
< div class = "board-search box-content" >
< label class = "search-item search-sfw" >
2015-04-15 21:46:48 +02:00
< input type = "checkbox" id = "search-sfw-input" name = "sfw" value = "1" { % if not search . nsfw % } checked = "checked" { % endif % } / > Hide NSFW boards
2015-04-13 17:40:45 +02:00
< / label >
< div class = "search-item search-title" >
2015-04-15 21:46:48 +02:00
< input type = "text" id = "search-title-input" name = "title" name = "title" value = "{{search.title}}" placeholder = "Search titles..." / >
2015-04-13 17:40:45 +02:00
< / div >
< div class = "search-item search-lang" >
< select id = "search-lang-input" name = "lang" >
< optgroup label = "Popular" >
2015-04-13 21:36:38 +02:00
< option value = "" > All languages< / option >
< option value = "en" > English< / option >
< option value = "es" > Spanish< / option >
2015-04-13 17:40:45 +02:00
< / optgroup >
< optgroup label = "All" >
2015-04-13 21:36:38 +02:00
< option value = "cn" > Chinese< / option >
2015-04-13 17:40:45 +02:00
< / optgroup >
< / select >
< / div >
< div class = "search-item search-tag" >
2015-04-15 21:46:48 +02:00
< input type = "text" id = "search-tag-input" name = "tags" value = "{{ search.tags|join(' ') }}" placeholder = "Search tags..." / >
2015-04-13 17:40:45 +02:00
< / div >
< div class = "search-item search-submit" >
< button id = "search-submit" > Search< / button >
2015-04-15 14:02:11 +02:00
< span id = "search-loading" class = "loading-small board-list-loading" style = "display: none;" > < / span >
< script type = "text/javascript" >
/* Cheeky hack.
DOM Mutation is now depreceated, but board-directory.js fires before this button is added.
Since .ready() only fires after the entire page loads, we have this here to disable it as soon
as we pass it in the DOM structure.
We don't just disable="disable" it because then it would be broken for all non-JS browsers. */
document.getElementById( 'search-submit' ).disabled = "disabled";
document.getElementById( 'search-loading' ).style.display = "inline-block";
< / script >
2015-04-13 17:40:45 +02:00
< / div >
< / div >
< ul class = "tag-list box-content" >
{{html_tags}}
< / ul >
< / form >
< / aside >
< section class = "board-list col col-10" >
< table class = "board-list-table" >
< colgroup >
< col class = "board-meta" / >
< col class = "board-uri" / >
< col class = "board-title" / >
< col class = "board-pph" / >
< col class = "board-max" / >
< col class = "board-unique" / >
< col class = "board-tags" / >
< / colgroup >
2015-04-14 21:06:49 +02:00
< thead class = "board-list-head" >
2015-04-13 17:40:45 +02:00
< tr >
< th class = "board-meta" data-column = "meta" > < / th >
< th class = "board-uri" data-column = "uri" > {% trans %}Board{% endtrans %}< / th >
< th class = "board-title" data-column = "title" > {% trans %}Title{% endtrans %}< / th >
< th class = "board-pph" data-column = "pph" title = "Posts per hour" > {% trans %}PPH{% endtrans %}< / th >
2015-04-15 14:02:11 +02:00
< th class = "board-max" data-column = "posts_total" > {% trans %}Total posts{% endtrans %}< / th >
< th class = "board-unique" data-column = "active" title = "Unique IPs to post in the last 72 hours" > {% trans %}Active users{% endtrans %}< / th >
2015-04-13 17:40:45 +02:00
< th class = "board-tags" data-column = "tags" > {% trans %}Tags{% endtrans %}< / th >
< / tr >
< / thead >
< tbody class = "board-list-tbody" > {{html_boards}}< / tbody >
2015-04-14 17:01:32 +02:00
2015-04-15 14:02:11 +02:00
{% if boards_omitted > 0 %}
< tbody class = "board-list-omitted" data-omitted = "{{boards_omitted}}" >
< tr >
< td colspan = "7" > {{boards_omitted}} board{% if boards_omitted != 1 %}s were{% else %} was{% endif %} omitted.< / td >
< / tr >
< / tbody >
{% endif %}
2015-04-14 21:06:49 +02:00
< tfoot class = "board-list-loading" >
< tr >
< td colspan = "7" class = "loading" > < / td >
< / tr >
< / tfoot >
2015-04-13 17:40:45 +02:00
< / table >
< / section >
< / div >
< / main >