From 740e51fa2b3ad76edc81634f0320fc616e0d4d51 Mon Sep 17 00:00:00 2001 From: rhymes Date: Wed, 10 Feb 2021 17:47:39 +0100 Subject: [PATCH] Remove unused podcast episode related code (#12642) --- .../podcast_episodes_controller.rb | 11 --- app/views/podcast_episodes/edit.html.erb | 62 -------------- public/tinymcestyles.css | 80 ------------------- 3 files changed, 153 deletions(-) delete mode 100644 app/views/podcast_episodes/edit.html.erb delete mode 100644 public/tinymcestyles.css diff --git a/app/controllers/podcast_episodes_controller.rb b/app/controllers/podcast_episodes_controller.rb index 5f7f6e648..0f4c40671 100644 --- a/app/controllers/podcast_episodes_controller.rb +++ b/app/controllers/podcast_episodes_controller.rb @@ -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 diff --git a/app/views/podcast_episodes/edit.html.erb b/app/views/podcast_episodes/edit.html.erb deleted file mode 100644 index 71318eb94..000000000 --- a/app/views/podcast_episodes/edit.html.erb +++ /dev/null @@ -1,62 +0,0 @@ -
- - <%= form_for(@podcast_episode) do |f| %> - <% if @podcast_episode.errors.any? %> -
-

<%= pluralize(@podcast_episode.errors.count, "error") %> prohibited this article from being saved:

- -
    - <% @podcast_episode.errors.full_messages.each do |message| %> -
  • <%= message %>
  • - <% end %> -
-
- <% end %> - -
- <%= f.label :title %>
- <%= f.text_field :title, autocomplete: "off" %> -
-
- <%= f.label :quote %>
- <%= f.text_field :quote, autocomplete: "off" %> -
-
- <%= f.label :remote_image_url, "Paste Image URL" %>
- <%= f.text_field :remote_image_url, autocomplete: "off" %> -
-
- <%= f.label :image, "Or Upload Image" %>
- <%= f.file_field :image %> -
- <% if @podcast_episode.image %> -
- <%= image_tag(@podcast_episode.image_url, width: 398, style: "border-radius:500px;height:auto;max-width:70%;", alt: "Podcast #{@podcast_episode.title} logo") %> -
- <% end %> -
- <%= f.label :remote_social_image_url, "Paste Social Media Image URL" %>
- <%= f.text_field :remote_social_image_url, autocomplete: "off" %> -
-
- <%= f.label :social_image, "Or Upload Image" %>
- <%= f.file_field :social_image %> -
- <% if @podcast_episode.social_image %> -
- <%= image_tag(@podcast_episode.social_image_url, width: 398, style: "height:auto;max-width:70%;", alt: "Podcast #{@podcast_episode.title} social media") %> -
- <% end %> - -
-
- <%= f.text_area :body %> -
- -
- <%= f.submit "Save Article" %> -
- <% end %> - <%= render "articles/tinymce" %> - -
diff --git a/public/tinymcestyles.css b/public/tinymcestyles.css deleted file mode 100644 index dcb9cb9f6..000000000 --- a/public/tinymcestyles.css +++ /dev/null @@ -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}