browsercms-artirix 4.0.3.1 → 4.0.3.2

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: b7ebf48beb3eb5d352f11e7160027c949dc330b3
4
- data.tar.gz: 143fd2e19e2a92d576ca3bf2088a92b22456e353
3
+ metadata.gz: ae4d17c5e6cbace7c42e2bec824dc98ce500cc67
4
+ data.tar.gz: 140d9f6cc49b13a30ae2853b32913607d01b66ed
5
5
  SHA512:
6
- metadata.gz: bbf4a8304f91d36f34c2ddaf3d3831e38367169e4f4b1f48a11483f137e82f08603bf3db9d455b5d7029e11d70aacd9b5c7115e1f6951e80eb6c46cbf41c0dad
7
- data.tar.gz: d214c2e335b0b1b01dbcffee34810482260471c9ff4efee4317f88ebdb0f406678f05ad7899721622ebbdfbe440462ccbaa348b7bc7996287294c5a09c0af3d8
6
+ metadata.gz: 3490841afda0449bf7e99fbf3a2da98d2c1ffa01f170abca0f2f0e2cca28f51608d72a1091e2195b67449426cda8347731d6809b24915727e33542aae35a8039
7
+ data.tar.gz: a62624874ca6f42a8846c893307ff2e859021e1326ce43253fa7d96af27396213748d68702c1e4659f7666ec32ceb60fcd29dc347673b47075a91ab097c91082
@@ -38,12 +38,12 @@ module Cms
38
38
  options[:class] = [cname]
39
39
  options[:class] << 'non-editable' unless can_modify && current_user.able_to?(:edit_content)
40
40
  options[:class] << 'non-publishable' unless can_modify && current_user.able_to?(:publish_content)
41
- options['data-new_path'] = url_for(new_engine_aware_path(block))
41
+ options['data-new_path'] = url_for(new_engine_aware_path(block)) unless block.try :readonly?
42
42
  options['data-view_path'] = url_for(engine_aware_path(block, nil))
43
- options['data-edit_path'] = url_for(edit_engine_aware_path(block))
43
+ options['data-edit_path'] = url_for(edit_engine_aware_path(block)) unless block.try :readonly?
44
44
  options['data-preview_path'] = block.path if block.class.addressable?
45
45
  options['data-versions_path'] = engine(block).polymorphic_path(block, action: :versions) if block.class.versioned?
46
- options['data-delete_path'] = url_for(engine_aware_path(block))
46
+ options['data-delete_path'] = url_for(engine_aware_path(block)) unless block.try :readonly?
47
47
  options['data-publish_path'] = engine(block).polymorphic_path([:publish, block]) if block.class.publishable?
48
48
  tag "tr", options, true
49
49
  end
@@ -5,14 +5,17 @@
5
5
  ),
6
6
 
7
7
  :class=>"btn btn-small btn-primary" %></dt>
8
- <dd>Or choose another content types to add:</p>
9
- <ul>
10
- <% @content_types.each_with_index do |type, i| %>
11
- <li><%= link_to h(type.display_name), new_engine_aware_path(type,
12
- "#{type.param_key}[connect_to_page_id]" => params[:connect_to_page_id],
13
- "#{type.param_key}[connect_to_container]" => params[:connect_to_container]
14
- ), :target=> "_top" %></li>
15
- <% end %>
16
- </ul></dd>
8
+ <dd>
9
+ <p>Or choose another content types to add:</p>
10
+ <ul>
11
+ <% @content_types.reject(&:readonly?).each do |type| %>
12
+ <li><%= link_to h(type.display_name), new_engine_aware_path(type,
13
+ "#{type.param_key}[connect_to_page_id]" => params[:connect_to_page_id],
14
+ "#{type.param_key}[connect_to_container]" => params[:connect_to_container]
15
+ ), :target=> "_top" %>
16
+ </li>
17
+ <% end %>
18
+ </ul>
19
+ </dd>
17
20
  </dl>
18
21
 
data/lib/cms/version.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  # Allows the precise version of BrowserCMS to be determined programatically.
3
3
  #
4
4
  module Cms
5
- VERSION = '4.0.3.1'
5
+ VERSION = '4.0.3.2'
6
6
 
7
7
  # Return the current version of the CMS.
8
8
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browsercms-artirix
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3.1
4
+ version: 4.0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BrowserMedia
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-15 00:00:00.000000000 Z
12
+ date: 2015-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails