tkh_content 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5cbf1cb7fb88e30f7d6b893147a73ca040f0a8b
4
- data.tar.gz: 138a344c191551187a4422728dbda7344cd90ff1
3
+ metadata.gz: cccb82e872d7ee7e8cb7b6eb65caf6f32b948403
4
+ data.tar.gz: 557e669ef942a12d7dcca007943ed01243e7b2c7
5
5
  SHA512:
6
- metadata.gz: 7998c8a46761a92b94ede7f7d17af0500a408d1e7b5d904d1313aafbf9f51af67168f84b9aaac01ce6c1fad86277740249dc6541ca1ae4b8e6db4eab8072bc40
7
- data.tar.gz: f6d527fa52f67828f9fffb7a519845a27b3526eb6e3291def250dfad0dd983099c287e426d24c94412fcff81bfcc650f87446bae82feaafa97ae7ba9f0eb0601
6
+ metadata.gz: 5836e28dbf7c917ae5dd76c2fe3175f2bf6740c45c4b6401cb2d71b89e9137e0184f6cda4452959429677798b9f12af42a1f90fb84cc0ed7d8cf8a8cbebf9c97
7
+ data.tar.gz: 7b15ae5e28a3c98670f6c9cfb02156f751ef9b18c72aa631d59fa335a42eb93a4bf34c5904ae871e071913e9429b66568f62ab06e165bed366c328844aca1188
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.4
6
+
7
+ * Aesthetic changes to the commend index view
8
+
9
+
5
10
  ## 0.9.3
6
11
 
7
12
  * Fixed the contact email validation format regex
@@ -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-mini' %><%= link_to t('comments.moderation.actions.block'), block_comment_path(comment), method: :post, class: 'btn btn-mini' %>
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-mini' %>
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-mini' %>
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
- <%= sanitize comment.body.gsub(/\r\n?/, "<br>"), :tags => %w(br), :attributes => %w() %></td>
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-mini' %><%= link_to t('delete'), comment, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td>
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>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
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.3
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-25 00:00:00.000000000 Z
11
+ date: 2014-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails