2017-05-02 12:39:53 +02:00
<!DOCTYPE html>
2017-05-17 00:27:55 +02:00
< html lang = "{{ T " language_code " } } " >
2017-05-02 12:39:53 +02:00
< head >
< meta charset = "utf-8" >
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
2017-05-20 12:45:27 +02:00
< title > {{if Sukebei}}Sukebei{{else}}Nyaa{{end}} Pantsu - {{block "title" .}}{{ T "error_404" }}{{end}}< / title >
2017-05-07 00:54:44 +02:00
< link rel = "icon" type = "image/png" href = "/img/favicon.png?v=3" / >
2017-05-05 17:14:10 +02:00
<!-- RSS Feed with Context -->
< link href = "{{ genRouteWithQuery " feed " . URL } } " rel = "alternate" type = "application/rss+xml" title = "Nyaa Pantsu - {{block " rsstitle " . } } Last torrents { { end } } RSS Feed " / >
2017-05-06 19:56:50 +02:00
<!-- Bootstrap -->
2017-05-02 12:39:53 +02:00
<!-- Latest compiled and minified CSS -->
2017-05-06 19:56:50 +02:00
<!-- This should come before website CSS because it can f3ck up the website completely.. Use !important as a workaround -->
2017-05-02 12:39:53 +02:00
< link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity = "sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin = "anonymous" >
2017-05-17 12:26:28 +02:00
<!-- Bootstrap Markdown -->
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/bootstrap-markdown/2.10.0/css/bootstrap-markdown.min.css" crossorigin = "anonymous" >
2017-05-02 12:39:53 +02:00
<!-- Bootstrap -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!-- [if lt IE 9]>
< script src = "https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js" > < / script >
< script src = "https://oss.maxcdn.com/respond/1.4.2/respond.min.js" > < / script >
<![endif]-->
2017-05-03 19:45:18 +02:00
2017-05-10 20:35:56 +02:00
<!-- Search Box for Google -->
< script type = "application/ld+json" > { "@context" : "https://schema.org" , "@type" : "WebSite" , "url" : "https://nyaa.pantsu.cat/" , "potentialAction" : { "@type" : "SearchAction" , "target" : "https://nyaa.pantsu.cat/search?q={search_term_string}" , "query-input" : "required name=search_term_string" } } < / script >
2017-05-03 19:45:18 +02:00
<!-- Website CSS -->
2017-05-07 18:19:37 +02:00
< link rel = "stylesheet" id = "style" href = "{{.URL.Parse " / css / style . css " } } " >
2017-05-11 23:58:41 +02:00
{{block "night_theme_init" .}}{{end}}
2017-05-02 12:39:53 +02:00
< / head >
< body >
2017-05-05 12:46:47 +02:00
< nav class = "navbar navbar-default" id = "mainmenu" >
2017-05-02 12:39:53 +02:00
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle collapsed" data-toggle = "collapse" data-target = "#bs-example-navbar-collapse-1" aria-expanded = "false" >
2017-05-08 20:02:13 +02:00
< span class = "sr-only" > {{ T "toggle_navigation" }}< / span >
2017-05-02 12:39:53 +02:00
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
2017-05-12 05:59:39 +02:00
< a href = "{{.URL.Parse " / " } } " > < img src = "/img/logo.png" class = "navbar-logo" alt = "Nyaa Pantsu" > < / a >
2017-05-19 09:30:59 +02:00
< a class = "navbar-brand pull-right nightswitch" href = "javascript:toggleNightMode();" > < / a >
2017-05-02 12:39:53 +02:00
< / div >
< div class = "collapse navbar-collapse" id = "bs-example-navbar-collapse-1" >
2017-05-02 13:23:04 +02:00
< ul class = "nav navbar-nav" >
2017-05-19 07:36:32 +02:00
< li > < a href = "{{.URL.Parse " / upload " } } " > < div class = "hidden-md hidden-sm" > {{T "upload"}}< / div > < span class = "glyphicon glyphicon-cloud-upload visible-md" > < / span > < / a > < / li >
< li > < a href = "{{.URL.Parse " / faq " } } " > < div class = "hidden-md hidden-sm" > {{T "faq"}}< / div > < span class = "glyphicon glyphicon-question-sign visible-md" > < / span > < / a > < / li >
< li > < a href = "{{ genRouteWithQuery " feed " . URL } } " > < div class = "hidden-md hidden-sm" > RSS< / div > < span class = "glyphicon glyphicon-flash visible-md" > < / span > < / a > < / li >
2017-05-15 13:55:16 +02:00
{{ if Sukebei }}
2017-05-19 07:36:32 +02:00
< li > < a href = "https://nyaa.pantsu.cat" > < div class = "hidden-md hidden-sm" > {{T "fun"}}< / div > < span class = "glyphicon glyphicon-eye-open visible-md" > < / span > < / a > < / li >
2017-05-15 13:55:16 +02:00
{{ else }}
2017-05-19 07:36:32 +02:00
< li > < a href = "https://sukebei.pantsu.cat" > < div class = "hidden-md hidden-sm" > {{T "fap"}}< / div > < span class = "glyphicon glyphicon-eye-close visible-md" > < / span > < / a > < / li >
2017-05-15 13:55:16 +02:00
{{ end }}
2017-05-02 13:23:04 +02:00
< / ul >
2017-05-08 15:37:50 +02:00
{{block "badge_user" .}}{{end}}
2017-05-04 08:34:53 +02:00
< form class = "navbar-form navbar-right" role = "search" action = "/search" method = "get" >
2017-05-02 12:39:53 +02:00
< div class = "form-group" >
2017-05-07 01:20:13 +02:00
{{block "search_common" .}}{{end}}
2017-05-08 15:37:50 +02:00
< / div >
< div class = "form-group" >
2017-05-07 01:20:13 +02:00
{{block "search_button" .}}{{end}}
2017-05-05 05:04:04 +02:00
< / div >
< / form >
2017-05-08 23:19:33 +02:00
2017-05-07 18:19:37 +02:00
< / div >
2017-05-05 05:04:04 +02:00
< / div >
< / nav >
2017-05-05 14:29:14 +02:00
<!-- top padding -->
< div style = "padding-top: 10rem" > < / div >
2017-05-06 06:20:19 +02:00
< div class = "container {{block " contclass " . } } generic { { end } } " id = "container" >
2017-05-08 19:54:31 +02:00
{{block "content" .}}{{T "nothing_here"}}{{end}}
2017-05-02 12:39:53 +02:00
< / div >
2017-05-05 14:29:14 +02:00
<!-- bottom padding -->
< div style = "padding-top: 5rem" > < / div >
2017-05-09 18:00:20 +02:00
< footer >
Powered by NyaaPantsu
< / footer >
2017-05-13 02:01:17 +02:00
2017-05-13 18:53:54 +02:00
2017-05-13 13:57:57 +02:00
{{if eq .User.ID 0}}
2017-05-13 02:01:17 +02:00
< form method = "POST" action = "{{ .URL.Parse " / language " } } " id = "bottom_language_selector_form" >
< select id = "bottom_language_selector" name = "language" onchange = "javascript:document.getElementById('bottom_language_selector_form').submit()" hidden class = "form-control" > < / select >
< / form >
< noscript >
< center > < a href = "{{ .URL.Parse " / language " } } " > {{ T "change_language" }}< / a > < / center >
< / noscript >
2017-05-17 23:00:50 +02:00
< script type = "text/javascript" charset = "utf-8" src = "{{.URL.Parse " / js / languages . js " } } " > < / script >
2017-05-13 13:57:57 +02:00
{{end}}
2017-05-05 14:29:14 +02:00
2017-05-02 12:39:53 +02:00
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
2017-05-17 16:56:50 +02:00
< script src = "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" integrity = "sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin = "anonymous" > < / script >
2017-05-02 12:39:53 +02:00
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Latest compiled and minified JavaScript -->
< script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity = "sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin = "anonymous" > < / script >
2017-05-02 14:27:17 +02:00
2017-05-03 19:45:18 +02:00
<!-- Main Javascript File -->
2017-05-05 03:53:38 +02:00
< script type = "text/javascript" charset = "utf-8" src = "{{.URL.Parse " / js / main . js " } } " > < / script >
2017-05-07 03:00:05 +02:00
{{block "js_footer" .}}{{end}}
2017-05-02 14:27:17 +02:00
< / body >
2017-05-02 12:39:53 +02:00
< / html >