* Create podcast as a user [WIP] * Sample css for podcast form * Nicer podcasts suggesting form * Validate podcast feed_url * Validate podcast main_color_hex * Fix podcasts specs * Fix form appearance * Placeholder for podcast main_color_hex * Provide a link to suggest a podcast * Add a checkbox and a role for when a podcast is added by an owner * Prettier checkbox in the podcasts form * Added creator to podcasts * Set the podcast creator * Fix the /pod spec * Added creator information to the internal podcast page * Added cta class to the podcasts submit button * Global notice when a podcast was suggested Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
37 lines
1.5 KiB
Text
37 lines
1.5 KiB
Text
<div id="sidebar-wrapper-left" class="sidebar-wrapper sidebar-wrapper-left">
|
|
<div class="sidebar-bg" id="sidebar-bg-left"></div>
|
|
<div class="side-bar">
|
|
<% if @podcast_index && @podcasts %>
|
|
<div class="widget podcast-pic-widget">
|
|
<header>
|
|
<a href="/pod"><h4>podcasts</h4></a>
|
|
</header>
|
|
<div class="widget-body">
|
|
<% @podcasts.each do |podcast| %>
|
|
<a href="/<%= podcast.slug %>">
|
|
<div class="podcast-pic" id="podcast-pic-<%= podcast.slug %>">
|
|
<img src="<%= cl_image_path(podcast.image_url,
|
|
type: "fetch",
|
|
crop: "fill",
|
|
width: 100,
|
|
height: 100,
|
|
flags: "progressive",
|
|
quality: "auto",
|
|
fetch_format: "auto",
|
|
sign_url: true) %>"
|
|
alt="<%= podcast.title %>" />
|
|
<div class="podcast-name">
|
|
<div class="podcast-name-inner">
|
|
<%= podcast.title %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<% end %>
|
|
<p><%= link_to "Suggest a Podcast", new_podcast_path, class: "suggest-podcast" %></p>
|
|
</div>
|
|
</div>
|
|
<% elsif @podcast %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|