tkh_content 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cccb82e872d7ee7e8cb7b6eb65caf6f32b948403
4
- data.tar.gz: 557e669ef942a12d7dcca007943ed01243e7b2c7
3
+ metadata.gz: c4f00d2b653be2bc14e7eef874c700c003377fd1
4
+ data.tar.gz: e4760eac402657f6432372650bb58e9f0366b63a
5
5
  SHA512:
6
- metadata.gz: 5836e28dbf7c917ae5dd76c2fe3175f2bf6740c45c4b6401cb2d71b89e9137e0184f6cda4452959429677798b9f12af42a1f90fb84cc0ed7d8cf8a8cbebf9c97
7
- data.tar.gz: 7b15ae5e28a3c98670f6c9cfb02156f751ef9b18c72aa631d59fa335a42eb93a4bf34c5904ae871e071913e9429b66568f62ab06e165bed366c328844aca1188
6
+ metadata.gz: 239ceefbd19678e50369933cb9a19bfe4704039436511abda93f47082a11b4984c5afb6e8a3139238880610201de8b964bc20e425e1a76aefb5177fd0832c0ba
7
+ data.tar.gz: fe9458c483061a996f5d2e9f65829701fd47587f2e38807a768632e90b64e484c6bc5bd30770f5d1c52e48c9967495717c418edc4e951d78b1d14418bbf2dc48
data/CHANGELOG.md CHANGED
@@ -2,9 +2,16 @@
2
2
 
3
3
 
4
4
 
5
+
6
+
7
+ ## 0.9.5
8
+
9
+ * Debugged the drag and drop reordering of the pages in the page admin sidebar
10
+
11
+
5
12
  ## 0.9.4
6
13
 
7
- * Aesthetic changes to the commend index view
14
+ * Fixed up buttons in the comments section of admin panel
8
15
 
9
16
 
10
17
  ## 0.9.3
@@ -82,7 +82,7 @@ class PagesController < ApplicationController
82
82
 
83
83
  def sort
84
84
  params[:page].each_with_index do |id, index|
85
- Page.update_all({ menu_position: index+1 }, { id: id })
85
+ Page.update(id, menu_position: index+1)
86
86
  end
87
87
  render nothing: true
88
88
  end
@@ -6,20 +6,20 @@
6
6
  <ul>
7
7
  <li><%= link_to t('admin_panel'), pages_path %></li>
8
8
  <%= content_tag :li, link_to("#{t('activerecord.models.comments').capitalize} #{"(#{Comment.pending.count})"}", pending_comments_path) if Comment.pending.count > 0 %>
9
- <li><%= link_to t('pages.edit_this').capitalize, edit_page_path(page) %></li>
9
+ <li><%= link_to t('pages.edit_this').capitalize, edit_page_path(page) %></li>
10
10
  </ul>
11
-
11
+
12
12
  <% if Page.not_for_blog.orphans.published.any? %>
13
13
  <h3><%= t('pages.reorder_root_menus') %></h3>
14
14
  <ul class="draggable" data-update-url="<%= sort_pages_path %>">
15
15
  <% for page in Page.not_for_blog.orphans.published.by_menu_position %>
16
16
  <%= content_tag :li, page, class: 'page', id: "page_#{page.id}" do %>
17
- <%= image_tag 'drag-handle.gif', :class => 'handle silhouette' %> <%= page.nickname -%>
17
+ <%= image_tag 'admin/drag-handle.gif', :class => 'handle silhouette' %> <%= page.nickname -%>
18
18
  <% end -%>
19
19
  <% end %>
20
20
  </ul>
21
21
  <% end %>
22
-
22
+
23
23
  <% end -%>
24
24
 
25
- <% end -%>
25
+ <% end -%>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
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.4
4
+ version: 0.9.5
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-27 00:00:00.000000000 Z
11
+ date: 2014-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails