Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

add clickable comment targets

Cette révision appartient à :
Andrew Zhao 2017-05-07 21:49:00 -07:00
Parent 4ef8ac4b6b
révision 915335bc90
3 fichiers modifiés avec 17 ajouts et 4 suppressions

Voir le fichier

@ -187,3 +187,9 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-typ
.navbar {
border-radius: 0px;
}
:target {
background-color: #585b4f;
}

Voir le fichier

@ -191,4 +191,8 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-typ
.navbar-nav>li>a.profile-image {
padding-top: 10px;
padding-bottom: 10px;
}
}
:target {
background-color: #e5eecc;
}

Voir le fichier

@ -47,9 +47,12 @@
<td>Comments</td>
<td></td>
</tr>
{{ range .Comments }}
<tr class="comment-row">
<td>{{.Username}}</td>
{{ range $index, $element := .Comments }}
<tr class="comment-row" id="comment_{{$index}}">
<td>
<a href="#comment_{{$index}}">{{$index}}</a>
{{.Username}}
</td>
<td>{{.Content}}</td>
</tr>
{{end}}