diff --git a/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/blog.css b/vendor/plugins/NewBlog/app/assets/stylesheets/NewBlog/blog.css index f656dccb..202a62a4 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 e6700471..d90a4112 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 0f019c46..cd16cfc7 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 d90eb152..2312fc74 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