Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Show unknown file size based on current language (fixes #650)

Cette révision appartient à :
GooNyaa 2017-05-20 18:32:41 +03:00
Parent fce778c6f2
révision 47ea6ae4cb
3 fichiers modifiés avec 21 ajouts et 3 suppressions

Voir le fichier

@ -33,7 +33,13 @@
</a> </a>
</td> </td>
<td class="nowrap date-short">{{.Date}}</td> <td class="nowrap date-short">{{.Date}}</td>
<td class="nowrap">{{.Filesize}}</td> <td class="nowrap">
{{if ne .Filesize "Unknown"}}
{{.Filesize}}
{{else}}
{{T "unknown"}}
{{end}}
</td>
<td> <td>
<a href="{{.Magnet}}" title="{{ T "magnet_link" }}"> <a href="{{.Magnet}}" title="{{ T "magnet_link" }}">
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> <span class="glyphicon glyphicon-magnet" aria-hidden="true"></span>

Voir le fichier

@ -73,7 +73,13 @@ Your browser does not support the audio element.
</td> </td>
{{end}} {{end}}
<td class="hidden-xs nowrap date-short">{{.Date}}</td> <td class="hidden-xs nowrap date-short">{{.Date}}</td>
<td class="hidden-xs nowrap">{{.Filesize}}</td> <td class="hidden-xs nowrap">
{{if ne .Filesize "Unknown"}}
{{.Filesize}}
{{else}}
{{T "unknown"}}
{{end}}
</td>
<td class="hidden-xs nowrap"> <td class="hidden-xs nowrap">
<a href="{{.Magnet}}" title="Magnet link"> <a href="{{.Magnet}}" title="Magnet link">
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> <span class="glyphicon glyphicon-magnet" aria-hidden="true"></span>

Voir le fichier

@ -65,7 +65,13 @@
<p class="date-full">{{.Date}}</p> <p class="date-full">{{.Date}}</p>
<hr> <hr>
<h4>{{T "size"}}</h4> <h4>{{T "size"}}</h4>
<p>{{.Filesize}}</p> <p>
{{if ne .Filesize "Unknown"}}
{{.Filesize}}
{{else}}
{{T "unknown"}}
{{end}}
</p>
<hr> <hr>
{{if ne .WebsiteLink ""}} {{if ne .WebsiteLink ""}}
<h4>{{T "link"}}</h4> <h4>{{T "link"}}</h4>