slight design improvement for template
Cette révision appartient à :
Parent
61ba31b337
révision
3fc4236a76
1 fichiers modifiés avec 18 ajouts et 18 suppressions
|
@ -5,37 +5,43 @@
|
||||||
{{with .Torrent}}
|
{{with .Torrent}}
|
||||||
<hr>
|
<hr>
|
||||||
<div class="content" style="margin-bottom: 2em;">
|
<div class="content" style="margin-bottom: 2em;">
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h3 style="word-break:break-all" {{if eq .Status 2}}class="remake" {{end}} {{if eq .Status 3}}class="trusted" {{end}} {{if eq .Status 4}}class="aplus"{{end}}>{{.Name}}</h3>
|
<h3 style="word-break:break-all" {{if eq .Status 2}}class="remake" {{end}} {{if eq .Status 3}}class="trusted" {{end}} {{if eq .Status 4}}class="aplus"{{end}}>{{.Name}}</h3>
|
||||||
<div class="uploaded_by">
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
<div class="row" id="description">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div style="float: left;">
|
||||||
|
<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>Uploaded by <a href="{{$.URL.Parse (printf "/user/%d/-" .UploaderID) }}">{{.UploaderName}}</a></h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div style="float:right;">
|
||||||
<br />
|
<a style="margin: 5px;" aria-label="Magnet Button" href="{{.Magnet}}" type="button" class="btn btn-lg btn-success">
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<a style="margin: 5px;" aria-label="Magnet Button" href="{{.Magnet}}" type="button" class="btn btn-lg btn-success download-btn">
|
|
||||||
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> Download!
|
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> Download!
|
||||||
</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 download-btn">
|
<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> Torrent file
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a style="margin: 5px;" aria-label="Report button" type="button" data-toggle="modal" data-target="#reportModal" class="btn btn-danger btn-lg">
|
<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> 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('Are you sure?')) return false;"><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
</div>
|
||||||
|
<div style="clear: both;"></div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-12">
|
||||||
|
<h4>{{T "description"}}</h4>
|
||||||
|
<div style="word-break:break-all;">{{.Description}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,12 +79,6 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" id="description">
|
|
||||||
<div class="col-md-12">
|
|
||||||
<h4>{{T "description"}}</h4>
|
|
||||||
<div style="word-break:break-all;">{{.Description}}</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row" id="comments">
|
<div class="row" id="comments">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h4>{{T "comments"}}</h4>
|
<h4>{{T "comments"}}</h4>
|
||||||
|
|
Référencer dans un nouveau ticket