refinerycms-portfolio 0.9.3 → 0.9.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@
4
4
  <li>
5
5
  <%= link_to "Create New Portfolio Entry", new_admin_portfolio_entry_url, :class => "add_icon" %>
6
6
  </li>
7
- <% if PortfolioEntry.any? %>
7
+ <% if PortfolioEntry.count > 1 %>
8
8
  <li>
9
9
  <%= link_to "Reorder Portfolio", "", :id => "reorder_action", :class => "reorder_icon" %>
10
10
  <%= link_to "Done Reordering Portfolio", "", :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %>
@@ -27,4 +27,4 @@
27
27
  </p>
28
28
  <% end %>
29
29
  </div>
30
- <%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => true } if PortfolioEntry.any? %>
30
+ <%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => true } if PortfolioEntry.count > 1 %>
data/rails/init.rb CHANGED
@@ -3,7 +3,7 @@ Refinery::Plugin.register do |plugin|
3
3
  plugin.title = "Portfolio"
4
4
  plugin.description = "Manage a portfolio"
5
5
  plugin.url = "/admin/#{plugin.title.downcase}"
6
- plugin.version = '0.9.3'
6
+ plugin.version = '0.9.3.5'
7
7
  plugin.menu_match = /admin\/portfolio(_entries)?/
8
8
  plugin.activity = {
9
9
  :class => PortfolioEntry,
data/readme.md CHANGED
@@ -23,13 +23,13 @@ Then run:
23
23
  refinerycms-portfolio-install /path/to/your/refinery/application
24
24
 
25
25
  Then place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
26
- config.gem "refinerycms-portfolio", :version => ">= 0.9.3", :lib => "portfolio", :source => "http://gemcutter.org"
26
+ config.gem "refinerycms-portfolio", :version => ">= 0.9.3.5", :lib => "portfolio", :source => "http://gemcutter.org"
27
27
 
28
28
  ..and follow the instructions!
29
29
 
30
30
  ### Method Two
31
31
  Place in your config/environment.rb (or config/application.rb for refinery 0.9.6.x) file before all other Refinery gem calls:
32
- config.gem "refinerycms-portfolio", :version => ">= 0.9.3", :lib => "portfolio", :source => "http://gemcutter.org"
32
+ config.gem "refinerycms-portfolio", :version => ">= 0.9.3.5", :lib => "portfolio", :source => "http://gemcutter.org"
33
33
 
34
34
  Then run in your application's directory:
35
35
  rake gems:install
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-portfolio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital