2017-05-02 12:39:53 +02:00
<!DOCTYPE html>
2017-05-21 00:38:28 +02:00
< html lang = "{{ call $.T " language_code " } } " >
2017-05-29 13:12:05 +02:00
< head >
< meta charset = "utf-8" >
2017-06-02 20:10:36 +02:00
< meta http-equiv = "X-UA-Compatible" content = "IE=edge" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta name = "keywords" content = "torrents, pantsu, anime, manga, sukebei, nyaapassu, horriblesubs, nyaa, hentai, dlsite" >
< meta name = "description" content = 'The leading open-source community-based nyaa.se successor, suitable for all anime and manga needs. にゃんぱす~!' >
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
< title > {{if Sukebei}}Sukebei{{else}}Nyaa{{end}} Pantsu - {{block "title" .}}{{ call $.T "error_404" }}{{end}}< / title >
<!-- Flavicons and icons -->
< link rel = "icon" type = "image/png" href = "/img/favicon.png" / >
< link rel = "shortcut icon" type = "image/png" href = "/img/favicon.png" >
2017-05-29 13:12:05 +02:00
2017-06-02 20:10:36 +02:00
<!-- SMO -->
< meta property = "og:site_name" content = "Nyaa Pantsu" >
< meta property = "og:site_name" content = "{{if Sukebei}}Sukebei{{else}}Nyaa{{end}} Pantsu - {{template " title " . } } { { call $ . T " error_404 " } } " >
< meta property = "og:image" content = "/img/favicon.png" >
< meta property = "og:description" content = "Nyaa Pantsu Homepage" >
<!-- RSS Feed with Context -->
< link rel = "alternate" type = "application/rss+xml" title = "Nyaa Pantsu - {{block " rsstitle " . } } Last torrents { { end } } RSS Feed " href = "{{ block " rss_link " . } } { { genRouteWithQuery " feed " . URL } } { { end } } " / >
2017-05-29 13:12:05 +02:00
<!-- do NOT move -->
< link rel = "stylesheet" href = "https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css" >
<!-- Base theme -->
2017-06-05 00:44:51 +02:00
< link rel = "stylesheet" id = "style" href = "{{.URL.Parse " / css / main . css " } } ? v = {{ . Config . Version } } { { . Config . Build } } " >
2017-06-02 05:36:16 +02:00
<!-- User selected theme, if any, defaults to /g/ -->
{{if eq $.Theme ""}}
2017-06-05 00:44:51 +02:00
< link rel = "stylesheet" id = "theme" href = "/css/g.css?v={{ .Config.Version }}{{ .Config.Build }}" >
2017-06-02 05:36:16 +02:00
{{else}}
2017-06-05 00:44:51 +02:00
< link rel = "stylesheet" id = "theme" href = "/css/{{$.Theme}}.css?v={{ .Config.Version }}{{ .Config.Build }}" >
2017-06-02 05:36:16 +02:00
{{end}}
2017-05-29 13:12:05 +02:00
<!-- Search Box for Google -->
2017-06-03 03:45:24 +02:00
< script type = "application/ld+json" > { "@context" : "https://schema.org" , "@type" : "WebSite" , "url" : "{{.Config.WebAddress.Nyaa}}/" , "potentialAction" : { "@type" : "SearchAction" , "target" : "{{.Config.WebAddress.Nyaa}}/search?q={search_term_string}" , "query-input" : "required name=search_term_string" } } < / script >
2017-05-26 16:12:52 +02:00
{{ block "additional_header" .}}{{end}}
2017-05-29 13:12:05 +02:00
< / head >
2017-05-29 08:23:46 +02:00
< body { { if Sukebei } } class = "sukebei" { { end } } >
2017-05-29 13:12:05 +02:00
< nav id = "header" class = "header" >
< div class = "container" >
< div class = "h-left" >
< div class = "h-logo" >
< a href = "{{.URL.Parse " / " } } " > < img class = "hide-md" src = "/img/{{if Sukebei}}sukebei_logo.png{{else}}logo.png{{end}}" alt = "NyaaPantsu" > < img class = "visible-md" src = "/img/logo_s.png" / > < / a >
< / div >
< div class = "h-nav" >
< a href = "{{.URL.Parse " / upload " } } " class = "nav-btn" > < div class = "upload-icon visible-md" > < / div > < span class = "hide-md" > {{ call $.T "upload" }}< / span > < / a >
2017-06-06 03:19:19 +02:00
< a href = "{{ template " rss_link " . } } " class = "nav-btn" > < div class = "rss-icon visible-md" > < / div > < span class = "hide-md" > RSS< / span > < / a >
2017-05-29 13:12:05 +02:00
< a href = "{{.URL.Parse " / faq " } } " class = "nav-btn" > < div class = "faq-icon visible-md" > < / div > < span class = "hide-md" > {{ call $.T "faq" }}< / span > < / a >
{{if Sukebei}}
2017-06-03 03:45:24 +02:00
< a href = "{{.Config.WebAddress.Nyaa}}" class = "nav-btn" > < div class = "fun-icon visible-md" > < / div > < span class = "hide-md" > {{ call $.T "fun" }}< / span > < / a >
2017-05-29 13:12:05 +02:00
{{else}}
2017-06-03 03:45:24 +02:00
< a href = "{{.Config.WebAddress.Sukebei}}" class = "nav-btn" > < div class = "fap-icon visible-md" > < / div > < span class = "hide-md" > {{ call $.T "fap" }}< / span > < / a >
2017-05-29 13:12:05 +02:00
{{end}}
< / div >
< / div >
< div class = "h-right" >
{{block "badge_user" .}}{{end}}
< div class = "h-search" >
< form role = "search" action = "/search" method = "get" >
{{block "search_common" .}}{{end}}
{{block "search_button" .}}{{end}}
< / form >
Frontend rewrite (DONE) (#723)
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* HOLY FUCK INDEX IS /DONE/
* DO UPLOAD PAGE, DELETE OLD SHITTY CSS
* Complete login page
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* HOLY FUCK INDEX IS /DONE/
* DO UPLOAD PAGE, DELETE OLD SHITTY CSS
* Complete login page
* Begin work on profile page
* fucking git, man
* Damn, that looks sexy
* Complete login and register pages, include very minimal grid system, and delete all of view template
* Do view page!
* Finish view even more
* Fix dates and filesizes in torrent table
* Improve comment/captcha input
* Actually add magnet and torrent buttons
* Add open-iconic instead of fontawesome
* Improve user side-panel
* Rename Category_* to CategoryName
* Beginning to finish up
* Implement themes and add basic mobile support to front page
* Fix some slight color errors
* Fix captcha on dark
* magnet and torrent links on view
2017-05-24 06:20:51 +02:00
< / div >
< / div >
< / div >
2017-05-29 13:12:05 +02:00
< / nav >
< div id = "content" >
< div class = "content container center" >
{{block "content" .}}{{call $.T "nothing_here"}}{{end}}
Frontend rewrite (DONE) (#723)
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* HOLY FUCK INDEX IS /DONE/
* DO UPLOAD PAGE, DELETE OLD SHITTY CSS
* Complete login page
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* Change layout on torrent table, using grids.
* Remove Bootstrap and Jquery, and create basic nav
* More improvements to navbar, as well as work on _badgemenu
* Complete navbar HTML, obviously it still looks horrendous
* HOLY FUCK INDEX IS /DONE/
* DO UPLOAD PAGE, DELETE OLD SHITTY CSS
* Complete login page
* Begin work on profile page
* fucking git, man
* Damn, that looks sexy
* Complete login and register pages, include very minimal grid system, and delete all of view template
* Do view page!
* Finish view even more
* Fix dates and filesizes in torrent table
* Improve comment/captcha input
* Actually add magnet and torrent buttons
* Add open-iconic instead of fontawesome
* Improve user side-panel
* Rename Category_* to CategoryName
* Beginning to finish up
* Implement themes and add basic mobile support to front page
* Fix some slight color errors
* Fix captcha on dark
* magnet and torrent links on view
2017-05-24 06:20:51 +02:00
< / div >
2017-06-06 22:15:27 +02:00
{{ block "mascot" .}}
2017-05-31 04:21:35 +02:00
{{if ne .Mascot "hide"}}
2017-06-05 16:32:48 +02:00
< div id = "mascot" class = "hide-xs{{if ne .MascotURL " " } } custom-mascot { { end } } " onclick = "playVoice();" { { if ne . MascotURL " " } } style = "background-image: url('{{.MascotURL}}');" { { end } } > < / div >
2017-06-07 14:41:39 +02:00
{{/* Only play the sounds with the default mascot */}}
{{ if eq .MascotURL "" }}
2017-06-05 16:32:48 +02:00
{{ if eq .Theme "tomorrow" }}
< audio id = "explosion" hidden preload = "none" >
< source src = "https://megumin.love/sounds/explosion.mp3" type = "audio/mpeg" >
< / audio >
{{ else }}
< audio id = "nyanpassu" hidden preload = "none" >
< source src = "https://a.doko.moe/sewang.mp3" type = "audio/mpeg" >
< / audio >
{{end}}
2017-05-31 04:21:35 +02:00
{{end}}
2017-05-29 13:12:05 +02:00
{{end}}
2017-06-06 22:15:27 +02:00
{{end}}
2017-05-29 13:12:05 +02:00
< div class = "pagination" >
{{ genNav .Navigation .URL 15 }}
< / div >
< footer id = "footer" >
2017-06-02 20:10:36 +02:00
< div class = "container footer center" >
< div class = "footer-opt" >
< p > < a href = "/settings" > {{ call $.T "change_settings" }}< / a > < / p >
< / div >
< span > < i > Powered by < a href = "#" > NyaaPantsu< / a > v{{ .Config.Version }}{{ .Config.Build }}< / i > < / span >
< / div >
2017-05-29 13:12:05 +02:00
< / footer >
< / div >
2017-06-05 00:44:51 +02:00
< script type = "text/javascript" charset = "utf-8" src = "{{.URL.Parse " / js / main . js " } } ? v = {{ . Config . Version } } { { . Config . Build } } " async > < / script >
2017-05-29 13:12:05 +02:00
{{ block "footer_js" .}}{{end}}
< / body >
2017-06-05 00:44:51 +02:00
< / html >