Add website links
Cette révision appartient à :
Parent
c54b60594b
révision
d0069b6249
2 fichiers modifiés avec 11 ajouts et 1 suppressions
|
@ -64,6 +64,9 @@ type TorrentsJson struct {
|
|||
Comments []CommentsJson `json:"comments"`
|
||||
Sub_Category string `json:"sub_category"`
|
||||
Category string `json:"category"`
|
||||
Downloads int `json:"downloads"`
|
||||
UploaderId uint `json:"uploader_id"`
|
||||
WebsiteLink template.URL `json:"website_link"`
|
||||
Magnet template.URL `json:"magnet"`
|
||||
}
|
||||
|
||||
|
@ -89,6 +92,9 @@ func (t *Torrents) ToJson() TorrentsJson {
|
|||
Comments: commentsJson,
|
||||
Sub_Category: strconv.Itoa(t.Sub_Category),
|
||||
Category: strconv.Itoa(t.Category),
|
||||
Downloads: t.Downloads,
|
||||
UploaderId: t.UploaderId,
|
||||
WebsiteLink: util.Safe(t.WebsiteLink),
|
||||
Magnet: util.Safe(magnet)}
|
||||
|
||||
return res
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
<td>{{T "size"}}</td>
|
||||
<td>{{.Filesize}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{T "Link"}}</td>
|
||||
<td><a href="{{.WebsiteLink}}">{{.WebsiteLink}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{T "links"}}</td>
|
||||
<td>
|
||||
|
@ -33,7 +37,7 @@
|
|||
<span class="glyphicon glyphicon-magnet" aria-hidden="true"></span> Download!
|
||||
</a>
|
||||
<a style="padding-left: 0.5em"></a>
|
||||
<a aria-label="Torrent file" href="http://anicache.com/torrent/{{.Hash}}.torrent" type="button" class="btn btn-success">
|
||||
<a aria-label="Torrent file" href="http://anicache.com/torrent/{{.Hash}}.torrent" type="button" class="btn btn-success download-btn">
|
||||
<span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> Torrent file
|
||||
</a>
|
||||
</td>
|
||||
|
|
Référencer dans un nouveau ticket