Extraction: Display that video is age-restricted

This commit is contained in:
James Taylor 2019-12-12 22:13:37 -08:00
parent 26f37521ba
commit ecc1ce42b8

View File

@ -74,12 +74,21 @@
grid-column: 1 / span 2; grid-column: 1 / span 2;
min-width: 0; min-width: 0;
} }
.video-info > .is-unlisted{ .video-info > .labels{
background-color: var(--interface-color);
justify-self:start; justify-self:start;
padding-left:2px; list-style: none;
padding-right:2px; padding: 0px;
margin: 5px 0px;
} }
.video-info > .labels:empty{
margin: 0px;
}
.labels > li{
display: inline;
margin-right:5px;
background-color: var(--interface-color);
padding: 2px 5px
}
.video-info > address{ .video-info > address{
grid-column: 1; grid-column: 1;
grid-row: 3; grid-row: 3;
@ -236,9 +245,14 @@
<div class="video-info"> <div class="video-info">
<h2 class="title">{{ title }}</h2> <h2 class="title">{{ title }}</h2>
{% if unlisted %} <ul class="labels">
<span class="is-unlisted">Unlisted</span> {%- if unlisted -%}
{% endif %} <li class="is-unlisted">Unlisted</li>
{%- endif -%}
{%- if age_restricted -%}
<li class="age-restricted">Age-restricted</li>
{%- endif -%}
</ul>
<address>Uploaded by <a href="{{ uploader_channel_url }}">{{ uploader }}</a></address> <address>Uploaded by <a href="{{ uploader_channel_url }}">{{ uploader }}</a></address>
<span class="views">{{ views }} views</span> <span class="views">{{ views }} views</span>