CSS fixes (#764)
* Revert status indication colors to original nyaa ones (others look washed out) * Move "no files" comment into filelist <div> where it belongs * Fix alignment issue on view page * Make infohash monospace * Make more strings translatable
Cette révision appartient à :
Parent
b191bd3286
révision
dfaabdc4b2
3 fichiers modifiés avec 30 ajouts et 21 suppressions
|
@ -407,9 +407,10 @@ td { border-color: #ccc !important; }
|
|||
td.tr-se { color: #22A243; }
|
||||
td.tr-le { color: #E84C4C; }
|
||||
|
||||
.aplus { background: hsla(200, 100%, 70%, 0.2); }
|
||||
.trusted { background: hsla(100, 100%, 70%, 0.2); }
|
||||
.remake { background: hsla(30, 100%, 70%, 0.2); }
|
||||
/* Original Nyaa colors, do NOT change! */
|
||||
.aplus { background: #60B0F0; }
|
||||
.trusted { background: #98D9A8; }
|
||||
.remake { background: #F0B080; }
|
||||
|
||||
.pagination .active { background: #d5d5d5; color: #222; }
|
||||
.pagination .disabled { color: #d5d5d5; cursor: unset; }
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<br>
|
||||
<table>
|
||||
<tr class="torrent-info-row">
|
||||
<td class="torrent-info-td torrent-info-label">{{ call $.T "category" }}:</td><td class="torrent-info-td torrent-info-data"><a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">{{ if Sukebei}}{{ call $.T (CategoryName .Category .SubCategory) }}{{else}}{{ call $.T (CategoryName .Category .SubCategory) }}{{end}}</a> <br></td>
|
||||
<td class="torrent-info-td torrent-info-label">{{ call $.T "category" }}:</td><td class="torrent-info-td torrent-info-data" style="padding:0"><a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">{{ if Sukebei}}{{ call $.T (CategoryName .Category .SubCategory) }}{{else}}{{ call $.T (CategoryName .Category .SubCategory) }}{{end}}</a> <br></td>
|
||||
<td class="torrent-info-td torrent-info-label">{{ call $.T "date" }}:</td><td class="torrent-info-td date-short">{{.Date}}</td>
|
||||
</tr>
|
||||
<tr class="torrent-info-row">
|
||||
|
@ -54,7 +54,7 @@
|
|||
<td class="torrent-info-td torrent-info-label">{{call $.T "leechers"}}:</td><td class="torrent-info-td">{{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Leechers}}{{end}}</td>
|
||||
</tr>
|
||||
<tr class="torrent-info-row">
|
||||
<td class="torrent-info-td torrent-info-label">{{call $.T "hash"}}:</td><td style="font-size: small;" class="torrent-view-td torrent-info-data">{{.Hash}}</td>
|
||||
<td class="torrent-info-td torrent-info-label">{{call $.T "hash"}}:</td><td style="font-family: monospace;" class="torrent-view-td torrent-info-data">{{.Hash}}</td>
|
||||
<td class="torrent-info-td torrent-info-label">{{call $.T "completed"}}:</td><td class="torrent-info-td">{{if .LastScrape.IsZero}}{{call $.T "unknown"}}{{else}}{{.Completed}}{{end}}</td>
|
||||
</tr>
|
||||
<tr class="torrent-info-row">
|
||||
|
@ -90,26 +90,26 @@
|
|||
{{ if ne .Description ""}}
|
||||
<div id="description-box" class="torrent-info-box">{{.Description}}</div>
|
||||
{{else}}
|
||||
<p>No description provided!</p>
|
||||
<p>{{ call $.T "no_description" }}</p>
|
||||
{{end}}
|
||||
<input type="checkbox" id="show-filelist">
|
||||
<label class="torrent-hr filelist-control" for="show-filelist">{{call $.T "files"}}</label>
|
||||
{{ if gt (len .FileList) 0 }}
|
||||
{{/* how do i concat lol */}}
|
||||
<div class="torrent-info-box" id="filelist">
|
||||
<table>
|
||||
<thead>
|
||||
<th style="width: 70%">{{call $.T "filename"}}</th>
|
||||
<th>{{call $.T "size"}}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ template "make_treeview" (makeTreeViewData $.RootFolder 0 $.T "root") }}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="torrent-info-box" id="filelist">
|
||||
{{ if gt (len .FileList) 0 }}
|
||||
{{/* how do i concat lol */}}
|
||||
<table>
|
||||
<thead>
|
||||
<th style="width: 70%">{{call $.T "filename"}}</th>
|
||||
<th>{{call $.T "size"}}</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ template "make_treeview" (makeTreeViewData $.RootFolder 0 $.T "root") }}
|
||||
</tbody>
|
||||
</table>
|
||||
{{ else }}
|
||||
<p>No files found? That doesn't even make sense!</p>
|
||||
{{end}}
|
||||
<p>{{ call $.T "no_files" }}</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<p class="torrent-hr">{{call $.T "comments"}}</p>
|
||||
{{range $index, $element := .Comments}}
|
||||
|
|
|
@ -543,6 +543,10 @@
|
|||
"id": "description",
|
||||
"translation": "Description"
|
||||
},
|
||||
{
|
||||
"id": "no_description",
|
||||
"translation": "No description provided!"
|
||||
},
|
||||
{
|
||||
"id": "comments",
|
||||
"translation": "Comments"
|
||||
|
@ -691,6 +695,10 @@
|
|||
"id": "files",
|
||||
"translation": "Files"
|
||||
},
|
||||
{
|
||||
"id": "no_files",
|
||||
"translation": "No files found? That doesn't even make sense!"
|
||||
},
|
||||
{
|
||||
"id": "filename",
|
||||
"translation": "Filename"
|
||||
|
|
Référencer dans un nouveau ticket