diff --git a/vendor/plugins/NewBlog/NewBlog.json b/vendor/plugins/NewBlog/NewBlog.json deleted file mode 100755 index 1c0faa55..00000000 --- a/vendor/plugins/NewBlog/NewBlog.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "title": "NewBlog", - "version": "0.1", - "organization": "Rulingcom", - "author": "RD dep", - "intro": "A simple blog……", - "update_info": "Some info", - "create_date": "11-11-2011" -} \ No newline at end of file diff --git a/vendor/plugins/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb b/vendor/plugins/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb deleted file mode 100644 index f853d54c..00000000 --- a/vendor/plugins/NewBlog/app/controllers/panel/blog/back_end/posts_controller.rb +++ /dev/null @@ -1,84 +0,0 @@ -class Panel::Blog::BackEnd::PostsController < ApplicationController - - layout 'admin' - - def index - @posts = Post.all - - respond_to do |format| - format.html # index.html.erb - format.xml { render :xml => @posts } - end - end - - # GET /posts/1 - # GET /posts/1.xml - def show - @post = Post.find(params[:id]) - - respond_to do |format| - format.html # show.html.erb - format.xml { render :xml => @post } - end - end - - # GET /posts/new - # GET /posts/new.xml - def new - @post = Post.new - - respond_to do |format| - format.html # new.html.erb - format.xml { render :xml => @post } - end - end - - # GET /posts/1/edit - def edit - @post = Post.find(params[:id]) - end - - # POST /posts - # POST /posts.xml - def create - @post = Post.new(params[:post]) - - respond_to do |format| - if @post.save - format.html { redirect_to(panel_blog_post_url(@post), :notice => t('blog.create_post_success')) } - format.xml { render :xml => @post, :status => :created, :location => @post } - else - format.html { render :action => "new" } - format.xml { render :xml => @post.errors, :status => :unprocessable_entity } - end - end - end - - # PUT /posts/1 - # PUT /posts/1.xml - def update - @post = Post.find(params[:id]) - - respond_to do |format| - if @post.update_attributes(params[:post]) - format.html { redirect_to(panel_blog_post_url(@post), :notice => t('blog.update_post_success')) } - format.xml { head :ok } - else - format.html { render :action => "edit" } - format.xml { render :xml => @post.errors, :status => :unprocessable_entity } - end - end - end - - # DELETE /posts/1 - # DELETE /posts/1.xml - def destroy - @post = Post.find(params[:id]) - @post.destroy - - respond_to do |format| - format.html { redirect_to(panel_blog_posts_url) } - format.xml { head :ok } - end - end -end diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb deleted file mode 100644 index 2ce8dfe8..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/_form.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<%= f.error_messages %> - -
- <%= f.label :title %>
- <%= f.text_field :title %> -
-
- <%= f.label :body %>
- <%= f.text_area :body %> -
-
- <%= f.submit %> -
diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb deleted file mode 100644 index 25eca5f7..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/index.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -<% content_for :secondary do %> - -<% end -%> - -<%= flash_messages %> - -

<%= t('blog.list_post') %>

- - - - - - - - - - -<% @posts.each do |post| %> - - - - - - - -<% end %> -
<%= t('blog.title') %><%= t('blog.body') %>
<%= post.title %><%= truncate(post.body,:length=>15) %><%= link_to t('blog.show'), panel_blog_back_end_post_path(post) %><%= link_to t('blog.edit'), edit_panel_blog_back_end_post_path(post) %><%= link_to t('blog.delete'), panel_blog_back_end_post_path(post), :confirm => t('blog.sure?'), :method => :delete %>
- -
- diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb deleted file mode 100644 index 9eb6ebbb..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/latest_post.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<%=stylesheet_link_tag "NewBlog/application"%> -

<%=@post.title%>

-

- <%= @post.body%> -

diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb deleted file mode 100644 index 03508f90..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/back_end/posts/new.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<% content_for :secondary do %> - -<% end -%> - -<%= flash_messages %> -

<%= t('blog.new_post') %>

-<%= form_for @post, :url => panel_blog_back_end_posts_path do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> - -<%= link_back %> diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb deleted file mode 100644 index 46842f96..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/front_end/posts/show.html.erb +++ /dev/null @@ -1,34 +0,0 @@ -

<%= flash_messages %>

- -

- <%= t('blog.body') %> - <%=h @post.body %> -

- -

<%= t('blog.comments') %>

- -<% @post.comments.each do |c| %> -

- <%=h c.name %> said:
- <%= time_ago_in_words(c.created_at) %> ago -

- -

- <%=h c.body %> -

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

- - <%= f.label :name, "Author" %>
- <%= f.text_field :name %>
- <%= f.label :body, "Comment Description" %>
- <%= f.text_area :body %> - <%= hidden_field_tag :post_id, @post.id %> -

- -

- <%= f.submit "Add Comment" %> -

-<% end %> diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/posts/index.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/posts/index.html.erb deleted file mode 100644 index 477429cd..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/index.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -<% content_for :secondary do %> - -<% end -%> - -<%= flash_messages %> - -

<%= t('blog.list_post') %>

- - - - - - - - - - -<% @posts.each do |post| %> - - - - - - - -<% end %> -
<%= t('blog.title') %><%= t('blog.body') %>
<%= post.title %><%= truncate(post.body,:length=>15) %><%= link_to t('blog.show'), panel_blog_post_path(post) %><%= link_to t('blog.edit'), edit_panel_blog_post_path(post) %><%= link_to t('blog.delete'), panel_blog_post_path(post), :confirm => t('blog.sure?'), :method => :delete %>
- -
- diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/posts/latest_post.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/posts/latest_post.html.erb deleted file mode 100644 index 9eb6ebbb..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/latest_post.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<%=stylesheet_link_tag "NewBlog/application"%> -

<%=@post.title%>

-

- <%= @post.body%> -

diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/posts/new.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/posts/new.html.erb deleted file mode 100644 index fc4e591d..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/new.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<% content_for :secondary do %> - -<% end -%> - -<%= flash_messages %> -

<%= t('blog.new_post') %>

-<%= form_for @post, :url => panel_blog_posts_path do |f| %> - <%= render :partial => 'form', :locals => {:f => f} %> -<% end %> - -<%= link_back %> diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/posts/show.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/posts/show.html.erb deleted file mode 100644 index 7fce5fd1..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/show.html.erb +++ /dev/null @@ -1,38 +0,0 @@ -

<%= flash_messages %>

- -

- <%= t('blog.body') %> - <%=h @post.body %> -

- -

<%= t('blog.comments') %>

- -<% @post.comments.each do |c| %> -

- <%=h c.name %> said:
- <%= time_ago_in_words(c.created_at) %> ago -

- -

- <%=h c.body %> -

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

- - <%= f.label :name, "Author" %>
- <%= f.text_field :name %>
- <%= f.label :body, "Comment Description" %>
- <%= f.text_area :body %> - <%= hidden_field_tag :post_id, @post.id %> -

- -

- <%= f.submit "Add Comment" %> -

-<% end %> - - -<%= link_to t('blog.edit'), edit_panel_blog_post_path(@post) %> | -<%= link_back %> \ No newline at end of file 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 deleted file mode 100644 index cd16cfc7..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_index.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -<%=stylesheet_link_tag "NewBlog/application"%> -
- - - - - - - <% @posts.each do |post| %> - - - - - <% end %> -
<%= t('blog.title') %><%= t('blog.body') %>
<%= link_to post.title,panel_blog_post_path(post) %><%= post.body.truncate(14) %>
-
\ 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 deleted file mode 100644 index 2312fc74..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/posts/widget_latest_post.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<%=stylesheet_link_tag "NewBlog/application"%> -
-

<%= @post.title %>

-

- <%= @post.body %> -

-
\ No newline at end of file diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/index.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/index.html.erb deleted file mode 100644 index 0ea7639f..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/index.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -<%=stylesheet_link_tag "NewBlog/application"%> -
- - - - - - - <% @posts.each do |post| %> - - - - - <% end %> -
<%= t('blog.title') %><%= t('blog.body') %>
<%= link_to post.title,panel_blog_front_end_post_path(post) %><%= post.body.truncate(14) %>
-
\ No newline at end of file diff --git a/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb b/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb deleted file mode 100644 index 2312fc74..00000000 --- a/vendor/plugins/NewBlog/app/views/panel/blog/widget/posts/latest_post.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<%=stylesheet_link_tag "NewBlog/application"%> -
-

<%= @post.title %>

-

- <%= @post.body %> -

-
\ No newline at end of file diff --git a/vendor/plugins/NewBlog/config/locales/zh_tw.yml b/vendor/plugins/NewBlog/config/locales/zh_tw.yml deleted file mode 100644 index d34b583d..00000000 --- a/vendor/plugins/NewBlog/config/locales/zh_tw.yml +++ /dev/null @@ -1,20 +0,0 @@ -zh_tw: - - _locale: 中文 - - add: 新增 - back: 回去 - create: 創造 - delete: 刪除 - disable: 禁用 - edit: 編輯 - enable: 啟用 - hide: 隱藏 - homepage: 首頁 - no_: "No" - nothing: 無 - show: 顯示 - sure?: 您肯定嗎? - update: 更新 - yes_: "Yes" - diff --git a/vendor/plugins/NewBlog/config/routes.rb b/vendor/plugins/NewBlog/config/routes.rb deleted file mode 100644 index b619df18..00000000 --- a/vendor/plugins/NewBlog/config/routes.rb +++ /dev/null @@ -1,13 +0,0 @@ -Rails.application.routes.draw do - - namespace :panel do - namespace :blog do - root :to => "posts#index" - resources :posts - resources :comments - match "widget_latest_post" => "posts#widget_latest_post" - match "widget_index" => "posts#widget_index" - end - end - -end