Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/templates/index.html
kipukun 424633631c More frontend shit (#731)
* Torrent Mass Edit Api (WIP)

* Torrents can be deleted in mass from frontend with api post request
* Torrents status can be edited from frontend with api post request
-- Look to function doc for more info on how to use it

It is a WIP so it might not work =D

* Finished Mass mod Api

As per suggestion of @yiiTT in #720, I added:
* Changing torrents category
* Deletion of reports with deletion of a torrent
* Changing owner of multiple torrents

Commit also add some new translation strings.

* Make some changes

* Reports can now be cleared for the torrents selected without having to
delete them
* Users with no admin rights can't delete reports

* Fix moveto to status

moveto deprecated in api

* Tested and works!

Changes:
* Updates only the colomns of torrent table
* Moved categories config in config/torrents.go

* Make sort arrows look a lot nicer

* Add search icon into search input

* Work on navbar, fix it on mobile view

* Hide mascot on mobile views

* Make torrent view work on mobile + minor improvements

* Add status and various things to view

* ACTUALLY FINISH VIEW PAGE

* Forgot this file in last commit

* wow user profile was easy

* Work on profile page

* remove language option

* SEO improvement

* forgot the fucking bracket

* make description more weeb

* add irony

* add better irony

* Update README.md

* Make sort arrows look a lot nicer

* Add search icon into search input

* Work on navbar, fix it on mobile view

* Hide mascot on mobile views

* Make torrent view work on mobile + minor improvements

* Add status and various things to view

* ACTUALLY FINISH VIEW PAGE

* wow user profile was easy

* Work on profile page

* remove language option

* SEO improvement

* forgot the fucking bracket

* make description more weeb

* add irony

* add better irony
2017-05-25 02:20:30 +02:00

101 lignes
4,3 Kio
HTML
Fichier exécutable

<!DOCTYPE html>
<html lang="{{ call $.T "language_code" }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="torrents, cartel, pantsu, anime, manga, sukebei, nyaapassu, horriblesubs, nyaa, hentai, dlsite">
<meta name="description" content='The (((official))) 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>
<link rel="icon" type="image/png" href="/img/favicon.png?v=3" />
<!-- RSS Feed with Context -->
<link href="{{ block "rss_link" . }}{{ genRouteWithQuery "feed" .URL }}{{end}}" rel="alternate" type="application/rss+xml" title="Nyaa Pantsu - {{block "rsstitle" .}}Last torrents{{end}} RSS Feed" />
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/main.css"}}">
<link rel="stylesheet" id="theme" href="">
<!-- 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>
<script>
function changeTheme(opt) {
var theme = opt.value;
localStorage.setItem("theme", theme);
document.getElementById('theme').href = "/css/" + opt.value;
console.log(theme);
}
function setTheme() {
document.getElementById('theme').href = "/css/" + localStorage.getItem('theme');
}
function toggleMascot(btn) {
var state= btn.getAttribute('value');
if (state == "hide") {
btn.innerHTML = "<i class='fa fa-eye'></i> Mascot";
document.getElementById('mascot').className = 'hide';
btn.setAttribute('value', 'show');
} else {
btn.innerHTML = "<i class='fa fa-eye-slash'></i> Mascot";
document.getElementById('mascot').className = '';
btn.setAttribute('value', 'hide');
}
}
</script>
</head>
<body onload="setTheme();">
<div id="mascot" class="hide-xs"></div>
<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/logo.png" alt="NyaaPantsu"><img class="visible-md" src="/img/logo_s.png"></img></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">Upload</span></a>
<a href="{{ genRouteWithQuery "feed" .URL }}" class="nav-btn"><div class="rss-icon visible-md"></div><span class="hide-md">RSS</span></a>
<a href="{{.URL.Parse "/faq"}}" class="nav-btn"><div class="faq-icon visible-md"></div><span class="hide-md">FAQ</span></a>
<a href="//sukebei.pantsu.cat" class="nav-btn"><div class="fap-icon visible-md"></div><span class="hide-md">Fap</span></a>
</div>
</div>
<div class="h-right">
{{block "badge_user" .}}{{end}}
<div class="h-search hide-xs">
<form role="search" action="/search" method="get">
{{block "search_common" .}}{{end}}
{{block "search_button" .}}{{end}}
</form>
</div>
</div>
</div>
</nav>
<div id="content">
<div class="content container">
{{block "content" .}}{{call $.T "nothing_here"}}{{end}}
</div>
<div class="pagination">
{{ genNav .Navigation .URL 15 }}
</div>
<footer id="footer">
<div class="container footer">
<div class="footer-opt">
<select onchange="changeTheme(this.options[this.selectedIndex])" name="Theme" id="" class="form-input">
<option value="">Default</option>
<option value="g.css">/g/ Anon</option>
<option value="tomorrow.css">Tomorrow</option>
</select>
<button class="form-input btn" onclick="toggleMascot(this)" value="hide"><span class="oi" data-glyph="eye"></span> Mascot</button>
</div>
<span><i>Powered by <a href="#">NyaaPantsu</a></i></span>
</div>
</footer>
</div>
<script type="text/javascript" charset="utf-8" src="{{.URL.Parse "/js/main.js"}}"></script>
</body>
</html>