Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Replace text by translation string

Cette révision appartient à :
akuma06 2017-05-14 15:09:44 +02:00 révisé par GitHub
Parent 5f340082c9
révision b84cf99534

Voir le fichier

@ -17,24 +17,24 @@
<div style="float: left;"> <div style="float: left;">
<div class="uploaded_by"> <div class="uploaded_by">
<img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}"> <img style="float:left; margin-right: 1em;" src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}">
<h4>Uploaded by <a href="{{$.URL.Parse (printf "/user/%d/-" .UploaderID) }}">{{.UploaderName}}</a></h4> <h4>{{ T "uploaded_by" }} <a href="{{$.URL.Parse (printf "/user/%d/-" .UploaderID) }}">{{.UploaderName}}</a></h4>
</div> </div>
</div> </div>
<div style="float:right;"> <div style="float:right;">
<a style="margin: 5px;" aria-label="Magnet Button" href="{{.Magnet}}" type="button" class="btn btn-lg btn-success"> <a style="margin: 5px;" aria-label="Magnet Button" href="{{.Magnet}}" type="button" class="btn btn-lg btn-success">
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> Download! <span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> {{ T "download_btn" }}
</a> </a>
{{if ne .TorrentLink ""}} {{if ne .TorrentLink ""}}
<a style="margin: 5px;" aria-label="Torrent file" href="{{.TorrentLink}}" type="button" class="btn btn-lg btn-success"> <a style="margin: 5px;" aria-label="Torrent file" href="{{.TorrentLink}}" type="button" class="btn btn-lg btn-success">
<span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> Torrent file <span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> {{ T "torrent_file" }}
</a> </a>
{{end}} {{end}}
<a style="margin: 5px;" aria-label="Report button" data-toggle="modal" data-target="#reportModal" class="btn btn-danger btn-sm"> <a style="margin: 5px;" aria-label="Report button" data-toggle="modal" data-target="#reportModal" class="btn btn-danger btn-sm">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Report! <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> {{ T "report" }}
</a> </a>
{{ if HasAdmin $.User}} {{ if HasAdmin $.User}}
<a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="btn btn-danger btn-lg" onclick="if (!confirm('Are you sure?')) return false;"><i class="glyphicon glyphicon-trash"></i></a> <a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="btn btn-danger btn-lg" onclick="if (!confirm('{{ T "are_you_sure" }}')) return false;"><i class="glyphicon glyphicon-trash"></i></a>
<a href="{{ genRoute "mod_tedit" }}?id={{ .ID }}" class="btn btn-warning btn-lg"><i class="glyphicon glyphicon-pencil"></i></a> <a href="{{ genRoute "mod_tedit" }}?id={{ .ID }}" class="btn btn-warning btn-lg"><i class="glyphicon glyphicon-pencil"></i></a>
{{end}} {{end}}
</div> </div>
@ -130,17 +130,17 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button> <button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Report Torrent #{{.Torrent.ID}}</h4> <h4 class="modal-title">{{ T "report_torrent_number" (print .Torrent.ID) }}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<b>Report type:</b> <b>{{ T "report_type" }}:</b>
<form method="post" action="/report/{{.Torrent.ID}}"> <form method="post" action="/report/{{.Torrent.ID}}">
<input type="radio" name="report_type" value="illegal" required> Illegal content<br /> <input type="radio" name="report_type" value="illegal" required> {{ T "illegal_content" }}<br />
<input type="radio" name="report_type" value="spam" required> Spam / Garbage<br /> <input type="radio" name="report_type" value="spam" required> {{ T "spam_garbage" }}<br />
<input type="radio" name="report_type" value="wrongcat" required> Wrong category<br /> <input type="radio" name="report_type" value="wrongcat" required> {{ T "wrong_category" }}<br />
<input type="radio" name="report_type" value="dup" required> Duplicate / Deprecated<br /> <input type="radio" name="report_type" value="dup" required> {{ T "duplicate_deprecated" }}<br />
{{block "captcha" .}}{{end}} {{block "captcha" .}}{{end}}
<button type="submit" class="btn btn-default">Report!</button> <button type="submit" class="btn btn-default">{{ T "report_btn" }}</button>
</form> <br /> </form> <br />
</div> </div>
<div class="modal-footer"> <div class="modal-footer">