From a8faad6573e5e0de312c852c742477b1e62e6690 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 21 May 2017 13:58:59 -0700 Subject: [PATCH] Improve channel management page Select multiple videos with ctrl and shift Simplify code to hide / show action buttons --- static/common.css | 4 + templates/channel.html | 250 +++++++++++++++++++++++++++++------------ 2 files changed, 180 insertions(+), 74 deletions(-) diff --git a/static/common.css b/static/common.css index c25663e..75f0737 100644 --- a/static/common.css +++ b/static/common.css @@ -24,6 +24,10 @@ body { background-color: rgba(0, 0, 0, 0.2); } +.hidden +{ + display: none; +} #content_body { flex: 0 0 auto; diff --git a/templates/channel.html b/templates/channel.html index b6a1ef0..5292a4b 100644 --- a/templates/channel.html +++ b/templates/channel.html @@ -11,17 +11,13 @@ #content_body { display: flex; - flex-grow: 1; - flex-shrink: 0; - flex-basis: auto; flex-direction: column; width: 1440px; - margin: auto; + margin-left: auto; + margin-right: auto; max-width: 100%; } -.video_card_downloaded, -.video_card_ignored, -.video_card_pending +.video_card { position: relative; margin: 8px; @@ -29,6 +25,10 @@ border-radius: 4px; border: 1px solid #000; } +.video_card:hover +{ + box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25); +} .video_card_pending { background-color: #ffffaa; @@ -37,6 +37,10 @@ { background-color: #ffc886; } +.video_card_selected +{ + background-color: #13f4ff !important; +} .video_card_downloaded { background-color: #aaffaa; @@ -61,10 +65,6 @@ display: none; flex-direction: column; } -.refresh_button -{ - width: 10%; -} @@ -72,98 +72,200 @@ {{header.make_header()}}
- - + {% if channel is not none %} + + All Pending Ignored Downloaded - {{videos|length}} items - {% for video in videos %} -
All + Pending + Ignored + Downloaded {% endif %} - > - {{video['_published_str']}} - {{video['title']}} -
- {% if video['download'] == "downloaded" %} - - - {% elif video['download'] == "ignored" %} - - - {% else %} - - + {{videos|length}} items + +
+ {% for video in videos %} +
+ {{video['_published_str']}} - {{video['title']}} + {% if channel is none %} + (Chan) {% endif %} +
+ + + + + +
+ {% endfor %}
- {% endfor %} +