summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-11-19 17:23:01 -0600
committerOmar Roth <omarroth@hotmail.com>2018-11-19 17:23:01 -0600
commitc1a60392ae374aa081a8f1e0b6fb6b0e863f10d6 (patch)
treec2577a6d08e54b24e365ed80a17ef4e65a96f7f7 /src
parentfff817b654aaf4d4d2569f845c588cffb753df2f (diff)
downloadinvidious-c1a60392ae374aa081a8f1e0b6fb6b0e863f10d6.tar.gz
invidious-c1a60392ae374aa081a8f1e0b6fb6b0e863f10d6.tar.bz2
invidious-c1a60392ae374aa081a8f1e0b6fb6b0e863f10d6.zip
Expand description when related videos are disabled
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/watch.ecr4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index 5326faef..31437760 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -82,7 +82,7 @@
</div>
</div>
- <div class="pure-u-1 pure-u-md-3-5">
+ <div class="pure-u-1 <% if preferences && !preferences.related_videos && !plid %>pure-u-md-4-5<% else %>pure-u-md-3-5<% end %>">
<div class="h-box">
<p>
<a href="/channel/<%= video.ucid %>">
@@ -132,6 +132,7 @@
</div>
</div>
</div>
+ <% if preferences && preferences.related_videos || plid %>
<div class="pure-u-1 pure-u-md-1-5">
<% if plid %>
<div id="playlist" class="h-box">
@@ -171,6 +172,7 @@
</div>
<% end %>
</div>
+ <% end %>
</div>
<script>