diff --git a/app/controllers/admin/page_parts_controller.rb b/app/controllers/admin/page_parts_controller.rb index f77a77829..71e39ae19 100644 --- a/app/controllers/admin/page_parts_controller.rb +++ b/app/controllers/admin/page_parts_controller.rb @@ -28,7 +28,7 @@ class Admin::PagePartsController < ApplicationController @partial = 'edit_text' @part_locale = params[:part_locale] || I18n.locale.to_s when 'module' - @plugins=[{:module=>"Blog",:widgets=>[{:name=>"Blog",:path=>"panel/blog/widget_latest_post"},{:name=>"Blog",:path=>"panel/blog/widget_index"}]}] + @plugins=[{:module=>"Blog",:widgets=>[{:name=>"Blog",:path=>"panel/new_blog/widget_latest_post"},{:name=>"Blog",:path=>"panel/new_blog/widget_index"}]}] when 'snippet' end end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7c964ff58..0227c2524 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,12 +9,12 @@ class ApplicationController < ActionController::Base def front_end_available(module_app_title='') app_controller = ModuleApp.first(conditions: {:title => module_app_title} ) unless app_controller.enable_frontend? - render :text => 'View not available' + render :nothing end end def get_all_app_engines - ary = ["vender/plugins/NewBlog"] + ary = ["vender/plugins/new_blog"] app_engines = ary.collect{|t| Rails::Engine.find t } diff --git a/app/controllers/obit_frontend_component_controller.rb b/app/controllers/obit_frontend_component_controller.rb new file mode 100644 index 000000000..d5bfaac68 --- /dev/null +++ b/app/controllers/obit_frontend_component_controller.rb @@ -0,0 +1,4 @@ +class ObitFrontendComponentController< ApplicationController + before_filter {|c| c.front_end_available(@app_title)} + layout 'production' +end \ No newline at end of file diff --git a/app/controllers/obit_frontend_controller.rb b/app/controllers/obit_frontend_controller.rb new file mode 100644 index 000000000..fb42ac781 --- /dev/null +++ b/app/controllers/obit_frontend_controller.rb @@ -0,0 +1,3 @@ +class ObitFrontendController< ObitFrontendComponentController + +end \ No newline at end of file diff --git a/app/controllers/obit_widget_controller.rb b/app/controllers/obit_widget_controller.rb new file mode 100644 index 000000000..e0a9746d9 --- /dev/null +++ b/app/controllers/obit_widget_controller.rb @@ -0,0 +1,3 @@ +class ObitWidgetController< ObitFrontendComponentController + +end \ No newline at end of file diff --git a/lib/NewBlog.zip b/lib/NewBlog.zip index f21f2eb22..3513cabf8 100644 Binary files a/lib/NewBlog.zip and b/lib/NewBlog.zip differ diff --git a/lib/fraisier/layout.html b/lib/fraisier/layout.html index b2b97924f..206b04c55 100644 --- a/lib/fraisier/layout.html +++ b/lib/fraisier/layout.html @@ -26,8 +26,8 @@
-
-
+
+
diff --git a/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/front_end/posts/index.html.erb similarity index 65% rename from vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb rename to vendor/built_in_modules/new_blog/app/views/panel/new_blog/front_end/posts/index.html.erb index aaa1d8ce5..27f494c04 100644 --- a/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/index.html.erb +++ b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/front_end/posts/index.html.erb @@ -1,6 +1,6 @@ <% content_for :secondary do %> <% end -%> diff --git a/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/front_end/posts/show.html.erb similarity index 87% rename from vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb rename to vendor/built_in_modules/new_blog/app/views/panel/new_blog/front_end/posts/show.html.erb index 46842f965..50f8ef9ed 100644 --- a/vendor/built_in_modules/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb +++ b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/front_end/posts/show.html.erb @@ -18,7 +18,7 @@

<% end %> -<%= form_for Comment.new, :url => panel_blog_front_end_comments_path do |f| %> +<%= form_for Comment.new, :url => panel_new_blog_front_end_comments_path do |f| %>

<%= f.label :name, "Author" %>
diff --git a/vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/index.html.erb b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/widget/posts/index.html.erb similarity index 64% rename from vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/index.html.erb rename to vendor/built_in_modules/new_blog/app/views/panel/new_blog/widget/posts/index.html.erb index 0ea7639f9..41c8ccf83 100644 --- a/vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/index.html.erb +++ b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/widget/posts/index.html.erb @@ -1,4 +1,4 @@ -<%=stylesheet_link_tag "NewBlog/application"%> +<%=stylesheet_link_tag "new_blog/application"%>

@@ -8,7 +8,7 @@ <% @posts.each do |post| %> - + <% end %> diff --git a/vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/widget/posts/latest_post.html.erb similarity index 64% rename from vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb rename to vendor/built_in_modules/new_blog/app/views/panel/new_blog/widget/posts/latest_post.html.erb index 2312fc741..b4f62484b 100644 --- a/vendor/built_in_modules/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb +++ b/vendor/built_in_modules/new_blog/app/views/panel/new_blog/widget/posts/latest_post.html.erb @@ -1,4 +1,4 @@ -<%=stylesheet_link_tag "NewBlog/application"%> +<%=stylesheet_link_tag "new_blog/application"%>

<%= @post.title %>

diff --git a/vendor/built_in_modules/new_blog/config/initializers/app_config.rb b/vendor/built_in_modules/new_blog/config/initializers/app_config.rb new file mode 100644 index 000000000..c098b837f --- /dev/null +++ b/vendor/built_in_modules/new_blog/config/initializers/app_config.rb @@ -0,0 +1,18 @@ +# module NewBlog +# class MyEngine < Rails::Engine +# # Add a load path for this specific Engine +# # config.autoload_paths << File.expand_path("../lib/some/path", __FILE__) +# put "ABC" +# PrototypeR4::Application::Orbit_Apps << "NewBlog" +# +# # initializer "my_engine.add_middleware" do |app| +# # app.middleware.use MyEngine::Middleware +# # end +# end +# +# end +module NewBlog + VERSION = "0.0.1" + MOUDLEAPP_TITLE = "NewBlog" +end +# PrototypeR4::Application::Orbit_Apps << "NewBlog" \ No newline at end of file diff --git a/vendor/built_in_modules/NewBlog/config/locales/en.yml b/vendor/built_in_modules/new_blog/config/locales/en.yml similarity index 100% rename from vendor/built_in_modules/NewBlog/config/locales/en.yml rename to vendor/built_in_modules/new_blog/config/locales/en.yml diff --git a/vendor/built_in_modules/NewBlog/config/locales/zh_tw.yml b/vendor/built_in_modules/new_blog/config/locales/zh_tw.yml similarity index 100% rename from vendor/built_in_modules/NewBlog/config/locales/zh_tw.yml rename to vendor/built_in_modules/new_blog/config/locales/zh_tw.yml diff --git a/vendor/built_in_modules/new_blog/config/routes.rb b/vendor/built_in_modules/new_blog/config/routes.rb new file mode 100644 index 000000000..c5b65a184 --- /dev/null +++ b/vendor/built_in_modules/new_blog/config/routes.rb @@ -0,0 +1,25 @@ +Rails.application.routes.draw do + + namespace :panel do + namespace :new_blog do + namespace :back_end do + root :to => "posts#index" + resources :posts + resources :comments + end + namespace :front_end do + root :to => "posts#index" + match "show/:id" => "posts#show" ,:as => :post + match "comments" => "comments#create",:as => :comments + end + namespace :widget do + root :to => "posts#index" + match "latest_post" => "posts#latest_post" + end + end + end + + # match "appfront/blog/front_end/show/:id" => "posts#frontend_show" ,:as => :appfront_blog_show + + match "/appfront/*path" => redirect("/panel/*path") +end diff --git a/vendor/built_in_modules/new_blog/lib/NewBlog.rb b/vendor/built_in_modules/new_blog/lib/NewBlog.rb new file mode 100644 index 000000000..4b74cf74b --- /dev/null +++ b/vendor/built_in_modules/new_blog/lib/NewBlog.rb @@ -0,0 +1,5 @@ +require "new_blog/engine" + + +module NewBlog +end diff --git a/vendor/built_in_modules/NewBlog/lib/NewBlog/engine.rb b/vendor/built_in_modules/new_blog/lib/new_blog/engine.rb similarity index 64% rename from vendor/built_in_modules/NewBlog/lib/NewBlog/engine.rb rename to vendor/built_in_modules/new_blog/lib/new_blog/engine.rb index e0f0221ca..6879f1126 100644 --- a/vendor/built_in_modules/NewBlog/lib/NewBlog/engine.rb +++ b/vendor/built_in_modules/new_blog/lib/new_blog/engine.rb @@ -1,5 +1,5 @@ module NewBlog class Engine < Rails::Engine - isolate_namespace NewBlog + isolate_namespace new_blog end end diff --git a/vendor/built_in_modules/NewBlog/lib/NewBlog/version.rb b/vendor/built_in_modules/new_blog/lib/new_blog/version.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/lib/NewBlog/version.rb rename to vendor/built_in_modules/new_blog/lib/new_blog/version.rb diff --git a/vendor/built_in_modules/NewBlog/lib/tasks/NewBlog_tasks.rake b/vendor/built_in_modules/new_blog/lib/tasks/NewBlog_tasks.rake similarity index 100% rename from vendor/built_in_modules/NewBlog/lib/tasks/NewBlog_tasks.rake rename to vendor/built_in_modules/new_blog/lib/tasks/NewBlog_tasks.rake diff --git a/vendor/built_in_modules/NewBlog/NewBlog.gemspec b/vendor/built_in_modules/new_blog/new_blog.gemspec similarity index 100% rename from vendor/built_in_modules/NewBlog/NewBlog.gemspec rename to vendor/built_in_modules/new_blog/new_blog.gemspec diff --git a/vendor/built_in_modules/new_blog/new_blog.json b/vendor/built_in_modules/new_blog/new_blog.json new file mode 100755 index 000000000..ec18ee081 --- /dev/null +++ b/vendor/built_in_modules/new_blog/new_blog.json @@ -0,0 +1,12 @@ +{ + "title": "NewBlog", + "version": "0.1", + "organization": "Rulingcom", + "author": "RD dep", + "intro": "A simple blog……", + "update_info": "Some info", + "create_date": "11-11-2011", + "app_pages": ["/panel/new_blog/front_end/"], + "widgets": ["/panel/new_blog/widget/latest_post","/panel/new_blog/widget/"], + "enable_frontend": false +} diff --git a/vendor/built_in_modules/NewBlog/script/rails b/vendor/built_in_modules/new_blog/script/rails similarity index 100% rename from vendor/built_in_modules/NewBlog/script/rails rename to vendor/built_in_modules/new_blog/script/rails diff --git a/vendor/built_in_modules/NewBlog/test/NewBlog_test.rb b/vendor/built_in_modules/new_blog/test/NewBlog_test.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/NewBlog_test.rb rename to vendor/built_in_modules/new_blog/test/NewBlog_test.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/Rakefile b/vendor/built_in_modules/new_blog/test/dummy/Rakefile similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/Rakefile rename to vendor/built_in_modules/new_blog/test/dummy/Rakefile diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/assets/javascripts/application.js b/vendor/built_in_modules/new_blog/test/dummy/app/assets/javascripts/application.js similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/assets/javascripts/application.js rename to vendor/built_in_modules/new_blog/test/dummy/app/assets/javascripts/application.js diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/assets/stylesheets/application.css b/vendor/built_in_modules/new_blog/test/dummy/app/assets/stylesheets/application.css similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/assets/stylesheets/application.css rename to vendor/built_in_modules/new_blog/test/dummy/app/assets/stylesheets/application.css diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/controllers/application_controller.rb b/vendor/built_in_modules/new_blog/test/dummy/app/controllers/application_controller.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/controllers/application_controller.rb rename to vendor/built_in_modules/new_blog/test/dummy/app/controllers/application_controller.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/helpers/application_helper.rb b/vendor/built_in_modules/new_blog/test/dummy/app/helpers/application_helper.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/helpers/application_helper.rb rename to vendor/built_in_modules/new_blog/test/dummy/app/helpers/application_helper.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/mailers/.gitkeep b/vendor/built_in_modules/new_blog/test/dummy/app/mailers/.gitkeep similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/mailers/.gitkeep rename to vendor/built_in_modules/new_blog/test/dummy/app/mailers/.gitkeep diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/models/.gitkeep b/vendor/built_in_modules/new_blog/test/dummy/app/models/.gitkeep similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/models/.gitkeep rename to vendor/built_in_modules/new_blog/test/dummy/app/models/.gitkeep diff --git a/vendor/built_in_modules/NewBlog/test/dummy/app/views/layouts/application.html.erb b/vendor/built_in_modules/new_blog/test/dummy/app/views/layouts/application.html.erb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/app/views/layouts/application.html.erb rename to vendor/built_in_modules/new_blog/test/dummy/app/views/layouts/application.html.erb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config.ru b/vendor/built_in_modules/new_blog/test/dummy/config.ru similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config.ru rename to vendor/built_in_modules/new_blog/test/dummy/config.ru diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/application.rb b/vendor/built_in_modules/new_blog/test/dummy/config/application.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/application.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/application.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/boot.rb b/vendor/built_in_modules/new_blog/test/dummy/config/boot.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/boot.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/boot.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/database.yml b/vendor/built_in_modules/new_blog/test/dummy/config/database.yml similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/database.yml rename to vendor/built_in_modules/new_blog/test/dummy/config/database.yml diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/environment.rb b/vendor/built_in_modules/new_blog/test/dummy/config/environment.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/environment.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/environment.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/environments/development.rb b/vendor/built_in_modules/new_blog/test/dummy/config/environments/development.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/environments/development.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/environments/development.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/environments/production.rb b/vendor/built_in_modules/new_blog/test/dummy/config/environments/production.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/environments/production.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/environments/production.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/environments/test.rb b/vendor/built_in_modules/new_blog/test/dummy/config/environments/test.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/environments/test.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/environments/test.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb b/vendor/built_in_modules/new_blog/test/dummy/config/initializers/backtrace_silencers.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/initializers/backtrace_silencers.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/initializers/backtrace_silencers.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/inflections.rb b/vendor/built_in_modules/new_blog/test/dummy/config/initializers/inflections.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/initializers/inflections.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/initializers/inflections.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/mime_types.rb b/vendor/built_in_modules/new_blog/test/dummy/config/initializers/mime_types.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/initializers/mime_types.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/initializers/mime_types.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/secret_token.rb b/vendor/built_in_modules/new_blog/test/dummy/config/initializers/secret_token.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/initializers/secret_token.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/initializers/secret_token.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/session_store.rb b/vendor/built_in_modules/new_blog/test/dummy/config/initializers/session_store.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/initializers/session_store.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/initializers/session_store.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/initializers/wrap_parameters.rb b/vendor/built_in_modules/new_blog/test/dummy/config/initializers/wrap_parameters.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/initializers/wrap_parameters.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/initializers/wrap_parameters.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/locales/en.yml b/vendor/built_in_modules/new_blog/test/dummy/config/locales/en.yml similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/locales/en.yml rename to vendor/built_in_modules/new_blog/test/dummy/config/locales/en.yml diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/mongoid.yml b/vendor/built_in_modules/new_blog/test/dummy/config/mongoid.yml similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/mongoid.yml rename to vendor/built_in_modules/new_blog/test/dummy/config/mongoid.yml diff --git a/vendor/built_in_modules/NewBlog/test/dummy/config/routes.rb b/vendor/built_in_modules/new_blog/test/dummy/config/routes.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/config/routes.rb rename to vendor/built_in_modules/new_blog/test/dummy/config/routes.rb diff --git a/vendor/built_in_modules/NewBlog/test/dummy/lib/assets/.gitkeep b/vendor/built_in_modules/new_blog/test/dummy/lib/assets/.gitkeep similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/lib/assets/.gitkeep rename to vendor/built_in_modules/new_blog/test/dummy/lib/assets/.gitkeep diff --git a/vendor/built_in_modules/NewBlog/test/dummy/log/.gitkeep b/vendor/built_in_modules/new_blog/test/dummy/log/.gitkeep similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/log/.gitkeep rename to vendor/built_in_modules/new_blog/test/dummy/log/.gitkeep diff --git a/vendor/built_in_modules/NewBlog/test/dummy/public/404.html b/vendor/built_in_modules/new_blog/test/dummy/public/404.html similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/public/404.html rename to vendor/built_in_modules/new_blog/test/dummy/public/404.html diff --git a/vendor/built_in_modules/NewBlog/test/dummy/public/422.html b/vendor/built_in_modules/new_blog/test/dummy/public/422.html similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/public/422.html rename to vendor/built_in_modules/new_blog/test/dummy/public/422.html diff --git a/vendor/built_in_modules/NewBlog/test/dummy/public/500.html b/vendor/built_in_modules/new_blog/test/dummy/public/500.html similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/public/500.html rename to vendor/built_in_modules/new_blog/test/dummy/public/500.html diff --git a/vendor/built_in_modules/NewBlog/test/dummy/public/favicon.ico b/vendor/built_in_modules/new_blog/test/dummy/public/favicon.ico similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/public/favicon.ico rename to vendor/built_in_modules/new_blog/test/dummy/public/favicon.ico diff --git a/vendor/built_in_modules/NewBlog/test/dummy/script/rails b/vendor/built_in_modules/new_blog/test/dummy/script/rails similarity index 100% rename from vendor/built_in_modules/NewBlog/test/dummy/script/rails rename to vendor/built_in_modules/new_blog/test/dummy/script/rails diff --git a/vendor/built_in_modules/NewBlog/test/integration/navigation_test.rb b/vendor/built_in_modules/new_blog/test/integration/navigation_test.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/integration/navigation_test.rb rename to vendor/built_in_modules/new_blog/test/integration/navigation_test.rb diff --git a/vendor/built_in_modules/NewBlog/test/test_helper.rb b/vendor/built_in_modules/new_blog/test/test_helper.rb similarity index 100% rename from vendor/built_in_modules/NewBlog/test/test_helper.rb rename to vendor/built_in_modules/new_blog/test/test_helper.rb

<%= link_to post.title,panel_blog_front_end_post_path(post) %><%= link_to post.title,panel_new_blog_front_end_post_path(post) %> <%= post.body.truncate(14) %>