Use torrent-table CSS

This commit is contained in:
Jeffrey Serio 2024-11-21 11:17:53 -06:00
parent 4ec691d4e8
commit b895ca5794

14
main.go
View File

@ -1036,8 +1036,9 @@ func getTemplateContent(name string) string {
createChart();
</script>
<div class="generate-torrent-list-container">
<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">
<div class="row">
<div class="four columns">
@ -1067,10 +1068,11 @@ func getTemplateContent(name string) string {
</div>
</div>
</form>
</div>
{{range .}}
<h2>{{.TopLevelGroupName}}</h2>
<h3>{{.GroupName}}</h3>
<table>
<table class="torrent-table">
<tr>
<th>Torrent Name</th>
<th>Date Added</th>
@ -1108,7 +1110,7 @@ func getTemplateContent(name string) string {
"fullList": header + `
<h1>{{.GroupName}} - Full List</h1>
<table>
<table class="torrent-table">
<tr>
<th>Torrent Name</th>
<th>Date Added</th>
@ -1143,7 +1145,7 @@ func getTemplateContent(name string) string {
"stats": header + `
<h1>Torrent Stats: {{.DisplayName}}</h1>
<table>
<table class="torrent-table">
<tr>
<th>Property</th>
<th>Value</th>
@ -1179,10 +1181,10 @@ var suggestedMax = Math.ceil(maxYValue / 10) * 10 + 10;
new Chart(ctx, {
type: 'line',
data: {
labels: seederData.map(d => d.date),
labels: seederData.map((d) => d.date),
datasets: [{
label: 'Average Daily Seeders',
data: seederData.map(d => d.seeders),
data: seederData.map((d) => d.seeders),
borderColor: 'rgb(75, 192, 192)',
tension: 0.1
}]