Remove production.css

This commit is contained in:
Matthew Kaito Juyuan Fu 2011-10-20 17:19:35 +08:00
parent 0e252cf93c
commit d47db8e395
4 changed files with 32 additions and 17 deletions

View File

@ -7,3 +7,15 @@
font-size: large; font-size: large;
background-color: green; background-color: green;
} }
.widget_index {
width: 200px;
height: 120px;
border: solid;
}
.widget_latest_post{
width: 200px;
height: 120px;
border: solid;
}

View File

@ -1,4 +1,3 @@
<%= stylesheet_link_tag "production"%>
<div class="production"> <div class="production">
<%= yield %> <%= yield %>
</div> </div>

View File

@ -1,4 +1,5 @@
<%=stylesheet_link_tag "NewBlog/application"%> <%=stylesheet_link_tag "NewBlog/application"%>
<div class="widget_index">
<table> <table>
<tr> <tr>
<th><%= t('blog.title') %></th> <th><%= t('blog.title') %></th>
@ -7,8 +8,9 @@
<% @posts.each do |post| %> <% @posts.each do |post| %>
<tr> <tr>
<td><%= post.title %></td> <td><%= link_to post.title,panel_blog_post_path(post) %></td>
<td><%= post.body.truncate(14) %></td> <td><%= post.body.truncate(14) %></td>
</tr> </tr>
<% end %> <% end %>
</table> </table>
</div>

View File

@ -1,5 +1,7 @@
<%=stylesheet_link_tag "NewBlog/application"%> <%=stylesheet_link_tag "NewBlog/application"%>
<div class="widget_latest_post">
<h2><%= @post.title %> </h2> <h2><%= @post.title %> </h2>
<p> <p>
<%= @post.body %> <%= @post.body %>
</p> </p>
</div>