aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/admin/comments/show.html.erb
blob: 5cd34f98488e2cbd2addf62253d7d20f79211c16 (plain) (tree)
1
2
3
4
5
6
7
8
9


                              
                                                                                    



                               
                                                                                         

         


                                                                                         

         


                                                                                           










                                               
                                        
                                                                                                      







                                          
                                                                                                              






                                          
                                                                        







                                             
                                                                                  



            
      
 
                                                                            
<div id='actions'>
  <h2><%= t('.details')%></h2>
  <p>
    <strong><%= t('.age') %>:</strong> <%= time_ago_in_words(@comment.created_at) %>
  </p>
  <h2><%= t('.actions') %></h2>
  <ul>
    <li>
      <%= link_to t('.back'), refinery.blog_admin_comments_path, :class => "back_icon" %>
    </li>
    <li>
    <%= link_to t('.reject'), refinery.reject_blog_admin_comment_path(@comment),
                              :method => :post,
                              :class => 'comment_cross_icon' unless @comment.rejected? %>
    </li>
    <li>
      <%= link_to t('.approve'), refinery.approve_blog_admin_comment_path(@comment),
                                 :method => :post,
                                 :class => 'comment_tick_icon' unless @comment.approved? %>
    </li>
  </ul>
</div>
<div id='records'>
  <h2><%= t('.comment') %></h2>
  <table id='inquiry'>
    <tr>
      <td>
        <strong><%= t('.blog_post') %></strong>
      </td>
      <td>
        <%= link_to @comment.post.title,
                    refinery.blog_post_path(@comment.post, :anchor => "comment-#{@comment.to_param}"),
                    :target => '_blank' %>
      </td>
    </tr>
    <tr>
      <td>
        <strong><%= t('.from') %></strong>
      </td>
      <td>
        <%= @comment.name %> [<%= mail_to @comment.email, @comment.email, {:title => t('.click_to_email')} %>]
      </td>
    </tr>
    <tr>
      <td>
        <strong><%= t('.date') %></strong>
      </td>
      <td>
        <%= l(Date.parse(@comment.created_at.to_s), :format => :long) %>
      </td>
    </tr>
    <tr>
      <td valign='top'>
        <strong><%= t('.message') %></strong>
      </td>
      <td>
        <p style='margin-top: 0px'>
          <%= @comment.message.gsub("\r\n\r\n", "\r\n").gsub("\r\n", "</p><p>") %>
        </p>
      </td>
    </tr>
  </table>
</div>

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