Guest User

Untitled

a guest
Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. Index: app/models/theme.rb
  2. ===================================================================
  3. --- app/models/theme.rb (revision 2075)
  4. +++ app/models/theme.rb (revision 2076)
  5. @@ -43,13 +43,6 @@
  6. def border_color
  7. handle_native(:border_color, "EFEFEF")
  8. end
  9. -
  10. - # This will eventually become a first-class property and take over outer_background_color.
  11. - # For now we derive it from outer_background_color by prepending a # if it's a 6-digit hex code.
  12. - def outer_background
  13. - color = outer_background_color.strip
  14. - color.match('^[\dA-Fa-f]{6}$') ? "##{color}" : color
  15. - end
  16.  
  17. private
  18.  
  19. Index: app/views/layouts/raw.erb
  20. ===================================================================
  21. --- app/views/layouts/raw.erb (revision 2075)
  22. +++ app/views/layouts/raw.erb (revision 2076)
  23. @@ -2,8 +2,6 @@
  24. <head>
  25. <%#= javascript_include_tag "prototype", "effects", "controls", "dragdrop", "application" %>
  26. <%= stylesheet_link_tag "raw" %>
  27. - <%= yield :inline_styles %>
  28. -</head>
  29. <body>
  30. <%= yield %>
  31. </body>
  32. Index: app/views/layouts/application.erb
  33. ===================================================================
  34. --- app/views/layouts/application.erb (revision 2075)
  35. +++ app/views/layouts/application.erb (revision 2076)
  36. @@ -19,7 +19,6 @@
  37. <%#= active_scaffold_includes if @controller.class == MimiServiceController %>
  38.  
  39. <%= yield :head %>
  40. - <%= yield :inline_styles %>
  41. </head>
  42. <body class="application <%= yield :body_class %>">
  43. <div id="masthead">
  44. Index: app/views/promotion_styles/_theme.html.erb
  45. ===================================================================
  46. --- app/views/promotion_styles/_theme.html.erb (revision 2075)
  47. +++ app/views/promotion_styles/_theme.html.erb (revision 2076)
  48. @@ -2,7 +2,7 @@
  49.  
  50. <% unless theme.outer_background_color.blank? %>
  51. body<%= theme_class %> {
  52. - background: <%= theme.outer_background %>;
  53. + background-color: #<%= theme.outer_background_color %>;
  54. }
  55. <% end %>
  56.  
  57. Index: app/views/promotions/templates/_layout.erb
  58. ===================================================================
  59. --- app/views/promotions/templates/_layout.erb (revision 2075)
  60. +++ app/views/promotions/templates/_layout.erb (revision 2076)
  61. @@ -2,7 +2,6 @@
  62. <%# end %>
  63. <%# Since this is used from an email, do not use partials inside it. --Dave %>
  64.  
  65. -<% content_for :inline_styles do %>
  66. <style type="text/css">
  67.  
  68. * #madmimi_outer_wrapper div,
  69. @@ -312,7 +311,6 @@
  70. <%= yield :custom_styles %>
  71.  
  72. </style>
  73. -<% end %>
  74.  
  75. <% content_for :body_class do %>madmimi_theme_<%= @promotion.grab_theme.id %><% end %>
Add Comment
Please, Sign In to add comment