diff options
author | Philip Arndt <parndt@gmail.com> | 2010-08-09 19:31:22 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-08-09 19:31:22 +1200 |
commit | a5fe9225fac33f15e972599132c7f569cc5cf397 (patch) | |
tree | f58e7405a03546a37e26f2f1c2694ee12e93fc7d /app/views/admin/blog_posts | |
parent | 30df46503cf3176a37ad08ff50da7fa25b43e662 (diff) | |
download | refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.gz refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.tar.bz2 refinerycms-blog-a5fe9225fac33f15e972599132c7f569cc5cf397.zip |
Namespaced blog posts under blog/posts to allow for blog/comments and blog/categories
Diffstat (limited to 'app/views/admin/blog_posts')
-rw-r--r-- | app/views/admin/blog_posts/_blog_post.html.erb | 16 | ||||
-rw-r--r-- | app/views/admin/blog_posts/_form.html.erb | 25 | ||||
-rw-r--r-- | app/views/admin/blog_posts/_sortable_list.html.erb | 7 | ||||
-rw-r--r-- | app/views/admin/blog_posts/edit.html.erb | 1 | ||||
-rw-r--r-- | app/views/admin/blog_posts/index.html.erb | 43 | ||||
-rw-r--r-- | app/views/admin/blog_posts/new.html.erb | 1 |
6 files changed, 0 insertions, 93 deletions
diff --git a/app/views/admin/blog_posts/_blog_post.html.erb b/app/views/admin/blog_posts/_blog_post.html.erb deleted file mode 100644 index b56a050..0000000 --- a/app/views/admin/blog_posts/_blog_post.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(blog_post) -%>"> - <span class='title'> - <%=h blog_post.title %> - <span class="preview"> </span> - </span> - <span class='actions'> - <%= link_to refinery_icon_tag("application_go.png"), blog_post_url(blog_post), - :title => t('.view_live'), - :target => "_blank" %> - <%= link_to refinery_icon_tag("application_edit.png"), edit_admin_blog_post_path(blog_post), - :title => t('.edit') %> - <%= link_to refinery_icon_tag("delete.png"), admin_blog_post_path(blog_post), - :class => "cancel confirm-delete", - :title => t('.delete') %> - </span> -</li> diff --git a/app/views/admin/blog_posts/_form.html.erb b/app/views/admin/blog_posts/_form.html.erb deleted file mode 100644 index 5d9f347..0000000 --- a/app/views/admin/blog_posts/_form.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<% form_for [:admin, @blog_post] do |f| -%> - <%= f.error_messages %> - - <div class='field'> - <%= f.label :title -%> - <%= f.text_field :title, :class => 'larger widest' -%> - </div> - - <div class='field'> - <%= f.label :body -%> - <%= f.text_area :body, :rows => 20, :class => 'wymeditor widest' -%> - </div> - - <div class='field'> - <%= f.label :draft -%> - <%= f.check_box :draft -%> - </div> - - <%= render :partial => "/shared/admin/form_actions", - :locals => { - :f => f, - :continue_editing => false, - :delete_title => t('admin.blogs.blogs.delete') - } %> -<% end -%> diff --git a/app/views/admin/blog_posts/_sortable_list.html.erb b/app/views/admin/blog_posts/_sortable_list.html.erb deleted file mode 100644 index 3529b23..0000000 --- a/app/views/admin/blog_posts/_sortable_list.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -<ul id='sortable_list'> - <%= render :partial => 'blog_post', :collection => @blog_posts %> -</ul> -<%= render :partial => "/shared/admin/sortable_list", - :locals => { - :continue_reordering => (defined?(continue_reordering) ? continue_reordering : true) - } %> diff --git a/app/views/admin/blog_posts/edit.html.erb b/app/views/admin/blog_posts/edit.html.erb deleted file mode 100644 index 2872e82..0000000 --- a/app/views/admin/blog_posts/edit.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render :partial => "form" %> diff --git a/app/views/admin/blog_posts/index.html.erb b/app/views/admin/blog_posts/index.html.erb deleted file mode 100644 index 0bc14db..0000000 --- a/app/views/admin/blog_posts/index.html.erb +++ /dev/null @@ -1,43 +0,0 @@ -<div id='actions'> - <ul> - <li> - <%= render :partial => "/shared/admin/search", - :locals => { - :url => admin_blog_posts_url - } %> - </li> - <li> - <%= link_to t('.create_new'), new_admin_blog_post_url, - :class => "add_icon" %> - </li> - </ul> -</div> -<div id='records'> - <% if searching? %> - <h2><%= t('admin.search_results_for', :query => params[:search]) %></h2> - <% if @blog_posts.any? %> - <%= render :partial => "blog_posts", - :collection => @blog_posts %> - <% else %> - <p><%= t('admin.search_no_results') %></p> - <% end %> - <% else %> - <% if @blog_posts.any? %> - <%= will_paginate @blog_posts, - :previous_label => '«', - :next_label => '»' %> - - <%= render :partial => "sortable_list" %> - - <%= will_paginate @blog_posts, - :previous_label => '«', - :next_label => '»' %> - <% else %> - <p> - <strong> - <%= t('.no_items_yet') %> - </strong> - </p> - <% end %> - <% end %> -</div>
\ No newline at end of file diff --git a/app/views/admin/blog_posts/new.html.erb b/app/views/admin/blog_posts/new.html.erb deleted file mode 100644 index 2872e82..0000000 --- a/app/views/admin/blog_posts/new.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render :partial => "form" %> |