aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin/blog/_submenu.html.erb
blob: 9d068980856ebb773dd69512c02e6bda24da4c79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<nav id='actions' class='multilist'>
  <ul class='search_list'>
    <li class='not_a_link'>
      <%= render :partial => "/shared/admin/search",
                 :locals => {
                   :url => admin_blog_posts_url
                 } %>
    </li>
  </ul>

  <ul class='collapsible_menu'>
    <li class='not_a_link'>
      <%= link_to t('.posts.title'), '#',
                   :class => 'page_copy_icon' %>
    </li>
    <li>
      <%= link_to t('.posts.manage'), admin_blog_posts_path,
                   :class => 'page_icon' %>
    </li>
    <li>
      <%= link_to t('.posts.uncategorized'), uncategorized_admin_blog_posts_url,
                  :class => 'page_icon' %>
    </li>
    <li>
       <%= link_to t('.posts.new'), new_admin_blog_post_url,
                   :class => 'page_add_icon' %>
    </li>
  </ul>
  <% if BlogPost.comments_allowed? %>
    <ul class='collapsible_menu'>
      <li class='not_a_link'>
        <% if BlogComment.unmoderated.any? %>
          <% title = t('.comments.title_with_count', :new_count => BlogComment.unmoderated.size) %>
        <% else %>
          <% title = t('.comments.title') %>
        <% end %>
        <%= link_to title, '#',
                    :class => 'comments_icon' %>
      </li>
      <li>
        <%= link_to t('.comments.new'), admin_blog_comments_path,
                    :class => 'comment_icon' %>
      </li>
      <li>
        <%= link_to t('.comments.approved'), approved_admin_blog_comments_path,
                    :class => 'comment_tick_icon' %>
      </li>
      <li>
        <%= link_to t('.comments.rejected'), rejected_admin_blog_comments_path,
                    :class => 'comment_cross_icon' %>
      </li>
    </ul>
  <% end %>

  <ul class='collapsible_menu'>
    <li class='not_a_link'>
      <%= link_to t('.categories.title'), '#',
                  :class => 'folder_icon' %>
    </li>
    <li>
      <%= link_to t('.categories.manage'), admin_blog_categories_url,
                  :class => 'folder_edit_icon' %>
    </li>
    <li>
      <%= link_to t('.categories.new'), new_admin_blog_category_url(:dialog => true, :height => 325),
                  :class => 'folder_add_icon' %>
    </li>
  </ul>

  <ul class='collapsible_menu'>
    <li class='not_a_link'>
      <%= link_to t('.settings.title'), admin_blog_settings_path,
                  :class => 'settings_icon' %>
    </li>
    <li>
      <%= link_to t('.settings.comments'), comments_admin_blog_settings_url,
                  :class => "#{BlogPost.comments_allowed? ? 'success' : 'failure'}_icon" %>
    </li>
    <li>
      <%= link_to t('.settings.moderation'), moderation_admin_blog_settings_url,
                  :class => "#{BlogComment::Moderation.enabled? ? 'success' : 'failure'}_icon" %>
    </li>
    <li>
      <%= link_to t('.settings.update_notified'),
                  notification_recipients_admin_blog_settings_url(:dialog => true, :height => 400),
                  :class => 'user_comment_icon' %>
    </li>
  </ul>

</nav>

<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog')%>