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-right: 5px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
background-color: lightgrey;
|
||||
padding: 3px 7px;
|
||||
display: inline;
|
||||
}
|
||||
|
|
|
@ -62,9 +62,9 @@ Views: <b>{{ video.views }}</b> Likes: <b>{{ video.likes }}</b> Dislikes: <b>{{
|
|||
<tr>
|
||||
<td><b>Tags</b></td>
|
||||
<td>
|
||||
{% for tag in video.tags %}
|
||||
{{ tag }}
|
||||
{% endfor %}
|
||||
{% for tag in video.tags %}
|
||||
<span class="tag">{{ tag }}</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue