Add style for Tags
This commit is contained in:
parent
8ed26b7b87
commit
dda3b3dbec
2 changed files with 9 additions and 3 deletions
|
@ -4,3 +4,9 @@ body {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
background-color: lightgrey;
|
||||||
|
padding: 3px 7px;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@ Views: <b>{{ video.views }}</b> Likes: <b>{{ video.likes }}</b> Dislikes: <b>{{
|
||||||
<td><b>Tags</b></td>
|
<td><b>Tags</b></td>
|
||||||
<td>
|
<td>
|
||||||
{% for tag in video.tags %}
|
{% for tag in video.tags %}
|
||||||
{{ tag }}
|
<span class="tag">{{ tag }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue