a bit of cleanup

This commit is contained in:
overflowerror 2021-01-07 23:51:13 +01:00
parent afec700b7e
commit 85c8dfe118
3 changed files with 9 additions and 1 deletions

View file

@ -124,4 +124,8 @@
font-size: 1vw; font-size: 1vw;
top: 69%; top: 69%;
right: 10%; right: 10%;
}
.no-content {
margin-left: 3%;
} }

View file

@ -17,7 +17,7 @@
<div class="container"> <div class="container">
<nav class="navbar navbar-expand-lg navbar-light bg-light shadow-5-strong"> <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-5-strong">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="#">MyTube</a> <a class="navbar-brand" href="/">MyTube</a>
<button <button
class="navbar-toggler" class="navbar-toggler"

View file

@ -45,6 +45,10 @@
<div class="grid-container"> <div class="grid-container">
<script>var autoupdate = [];</script> <script>var autoupdate = [];</script>
<div class="row"> <div class="row">
{% if videos | length == 0 %}
<div class="no-content">No videos yet. Click <a href="{{ path("app_upload") }}">here</a> to add some.
</div>
{% endif %}
{% for video in videos %} {% for video in videos %}
{% set disabled = video.state != constant("App\\Entity\\Video::DONE") %} {% set disabled = video.state != constant("App\\Entity\\Video::DONE") %}
<div class="video-tile col-md-4" id="video-{{ video.customId }}"> <div class="video-tile col-md-4" id="video-{{ video.customId }}">