Allow user to subscribe to playlist (#17)

This commit is contained in:
Dmitry Sandalov
2020-05-17 14:28:00 +03:00
parent 750ef296c6
commit 5d8de5fde2
5 changed files with 71 additions and 9 deletions

View File

@@ -102,7 +102,7 @@
</p>
<% if user %>
<% playlists = PG_DB.query_all("SELECT id,title FROM playlists WHERE author = $1", user.email, as: {String, String}) %>
<% playlists = PG_DB.query_all("SELECT id,title FROM playlists WHERE author = $1 AND id LIKE 'IV%'", user.email, as: {String, String}) %>
<% if !playlists.empty? %>
<form data-onsubmit="return_false" class="pure-form pure-form-stacked" action="/playlist_ajax" method="post">
<div class="pure-control-group">