Remove unused podcast episode related code (#12642)
This commit is contained in:
parent
8301b9f667
commit
740e51fa2b
3 changed files with 0 additions and 153 deletions
|
|
@ -21,15 +21,4 @@ class PodcastEpisodesController < ApplicationController
|
|||
|
||||
render template: "podcast_episodes/index"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def podcast_episode_params
|
||||
params.require(:podcast_episode).permit(:title,
|
||||
:body,
|
||||
:image,
|
||||
:social_image,
|
||||
:remote_social_image_url,
|
||||
:quote)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,62 +0,0 @@
|
|||
<div class="container">
|
||||
|
||||
<%= form_for(@podcast_episode) do |f| %>
|
||||
<% if @podcast_episode.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@podcast_episode.errors.count, "error") %> prohibited this article from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @podcast_episode.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :title %><br>
|
||||
<%= f.text_field :title, autocomplete: "off" %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :quote %><br>
|
||||
<%= f.text_field :quote, autocomplete: "off" %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :remote_image_url, "Paste Image URL" %><br>
|
||||
<%= f.text_field :remote_image_url, autocomplete: "off" %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :image, "Or Upload Image" %><br>
|
||||
<%= f.file_field :image %>
|
||||
</div>
|
||||
<% if @podcast_episode.image %>
|
||||
<div class="field" style="text-align:center;margin-top:30px;">
|
||||
<%= image_tag(@podcast_episode.image_url, width: 398, style: "border-radius:500px;height:auto;max-width:70%;", alt: "Podcast #{@podcast_episode.title} logo") %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="field">
|
||||
<%= f.label :remote_social_image_url, "Paste Social Media Image URL" %><br>
|
||||
<%= f.text_field :remote_social_image_url, autocomplete: "off" %>
|
||||
</div>
|
||||
<div class="field">
|
||||
<%= f.label :social_image, "Or Upload Image" %><br>
|
||||
<%= f.file_field :social_image %>
|
||||
</div>
|
||||
<% if @podcast_episode.social_image %>
|
||||
<div class="field" style="text-align:center;margin-top:30px;">
|
||||
<%= image_tag(@podcast_episode.social_image_url, width: 398, style: "height:auto;max-width:70%;", alt: "Podcast #{@podcast_episode.title} social media") %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<br />
|
||||
<%= f.text_area :body %>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit "Save Article" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render "articles/tinymce" %>
|
||||
|
||||
</div>
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
body{
|
||||
background-color:#fff;
|
||||
color:#0f0f0f;
|
||||
font-family: Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif;
|
||||
font-size:21px;
|
||||
padding:0px 5px;
|
||||
}
|
||||
p{
|
||||
line-height: 32px;
|
||||
margin:20px 0px 25px;
|
||||
}
|
||||
h2{
|
||||
font-size:1.72em;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
||||
font-weight:400;
|
||||
}
|
||||
h3{
|
||||
font-size:1.32em;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
||||
font-weight:400;
|
||||
}
|
||||
|
||||
|
||||
.mce-content-body .mce-reset{
|
||||
margin:0;
|
||||
padding:0;
|
||||
border:0;
|
||||
outline:0;
|
||||
vertical-align:top;
|
||||
background:transparent;
|
||||
text-decoration:none;
|
||||
color:black;
|
||||
font-family:Arial;
|
||||
text-shadow:none;
|
||||
float:none;
|
||||
position:static;
|
||||
width:auto;
|
||||
height:auto;
|
||||
white-space:nowrap;
|
||||
cursor:inherit;
|
||||
line-height:normal;
|
||||
font-weight:normal;
|
||||
text-align:left;
|
||||
-webkit-tap-highlight-color:transparent;
|
||||
-moz-box-sizing:content-box;
|
||||
-webkit-box-sizing:content-box;
|
||||
box-sizing:content-box;
|
||||
direction:ltr;max-width:none}
|
||||
.mce-object{
|
||||
border:1px dotted #3a3a3a;
|
||||
background:#d5d5d5 url(img/object.gif) no-repeat center}
|
||||
.mce-preview-object{
|
||||
display:inline-block;
|
||||
position:relative;
|
||||
margin:0 2px 0 2px;
|
||||
line-height:0;
|
||||
border:1px solid gray}
|
||||
.mce-preview-object .mce-shim{
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}
|
||||
figure.align-left{float:left}
|
||||
figure.align-right{float:right}
|
||||
figure.image.align-center{display:table;margin-left:auto;margin-right:auto}
|
||||
figure.image{display:inline-block;border:1px solid gray;margin:0 2px 0 1px;background:#f5f2f0}
|
||||
figure.image img{margin:8px 8px 0 8px}
|
||||
figure.image figcaption{margin:6px 8px 6px 8px;text-align:center}
|
||||
.mce-preview-object[data-mce-selected="2"] .mce-shim{display:none}
|
||||
.mce-pagebreak{
|
||||
cursor:default;
|
||||
display:block;
|
||||
border:0;
|
||||
width:100%;
|
||||
height:5px;
|
||||
border:1px dashed #666;
|
||||
margin-top:15px;
|
||||
page-break-before:always}
|
||||
Loading…
Add table
Reference in a new issue