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/layouts/index_admin.jet.html
kilo 941aceb9b0 Small changes (#1653)
* Update tomorrow.css

* Update main.css

* Update main.css

* fix invalid date of torrents in user profile

* modify fancy js to work with new form

* enhance fancy JS to adapt to every form

* Update index.jet.html

* Update index_admin.jet.html

* Update torrentlist.jet.html

* what the fuck

* ditto

* forgot to remove the debug alert
2017-10-12 12:22:44 +10:00

48 lignes
1,3 Kio
HTML

{* We extend the base template *}
{{ extends "partials/base" }}
{{import "partials/helpers/search"}}
{* We apply the menu in the base template *}
{{ block menu()}}
{{include "partials/menu/site"}}
{{end}}
{* We used to add the class content for admin *}
{{ block contclass()}}admin-content{{end}}
{* We add the mod panel title and the title block *}
{{block titleBase()}} Moderation Panel - {{block title()}}{{end}}
{{end}}
{* We add the mod nav and the body block *}
{{ block content_body_base()}}
{{include "partials/menu/admin"}}
{{ block content_body()}}
{{end}}
{{end}}
{{block footer_js()}}
<script type="text/javascript">
var deleteButtons = document.querySelectorAll("button.form-input.btn-red")
for(var i = 0; i < deleteButtons.length; i++) {
deleteButtons[i].addEventListener("click", function (e) {
e.preventDefault()
var form = this.parentNode
var formInputs = form.querySelectorAll('input')
var query = ""
for(var x = 0; x < formInputs.length; x ++) {
if(query != "") query = query + "&"
query = query + formInputs[x].name + "=" + formInputs[x].value
}
Query.Post(form.action, query, function(data) {})
this.parentNode.parentNode.parentNode.className = this.parentNode.parentNode.className + " hidden"
this.innerText = "Deleted"
this.disabled = true
})
}
</script>
{{end}}