tkh_content 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/views/comments/_status_buttons.html.erb +4 -4
- data/app/views/comments/index.html.erb +6 -4
- data/lib/tkh_content/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cccb82e872d7ee7e8cb7b6eb65caf6f32b948403
|
4
|
+
data.tar.gz: 557e669ef942a12d7dcca007943ed01243e7b2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5836e28dbf7c917ae5dd76c2fe3175f2bf6740c45c4b6401cb2d71b89e9137e0184f6cda4452959429677798b9f12af42a1f90fb84cc0ed7d8cf8a8cbebf9c97
|
7
|
+
data.tar.gz: 7b15ae5e28a3c98670f6c9cfb02156f751ef9b18c72aa631d59fa335a42eb93a4bf34c5904ae871e071913e9429b66568f62ab06e165bed366c328844aca1188
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if comment.status == 'pending' %>
|
2
|
-
<%= link_to t('comments.moderation.actions.accept'), accept_comment_path(comment), method: :post, class: 'btn btn-
|
2
|
+
<%= link_to t('comments.moderation.actions.accept'), accept_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %><%= link_to t('comments.moderation.actions.block'), block_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %>
|
3
3
|
<% elsif comment.status == 'accepted' %>
|
4
|
-
<%= link_to t('comments.moderation.actions.block'), block_comment_path(comment), method: :post, class: 'btn btn-
|
4
|
+
<%= link_to t('comments.moderation.actions.block'), block_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %>
|
5
5
|
<% elsif comment.status == 'blocked' %>
|
6
|
-
<%= link_to t('comments.moderation.actions.accept'), accept_comment_path(comment), method: :post, class: 'btn btn-
|
7
|
-
<% end -%>
|
6
|
+
<%= link_to t('comments.moderation.actions.accept'), accept_comment_path(comment), method: :post, class: 'btn btn-xs btn-default' %>
|
7
|
+
<% end -%>
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
<%= render 'tab_admin_menu' %>
|
4
4
|
|
5
|
+
<%= will_paginate @comments %>
|
6
|
+
|
5
7
|
<table class='table table-striped'>
|
6
8
|
<thead>
|
7
9
|
<tr>
|
@@ -11,15 +13,15 @@
|
|
11
13
|
<th><%= t('actions') %></th>
|
12
14
|
</tr>
|
13
15
|
</thead>
|
14
|
-
|
16
|
+
|
15
17
|
<tbody>
|
16
18
|
<% @comments.each do |comment| %>
|
17
19
|
<tr>
|
18
20
|
<td><%= comment.author.name %> - <%= link_to comment.page.title, comment.page %> | <%= comment.locale %><br /><br />
|
19
|
-
|
20
|
-
|
21
|
+
<%= sanitize comment.body.gsub(/\r\n?/, "<br>"), :tags => %w(br), :attributes => %w() %></td>
|
22
|
+
|
21
23
|
<td><%= t("comments.status.#{comment.status}") %><%= t 'colon' %><%= render 'comments/status_buttons', comment: comment %></td>
|
22
|
-
<td><%= link_to t('edit'), edit_comment_path(comment), class: 'btn btn-
|
24
|
+
<td><%= link_to t('edit'), edit_comment_path(comment), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), comment, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %></td>
|
23
25
|
</tr>
|
24
26
|
<% end %>
|
25
27
|
</tbody>
|
data/lib/tkh_content/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swami Atma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|