browsercms-artirix 4.0.3.1 → 4.0.3.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae4d17c5e6cbace7c42e2bec824dc98ce500cc67
|
4
|
+
data.tar.gz: 140d9f6cc49b13a30ae2853b32913607d01b66ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
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.
|
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-
|
12
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|