aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-09 21:06:54 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-09 21:06:54 +1200
commit54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45 (patch)
tree62999b848f1c9c2054627901bc1eecc4a8651fb2 /app/views
parent832a0e4866cc0dd33dc6c1c4d5dc75e35152e553 (diff)
downloadrefinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.tar.gz
refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.tar.bz2
refinerycms-blog-54a0f6ebff34213422d7a5d6ac39c9b7b8dbbe45.zip
Set up menu and what is to come.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/blog/_submenu.html.erb51
-rw-r--r--app/views/admin/blog/comments/index.html.erb30
-rw-r--r--app/views/admin/blog/posts/index.html.erb15
3 files changed, 82 insertions, 14 deletions
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb
new file mode 100644
index 0000000..4c76227
--- /dev/null
+++ b/app/views/admin/blog/_submenu.html.erb
@@ -0,0 +1,51 @@
+<div id='actions'>
+ <ul>
+ <li>
+ <%= render :partial => "/shared/admin/search",
+ :locals => {
+ :url => admin_blog_posts_url
+ } %>
+ </li>
+ <li>
+ <%= link_to t('.posts.new'), new_admin_blog_post_url,
+ :class => "add_icon" %>
+ </li>
+ </ul>
+
+ <ul>
+ <li>
+ <%= link_to t('.comments.new'), admin_blog_comments_url %>
+ </li>
+ <li>
+ <%= link_to t('.comments.approved'), approved_admin_blog_comments_url %>
+ </li>
+ <li>
+ <%= link_to t('.comments.rejected'), rejected_admin_blog_comments_url %>
+ </li>
+ </ul>
+
+ <ul>
+ <li>
+ <%= link_to t('.categories.title'), admin_blog_categories_url %>
+ </li>
+ <li>
+ <%= link_to t('.categories.manage'), admin_blog_categories_url %>
+ </li>
+ <li>
+ <%= link_to t('.categories.new'), new_admin_blog_category_url(:dialog => true) %>
+ </li>
+ </ul>
+
+ <ul>
+ <li>
+ <%= link_to t('.settings.title'), admin_blog_settings_url %>
+ </li>
+ <li>
+ <%= link_to t('.settings.moderation'), moderation_admin_blog_settings_url %>
+ </li>
+ <li>
+ <%= link_to t('.settings.update_notified'), update_notified_admin_blog_settings_url(:dialog => true) %>
+ </li>
+ </ul>
+
+</div> \ No newline at end of file
diff --git a/app/views/admin/blog/comments/index.html.erb b/app/views/admin/blog/comments/index.html.erb
new file mode 100644
index 0000000..f27bae3
--- /dev/null
+++ b/app/views/admin/blog/comments/index.html.erb
@@ -0,0 +1,30 @@
+<%= render :partial => '/admin/blog/submenu' %>
+<div id='records'>
+ <% if searching? %>
+ <h2><%= t('admin.search_results_for', :query => params[:search]) %></h2>
+ <% if @blog_comments.any? %>
+ <%= render :partial => "blog_comments",
+ :collection => @blog_comments %>
+ <% else %>
+ <p><%= t('admin.search_no_results') %></p>
+ <% end %>
+ <% else %>
+ <% if @blog_comments.any? %>
+ <%= will_paginate @blog_comments,
+ :previous_label => '&laquo;',
+ :next_label => '&raquo;' %>
+
+ <%= render :partial => "sortable_list" %>
+
+ <%= will_paginate @blog_comments,
+ :previous_label => '&laquo;',
+ :next_label => '&raquo;' %>
+ <% 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/index.html.erb b/app/views/admin/blog/posts/index.html.erb
index 0bc14db..5b65962 100644
--- a/app/views/admin/blog/posts/index.html.erb
+++ b/app/views/admin/blog/posts/index.html.erb
@@ -1,17 +1,4 @@
-<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>
+<%= render :partial => '/admin/blog/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('admin.search_results_for', :query => params[:search]) %></h2>