b0982f07a6
* Change color for bg-danger * Fix annoying flickering with night theme * use new class instead of overriding bootstrap's
120 lignes
5,8 Kio
HTML
Fichier exécutable
120 lignes
5,8 Kio
HTML
Fichier exécutable
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<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 -->
|
|
<title>Nyaa Pantsu - {{block "title" .}}{{ T "error_404" }}{{end}}</title>
|
|
<link rel="icon" type="image/png" href="/img/favicon.png?v=3" />
|
|
|
|
<!-- 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" />
|
|
|
|
<!-- Bootstrap -->
|
|
<!-- Latest compiled and minified CSS -->
|
|
<!-- This should come before website CSS because it can f3ck up the website completely.. Use !important as a workaround -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
|
|
<!-- 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]-->
|
|
|
|
<!-- 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>
|
|
|
|
<!-- Website CSS -->
|
|
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/style.css"}}">
|
|
<script type="text/javascript">
|
|
// Night mode
|
|
var night = localStorage.getItem("night");
|
|
var darkStyleLink = document.createElement('link');
|
|
darkStyleLink.id = "style-dark";
|
|
darkStyleLink.rel = "stylesheet";
|
|
darkStyleLink.type = "text/css";
|
|
darkStyleLink.href = "/css/style-night.css"
|
|
if (night == "true") {
|
|
document.getElementsByTagName("head")[0].append(darkStyleLink);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-default" id="mainmenu">
|
|
<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">
|
|
<span class="sr-only">{{ T "toggle_navigation" }}</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{{.URL.Parse "/"}}">Nyaa Pantsu</a>
|
|
<a class="navbar-brand hidden-md pull-right nightswitch" href="javascript:toggleNightMode();" ></a>
|
|
</div>
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="{{.URL.Parse "/upload"}}">{{T "upload"}}</a></li>
|
|
<li><a href="{{.URL.Parse "/faq"}}">{{T "faq"}}</a></li>
|
|
<li><a href="{{ genRouteWithQuery "feed" .URL }}">RSS</a></li>
|
|
<li><a href="https://sukebei.pantsu.cat">{{T "fap"}}</a></li>
|
|
<li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li>
|
|
|
|
</ul>
|
|
{{block "badge_user" .}}{{end}}
|
|
<form class="navbar-form navbar-right" role="search" action="/search" method="get">
|
|
<div class="form-group">
|
|
{{block "search_common" .}}{{end}}
|
|
</div>
|
|
<div class="form-group">
|
|
{{block "search_button" .}}{{end}}
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- top padding -->
|
|
<div style="padding-top: 10rem"></div>
|
|
|
|
<div class="container {{block "contclass" .}}generic{{end}}" id="container">
|
|
{{if not .Search.HideAdvancedSearch}}
|
|
<div class="blockBody" style="text-align:center">
|
|
<a href="#advanced-search" data-toggle="collapse">{{T "advanced_search"}}</a><br />
|
|
<form id="advanced-search" class="navbar-form collapse" role="search" action="/search" method="get">
|
|
<div class="form-group">
|
|
{{block "search_common" .}}{{end}}
|
|
{{block "search_advanced" .}}{{end}}
|
|
{{block "search_button" .}}{{end}}
|
|
</div>
|
|
</form>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
<div style="margin:0.5em"></div>
|
|
{{end}}
|
|
|
|
{{block "content" .}}{{T "nothing_here"}}{{end}}
|
|
</div>
|
|
|
|
<!-- bottom padding -->
|
|
<div style="padding-top: 5rem"></div>
|
|
<footer>
|
|
Powered by NyaaPantsu
|
|
</footer>
|
|
|
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
|
<!-- 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>
|
|
|
|
<!-- Main Javascript File -->
|
|
<script type="text/javascript" charset="utf-8" src="{{.URL.Parse "/js/main.js"}}"></script>
|
|
{{block "js_footer" .}}{{end}}
|
|
</body>
|
|
</html>
|