diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-02-16 23:41:52 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-02-16 23:41:52 -0800 |
commit | 3905e7e64059b45479894ba1fdfb0ef9cef64475 (patch) | |
tree | 4c5dbbfd204d0351cac8412cc87a65fea49c1a52 /yt_channel_items_template.html | |
parent | 24642455d0dc5841ddec99f456598c4f763c1e8a (diff) | |
download | yt-local-3905e7e64059b45479894ba1fdfb0ef9cef64475.tar.lz yt-local-3905e7e64059b45479894ba1fdfb0ef9cef64475.tar.xz yt-local-3905e7e64059b45479894ba1fdfb0ef9cef64475.zip |
basic subscriptions system
Diffstat (limited to 'yt_channel_items_template.html')
-rw-r--r-- | yt_channel_items_template.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/yt_channel_items_template.html b/yt_channel_items_template.html index 1a8551d..93c4b0a 100644 --- a/yt_channel_items_template.html +++ b/yt_channel_items_template.html @@ -18,12 +18,15 @@ height:200px; width:200px; } - main .title{ + .metadata{ grid-row:1; - grid-column:2; + grid-column:2; + margin-left: 10px; + display:grid; + align-content: start; + grid-row-gap:10px; } main .channel-tabs{ - grid-row:2; grid-column: 1 / span 2; display:grid; @@ -48,7 +51,6 @@ font-weight:bold; } .item-grid{ - grid-row:4; grid-column: 1 / span 2; } .item-list{ @@ -68,7 +70,15 @@ $header <main> <img class="avatar" src="$avatar"> - <h2 class="title">$channel_title</h2> + <div class="metadata"> + <h2 class="title">$channel_title</h2> + <form method="POST" action="/youtube.com/subscriptions" class="subscribe"> + <input type="submit" value="Subscribe"> + <input type="hidden" name="channel_id" value="$channel_id"> + <input type="hidden" name="channel_name" value="$channel_title"> + <input type="hidden" name="action" value="subscribe"> + </form> + </div> <nav class="channel-tabs"> $channel_tabs </nav> |