révision
9b459b8e6b
6 fichiers modifiés avec 10 ajouts et 10 suppressions
|
@ -7,6 +7,7 @@
|
||||||
<img src="https://www.gravatar.com/avatar/{{ .MD5 }}?s=50" class="img-circle special-img"> {{ .Username }} <b class="caret"></b></a>
|
<img src="https://www.gravatar.com/avatar/{{ .MD5 }}?s=50" class="img-circle special-img"> {{ .Username }} <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}"><i class="fa fa-cog"></i> Profile</a></li>
|
<li><a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}"><i class="fa fa-cog"></i> Profile</a></li>
|
||||||
|
{{if HasAdmin . }}<li><a href="{{ genRoute "mod_index" }}"><i class="fa fa-cog"></i> {{T "moderation"}}</a></li>{{end}}
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="{{ genRoute "user_logout" }}"><i class="fa fa-sign-out"></i> {{ T "sign_out"}}</a></li>
|
<li><a href="{{ genRoute "user_logout" }}"><i class="fa fa-sign-out"></i> {{ T "sign_out"}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{define "title"}}Comments List{{end}}
|
{{define "title"}}Comments List{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .Comments}}
|
{{ range .Comments}}
|
||||||
|
|
||||||
<tr><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .Content }}</a></td><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .User.Username }}</a></td>
|
<tr><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .Content }}</a></td><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .User.Username }}</a></td>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{define "title"}}Moderation Overview{{end}}
|
{{define "title"}}Moderation Overview{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<h3 id="torrents">Last Torrents</h3>
|
<h3 id="torrents">Last Torrents</h3>
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .Torrents}}
|
{{ range .Torrents}}
|
||||||
|
|
||||||
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.ID}}">{{ .Name }}</a></td><td><a href="{{ genRoute "mod_tlist" }}?userid={{.UploaderID}}">{{ .UploaderID }}</a></td>
|
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.ID}}">{{ .Name }}</a></td><td><a href="{{ genRoute "mod_tlist" }}?userid={{.UploaderID}}">{{ .UploaderID }}</a></td>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<h3 id="torrents">Last Torrents Report</h3>
|
<h3 id="torrents">Last Torrents Report</h3>
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .TorrentReports}}
|
{{ range .TorrentReports}}
|
||||||
|
|
||||||
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.Torrent.ID}}">{{ .Torrent.Name }}</a></td><td>{{.User.Username}}</td><td>{{.Description}}</td>
|
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.Torrent.ID}}">{{ .Torrent.Name }}</a></td><td>{{.User.Username}}</td><td>{{.Description}}</td>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<h3 id="users">Last Users</h3>
|
<h3 id="users">Last Users</h3>
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .Users}}
|
{{ range .Users}}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<h3 id="comments">Last Comments</h3>
|
<h3 id="comments">Last Comments</h3>
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .Comments}}
|
{{ range .Comments}}
|
||||||
|
|
||||||
<tr><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .Content }}</a></td><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .User.Username }}</a></td>
|
<tr><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .Content }}</a></td><td><a href="{{ genRoute "mod_cedit" }}?id={{.ID}}">{{ .User.Username }}</a></td>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{{define "title"}}Torrents Report{{end}}
|
{{define "title"}}Torrents Report{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<table>
|
<table class="table">
|
||||||
<table>
|
|
||||||
{{ range .Torrents}}
|
{{ range .Torrents}}
|
||||||
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.Torrent.ID}}">{{ .Torrent.Name }}</a></td><td>{{.User.Username}}</td><td>{{.Description}}</td><td><a href="{{ genRoute "mod_tdelete" }}?id={{ .Torrent.ID }}">Delete</a></td></tr>
|
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.Torrent.ID}}">{{ .Torrent.Name }}</a></td><td>{{.User.Username}}</td><td>{{.Description}}</td><td><a href="{{ genRoute "mod_tdelete" }}?id={{ .Torrent.ID }}">Delete</a></td></tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{define "title"}}Torrents List{{end}}
|
{{define "title"}}Torrents List{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .Torrents}}
|
{{ range .Torrents}}
|
||||||
|
|
||||||
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.ID}}">{{ .Name }}</a></td><td><a href="{{ genRoute "mod_tlist" }}?userid={{.UploaderID}}">{{ .UploaderID }}</a></td>
|
<tr><td><a href="{{ genRoute "mod_tedit" }}?id={{.ID}}">{{ .Name }}</a></td><td><a href="{{ genRoute "mod_tlist" }}?userid={{.UploaderID}}">{{ .UploaderID }}</a></td>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{define "title"}}Users List{{end}}
|
{{define "title"}}Users List{{end}}
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<table>
|
<table class="table">
|
||||||
{{ range .Users}}
|
{{ range .Users}}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Référencer dans un nouveau ticket