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
|
<div id='actions'>
<h2><%= t('.details')%></h2>
<p>
<strong><%= t('.age') %>:</strong> <%= time_ago_in_words(@blog_comment.created_at) %>
</p>
<h2><%= t('.actions') %></h2>
<ul>
<li>
<%= link_to t('.back'), {:action => 'index'}, :class => "back_icon" %>
</li>
<li>
<%= link_to t('.reject'), rejected_admin_blog_comment_path(@blog_comment, :return_to => 'rejected'),
:class => 'comment_cross_icon' unless @blog_comment.rejected? %>
</li>
<li>
<%= link_to t('.approve'), approved_admin_blog_comment_path(@blog_comment, :return_to => 'approved'),
:class => 'comment_tick_icon' unless @blog_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 @blog_comment.post.title,
blog_post_url(@blog_comment.post, :anchor => "comment-#{@blog_comment.to_param}"),
:target => '_blank' %>
</td>
</tr>
<tr>
<td>
<strong><%= t('.from') %></strong>
</td>
<td>
<%= @blog_comment.name %> [<%= mail_to @blog_comment.email, @blog_comment.email, {:title => t('.click_to_email')} %>]
</td>
</tr>
<tr>
<td>
<strong><%= t('.date') %></strong>
</td>
<td>
<%= l(Date.parse(@blog_comment.created_at.to_s), :format => :long) %>
</td>
</tr>
<tr>
<td valign='top'>
<strong><%= t('.message') %></strong>
</td>
<td>
<p style='margin-top: 0px'>
<%= @blog_comment.message.gsub("\r\n\r\n", "\r\n").gsub("\r\n", "</p><p>") %>
</p>
</td>
</tr>
</table>
</div>
<% if Refinery.version < '0.9.9' %>
<% content_for :head, stylesheet_link_tag('refinery/refinerycms-blog') %>
<% else %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog') %>
<% end %>
|