Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Extract strings from home and index

Cette révision appartient à :
ElegantMonkey 2017-05-08 14:54:31 -03:00
Parent 5860cf1d79
révision 3da6612723
3 fichiers modifiés avec 65 ajouts et 13 suppressions

Voir le fichier

@ -122,5 +122,57 @@
{ {
"id":"see_more_torrents_from", "id":"see_more_torrents_from",
"translation": "See more torrents from %s " "translation": "See more torrents from %s "
},
{
"id":"category",
"translation": "Category"
},
{
"id": "name",
"translation": "Name"
},
{
"id": "date",
"translation": "Date"
},
{
"id": "size",
"translation": "Size"
},
{
"id": "links",
"translation": "Links"
},
{
"id": "home",
"translation": "Home"
},
{
"id": "error_404",
"translation": "Error 404"
},
{
"id": "toggle_navigation",
"translation": "Toggle navigation"
},
{
"id": "upload",
"translation": "Upload"
},
{
"id": "faq",
"translation": "FAQ"
},
{
"id": "fap",
"translation": "Fap"
},
{
"id": "advanced_search",
"translation": "Advanced Search"
},
{
"id": "nothing_here",
"translation": "Nothing Here."
} }
] ]

Voir le fichier

@ -1,4 +1,4 @@
{{define "title"}}Home{{end}} {{define "title"}}{{T "home"}}{{end}}
{{define "contclass"}}cont-home{{end}} {{define "contclass"}}cont-home{{end}}
{{define "content"}} {{define "content"}}
<div class="blockBody"> <div class="blockBody">
@ -11,11 +11,11 @@
<div class="table-responsive"> <div class="table-responsive">
<table class="table custom-table-hover"> <table class="table custom-table-hover">
<tr> <tr>
<th>Category</th> <th>{{T "category"}}</th>
<th>Name</th> <th>{{T "name"}}</th>
<th>Date</th> <th>{{T "date"}}</th>
<th>Size</th> <th>{{T "size"}}</th>
<th>Links</th> <th>{{T "links"}}</th>
</tr> </tr>
{{ range .ListTorrents}} {{ range .ListTorrents}}
<tr class="torrent-info <tr class="torrent-info

Voir le fichier

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <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 --> <!-- 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" .}}Error 404{{end}}</title> <title>Nyaa Pantsu - {{block "title" .}}{{ T "error_404" }}{{end}}</title>
<link rel="icon" type="image/png" href="/img/favicon.png?v=3" /> <link rel="icon" type="image/png" href="/img/favicon.png?v=3" />
<!-- RSS Feed with Context --> <!-- RSS Feed with Context -->
@ -33,7 +33,7 @@
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">{{ T "toggle_navigation" }}</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
@ -42,10 +42,10 @@
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="{{.URL.Parse "/upload"}}">Upload</a/></li> <li><a href="{{.URL.Parse "/upload"}}">{{T "upload"}}</a/></li>
<li><a href="{{.URL.Parse "/faq"}}">FAQ</a></li> <li><a href="{{.URL.Parse "/faq"}}">{{T "faq"}}</a></li>
<li><a href="{{ genRouteWithQuery "feed" .URL }}">RSS</a></li> <li><a href="{{ genRouteWithQuery "feed" .URL }}">RSS</a></li>
<li><a href="https://sukebei.pantsu.cat">Fap</a></li> <li><a href="https://sukebei.pantsu.cat">{{T "fap"}}</a></li>
<li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li> <li><a href="irc://irc.rizon.net/nyaapantsu">IRC</a></li>
</ul> </ul>
@ -71,7 +71,7 @@
<div class="container {{block "contclass" .}}generic{{end}}" id="container"> <div class="container {{block "contclass" .}}generic{{end}}" id="container">
{{if not .Search.HideAdvancedSearch}} {{if not .Search.HideAdvancedSearch}}
<div class="blockBody" style="text-align:center"> <div class="blockBody" style="text-align:center">
<font size="4.5">Advanced Search</font><br /> <font size="4.5">{{T "advanced_search"}}</font><br />
<form class="navbar-form" role="search" action="/search" method="get"> <form class="navbar-form" role="search" action="/search" method="get">
<div class="form-group"> <div class="form-group">
{{block "search_common" .}}{{end}} {{block "search_common" .}}{{end}}
@ -84,7 +84,7 @@
<div style="margin:0.5em"></div> <div style="margin:0.5em"></div>
{{end}} {{end}}
{{block "content" .}}Nothing Here.{{end}} {{block "content" .}}{{T "nothing_here"}}{{end}}
</div> </div>
<!-- bottom padding --> <!-- bottom padding -->