add delet link
Cette révision appartient à :
Parent
5f7adedab5
révision
e03ab87665
2 fichiers modifiés avec 5 ajouts et 3 suppressions
|
@ -50,8 +50,8 @@ type TorrentReport struct {
|
||||||
Description string `gorm:"column:type"`
|
Description string `gorm:"column:type"`
|
||||||
TorrentID uint
|
TorrentID uint
|
||||||
UserID uint
|
UserID uint
|
||||||
Torrent Torrent `gorm:"ForeignKey:TorrentID;AssociationForeignKey:ID"`
|
Torrent Torrent `gorm:"AssociationForeignKey:TorrentID;ForeignKey:ID"`
|
||||||
User User `gorm:"ForeignKey:UserID;AssociationForeignKey:ID"`
|
User User `gorm:"AssociationForeignKey:UserID;ForeignKey:ID"`
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We need a JSON object instead of a Gorm structure because magnet URLs are
|
/* We need a JSON object instead of a Gorm structure because magnet URLs are
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
<table>
|
||||||
{{ range .Torrents}}
|
{{ range .Torrents}}
|
||||||
{{ .ID }} {{ .Description }} {{ .User }}
|
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.Torrent.ID}}">{{ .Torrent.Name }}</a></td><td>{{.User}}</td><td>{{.Description}}</td><td><a href="{{ genRoute "mod_tdelete" }}?id={{ .Torrent.ID }}">Delete</a></td></tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
</table>
|
||||||
</html>
|
</html>
|
||||||
|
|
Référencer dans un nouveau ticket