refinerycms-portfolio 0.9.8.rc4 → 0.9.8.rc5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,12 +5,4 @@ class Admin::PortfolioController < Admin::BaseController
5
5
  :conditions => {:parent_id => nil},
6
6
  :sortable => true
7
7
 
8
- def emancipate
9
- if (entry = PortfolioEntry.find(params[:id])).present?
10
- entry.update_attribute(:parent_id, (entry.parent.present? ? entry.parent.parent_id : nil))
11
- end
12
-
13
- redirect_to :action => "index"
14
- end
15
-
16
8
  end
@@ -13,9 +13,6 @@
13
13
  :title => t('.view_live') %>
14
14
  <%= link_to refinery_icon_tag('application_edit.png'), edit_admin_portfolio_entry_path(list),
15
15
  :title => t('.edit_this_entry') %>
16
- <%= link_to refinery_icon_tag('arrow_up.png'),
17
- emancipate_admin_portfolio_entry_url(list),
18
- :title => t('.move_this_entry_up') if list.parent.present? %>
19
16
  <%= link_to refinery_icon_tag('delete.png'), admin_portfolio_entry_path(list),
20
17
  :class => "cancel confirm-delete",
21
18
  :title => t('.confirm_delete_entry_title'),
@@ -26,7 +26,7 @@
26
26
  <%= link_to t('.create_new_portfolio_entry'), new_admin_portfolio_entry_url,
27
27
  :class => "add_icon" %>
28
28
  </li>
29
- <% if @portfolio_entries.many? %>
29
+ <% if @portfolio_entries.many? and !searching? %>
30
30
  <li>
31
31
  <%= link_to t('.reorder_portfolio'), "",
32
32
  :id => "reorder_action",
@@ -39,5 +39,7 @@
39
39
  <% end %>
40
40
  </ul>
41
41
  </div>
42
+ <% content_for :head_after_javascript_libraries,
43
+ javascript_include_tag('refinery/nestedsortables.js') if Refinery.version < '0.9.9' -%>
42
44
  <%= render :partial => "/shared/admin/make_sortable",
43
45
  :locals => { :tree => ::Refinery::Portfolio.multi_level? } if @portfolio_entries.many? %>
@@ -1,7 +1,7 @@
1
1
  module Refinery
2
2
  module Portfolio
3
3
  def self.version
4
- %q{0.9.8.rc4}
4
+ %q{0.9.8.rc5}
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-portfolio
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940517
4
+ hash: 977940514
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 8
10
- - rc4
11
- version: 0.9.8.rc4
10
+ - rc5
11
+ version: 0.9.8.rc5
12
12
  platform: ruby
13
13
  authors:
14
14
  - Resolve Digital