From d47db8e3951aab1054b265f14683b6ce1b791211 Mon Sep 17 00:00:00 2001 From: Matthew Kaito Juyuan Fu Date: Thu, 20 Oct 2011 17:19:35 +0800 Subject: [PATCH] Remove production.css --- .../app/assets/stylesheets/NewBlog/blog.css | 12 +++++++++ .../app/views/layouts/production.html.erb | 1 - .../panel/blog/posts/widget_index.html.erb | 26 ++++++++++--------- .../blog/posts/widget_latest_post.html.erb | 10 ++++--- 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/blog.css b/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/blog.css index f656dccb1..202a62a43 100644 --- a/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/blog.css +++ b/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/blog.css @@ -7,3 +7,15 @@ font-size: large; background-color: green; } + +.widget_index { + width: 200px; + height: 120px; + border: solid; +} + +.widget_latest_post{ + width: 200px; + height: 120px; + border: solid; +} \ No newline at end of file diff --git a/vendor/plugins/NewBlog/app/views/layouts/production.html.erb b/vendor/plugins/NewBlog/app/views/layouts/production.html.erb index e67004715..d90a4112a 100644 --- a/vendor/plugins/NewBlog/app/views/layouts/production.html.erb +++ b/vendor/plugins/NewBlog/app/views/layouts/production.html.erb @@ -1,4 +1,3 @@ -<%= stylesheet_link_tag "production"%>
<%= yield %>
diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_index.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_index.html.erb index 0f019c46c..cd16cfc70 100644 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_index.html.erb +++ b/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_index.html.erb @@ -1,14 +1,16 @@ <%=stylesheet_link_tag "NewBlog/application"%> - - - - - +
+
<%= t('blog.title') %><%= t('blog.body') %>
+ + + + -<% @posts.each do |post| %> - - - - -<% end %> -
<%= t('blog.title') %><%= t('blog.body') %>
<%= post.title %><%= post.body.truncate(14) %>
+ <% @posts.each do |post| %> + + <%= link_to post.title,panel_blog_post_path(post) %> + <%= post.body.truncate(14) %> + + <% end %> + + \ No newline at end of file diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_latest_post.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_latest_post.html.erb index d90eb1523..2312fc741 100644 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_latest_post.html.erb +++ b/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_latest_post.html.erb @@ -1,5 +1,7 @@ <%=stylesheet_link_tag "NewBlog/application"%> -

<%= @post.title %>

-

- <%= @post.body %> -

+
+

<%= @post.title %>

+

+ <%= @post.body %> +

+
\ No newline at end of file