mirror of
https://codeberg.org/hyperreal/AnnasTorrentMirror
synced 2024-11-25 06:03:42 +01:00
Use torrent-table CSS
This commit is contained in:
parent
4ec691d4e8
commit
b895ca5794
14
main.go
14
main.go
@ -1036,8 +1036,9 @@ func getTemplateContent(name string) string {
|
|||||||
createChart();
|
createChart();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="generate-torrent-list-container">
|
||||||
<h2>Generate a Torrent List</h2>
|
<h2>Generate a Torrent List</h2>
|
||||||
<p>Want to help out with the seeding? You can generate a torrent list of torrents to seed based on size and type preferences. The generated list will be in the format of your choice (XML, TXT, or JSON), and will try to include torrents that currently need the most seeders (i.e. the ones with the fewest seeders).</p>
|
<p>Want to help out with the seeding? You can generate a list of torrents to seed based on size and type preferences. The generated list will be in the format of your choice (XML, TXT, or JSON), and will try to include torrents that currently need the most seeders (i.e. the ones with the fewest seeders). Enter the amount of TB you are able to seed, select the type and format from the drop-down menus, and click the 'generate' button. You will be given a list of torrents in the desired format.</p>
|
||||||
<form action="/generate-torrent-list" method="POST" target="_blank">
|
<form action="/generate-torrent-list" method="POST" target="_blank">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="four columns">
|
<div class="four columns">
|
||||||
@ -1067,10 +1068,11 @@ func getTemplateContent(name string) string {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<h2>{{.TopLevelGroupName}}</h2>
|
<h2>{{.TopLevelGroupName}}</h2>
|
||||||
<h3>{{.GroupName}}</h3>
|
<h3>{{.GroupName}}</h3>
|
||||||
<table>
|
<table class="torrent-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Torrent Name</th>
|
<th>Torrent Name</th>
|
||||||
<th>Date Added</th>
|
<th>Date Added</th>
|
||||||
@ -1108,7 +1110,7 @@ func getTemplateContent(name string) string {
|
|||||||
|
|
||||||
"fullList": header + `
|
"fullList": header + `
|
||||||
<h1>{{.GroupName}} - Full List</h1>
|
<h1>{{.GroupName}} - Full List</h1>
|
||||||
<table>
|
<table class="torrent-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Torrent Name</th>
|
<th>Torrent Name</th>
|
||||||
<th>Date Added</th>
|
<th>Date Added</th>
|
||||||
@ -1143,7 +1145,7 @@ func getTemplateContent(name string) string {
|
|||||||
|
|
||||||
"stats": header + `
|
"stats": header + `
|
||||||
<h1>Torrent Stats: {{.DisplayName}}</h1>
|
<h1>Torrent Stats: {{.DisplayName}}</h1>
|
||||||
<table>
|
<table class="torrent-table">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Property</th>
|
<th>Property</th>
|
||||||
<th>Value</th>
|
<th>Value</th>
|
||||||
@ -1179,10 +1181,10 @@ var suggestedMax = Math.ceil(maxYValue / 10) * 10 + 10;
|
|||||||
new Chart(ctx, {
|
new Chart(ctx, {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: {
|
data: {
|
||||||
labels: seederData.map(d => d.date),
|
labels: seederData.map((d) => d.date),
|
||||||
datasets: [{
|
datasets: [{
|
||||||
label: 'Average Daily Seeders',
|
label: 'Average Daily Seeders',
|
||||||
data: seederData.map(d => d.seeders),
|
data: seederData.map((d) => d.seeders),
|
||||||
borderColor: 'rgb(75, 192, 192)',
|
borderColor: 'rgb(75, 192, 192)',
|
||||||
tension: 0.1
|
tension: 0.1
|
||||||
}]
|
}]
|
||||||
|
Loading…
Reference in New Issue
Block a user