Merge pull request #73 from sfan5/style
Minor design changes / Styling
Cette révision appartient à :
révision
173128b3b5
4 fichiers modifiés avec 13 ajouts et 11 suppressions
|
@ -35,10 +35,6 @@ body {
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
/*.blockBody {
|
||||
padding: 1rem;
|
||||
}*/
|
||||
|
||||
.torrentNav {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -76,7 +72,7 @@ a {
|
|||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.torrent-info .hash {
|
||||
.torrent-hash {
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
|
@ -90,6 +86,14 @@ a {
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.table > tbody > tr > th, .table > tbody > tr > td {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
tr.torrent-info td.date {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.custom-table-hover > tbody > tr:hover {
|
||||
opacity: 0.82;
|
||||
}
|
||||
|
@ -99,4 +103,3 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:first-of-ty
|
|||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(3){width:15%;}
|
||||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:nth-of-type(4){width:19%;}
|
||||
div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-type{width:6%;}
|
||||
tr.torrent-info td.hash,tr.torrent-info td.date{word-wrap:break-word;}
|
||||
|
|
|
@ -28,7 +28,7 @@ type Categories struct {
|
|||
|
||||
type Sub_Categories struct {
|
||||
Id int `gorm:"column:sub_category_id"`
|
||||
Name string `gorm:"column:Sub_category_name"`
|
||||
Name string `gorm:"column:sub_category_name"`
|
||||
Parent_id int `gorm:"column:parent_id"`
|
||||
Torrents []Torrents `gorm:"ForeignKey:sub_category_id;AssociationForeignKey:sub_category_id"`
|
||||
}
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
{{if eq .Status 2}}remake{{end}}
|
||||
{{if eq .Status 3}}trusted{{end}}
|
||||
{{if eq .Status 4}}aplus{{end}}">
|
||||
<td>
|
||||
<!-- forced width because the <td> gets bigger randomly otherwise -->
|
||||
<td style="width:80px">
|
||||
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category.Id .Sub_Category.Id) }}">
|
||||
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .Sub_Category.Id) }}">
|
||||
</a>
|
||||
|
|
|
@ -7,14 +7,12 @@
|
|||
<tr {{if eq .Status 2}}class="remake"{{end}}
|
||||
{{if eq .Status 3}}class="trusted"{{end}}
|
||||
{{if eq .Status 4}}class="aplus"{{end}}>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>{{.Name}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hash</td>
|
||||
<td>{{.Hash}}</td>
|
||||
<td class="torrent-hash">{{.Hash}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date</td>
|
||||
|
|
Référencer dans un nouveau ticket