Permalink
Browse files

Removed style declarations from templates and partials

  • Loading branch information...
1 parent a2ef956 commit e42075ba549cdc21f04992b73b6518f32198b05b @alce alce committed Jul 10, 2010
Showing with 6 additions and 51 deletions.
  1. +3 −44 app/views/partials/_blog_post.html.erb
  2. +3 −7 app/views/portlets/blog_post/render.html.erb
@@ -1,44 +1,3 @@
-<style>
- .blog_post {
- border-bottom: 1px solid #ccc;
- margin-bottom: 20px;
- }
-
- .blog_post h2 {
- margin-bottom: 0
- }
-
- .blog_post h2,
- .blog_post h2 a {
- font: normal 30px/28px 'arial black', arial, sans-serif !important;
- text-decoration: none !important;
- }
- .blog_post h2 a:hover {
- text-decoration: underline !important;
- }
-
- .blog_post .image {
- float: left;
- border: 1px solid #ccc;
- margin: 10px;
- margin-top: 0;
- }
- .blog_post .date {
- color: #666;
- }
- .blog_post .read_more {
- font-weight: bold;
- }
-
- .blog_post .comment + .comment {
- border-top: 1px dashed #ccc;
- }
-
- .clear {
- clear: both;
- }
-</style>
-
<%
# _counter is defined only if we pass :collection to the partial
if defined?(blog_post_counter)
@@ -48,8 +7,7 @@
blog_post_counter = 0
end
%>
-
-<div id="blog_post_<%= blog_post.id %>" class="blog_post clear">
+<div id="blog_post_<%= blog_post.id %>" class="blog_post">
<% if blog_post.attachment %>
<div class="image">
<%= image_tag blog_post.attachment.file_path %>
@@ -87,7 +45,8 @@
<%= link_to h(pluralize(blog_post.comments.published.count, "Comment")), "#{_blog_post_path(blog_post)}#comments" %>
</div>
- <br class="clear" />
+
+ <br />
<% comments = blog_post.comments.published.reject(&:new_record?) %>
<% if showing_individual_post and comments.any? -%>
@@ -1,10 +1,6 @@
<% page_title @blog_post.name %>
<%= render :partial => "partials/blog_post", :object => @blog_post %>
-<style>
- @import url('/stylesheets/cms/form_layout.css');
-</style>
-
<div class="blog_comment_form">
<% form_for @blog_comment, :url => cms_handler_path(@portlet, "create_comment") do |f| %>
<%= f.hidden_field :post_id %>
@@ -13,15 +9,15 @@
<%= f.label :author, 'Name *' %>
<%= f.text_field :author %>
</div>
- <div class="fields text_fields clear">
+ <div class="fields text_fields">
<%= f.label :email, 'E-mail address' %>
<%= f.text_field :email %>
</div>
- <div class="fields text_fields clear">
+ <div class="fields text_fields">
<%= f.label :url, 'Web site' %>
<%= f.text_field :url %>
</div>
- <div class="fields text_editor_fields clear">
+ <div class="fields text_editor_fields">
<%= f.label :body, 'Body *' %>
<br/>
<%= f.text_area :body, :size => "50x5", :style => 'height: auto' %>

0 comments on commit e42075b

Please sign in to comment.