refinerycms 0.9.5.6 → 0.9.5.7
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.
- data/vendor/plugins/refinery/app/views/shared/admin/_image_picker.html.erb +5 -5
- data/vendor/plugins/refinery/app/views/shared/admin/_resource_picker.html.erb +13 -20
- data/vendor/plugins/refinery/lib/generators/refinery/templates/views/index.html.erb +1 -1
- data/vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb +3 -3
- metadata +1 -1
@@ -1,17 +1,17 @@
|
|
1
1
|
<%= f.hidden_field field %>
|
2
2
|
<div>
|
3
|
-
<a id='current_image_link' href="<%= insert_admin_images_url %>?thickbox=true&modal=true&titlebar=true&field=<%= f.object.class.name.downcase %>_<%= field %>&update_image=current_picked_image&callback=picked_image_changed&thumbnail=&KeepThis=true&TB_iframe=true&width=<%= width ||= 950 %>&height=<%= height ||= 510 %>" style='border: 0px' title='Change
|
3
|
+
<a id='current_image_link' href="<%= insert_admin_images_url %>?thickbox=true&modal=true&titlebar=true&field=<%= f.object.class.name.underscore.downcase %>_<%= field %>&update_image=current_picked_image&callback=picked_image_changed&thumbnail=&KeepThis=true&TB_iframe=true&width=<%= width ||= 950 %>&height=<%= height ||= 510 %>" style='border: 0px' title='Change <%= (description ||= "image").titleize %>' name='Change <%= (description ||= "image").titleize %>' class='thickbox'>
|
4
4
|
<% unless image.nil? %>
|
5
5
|
<%= image_fu image, nil, {:class => "brown_border", :id => "current_picked_image"} %>
|
6
6
|
<% else %>
|
7
7
|
<img id="current_picked_image" class="" src="" alt="" style='display: none' />
|
8
8
|
<% end %>
|
9
9
|
<p id='no_picked_image_selected' <%= "style='display: none;'" unless image.nil? %>>
|
10
|
-
There is currently no image selected, please click here to add one.
|
10
|
+
There is currently no <%= description ||= "image" %> selected, please click here to add one.
|
11
11
|
</p>
|
12
12
|
</a>
|
13
13
|
<br/>
|
14
|
-
<%= link_to "Remove
|
14
|
+
<%= link_to "Remove current #{description ||= "image"}", "", :id => "remove_picked_image", :style => "margin-top:8px;display:inline-block;width:auto;#{"display:none;" if image.nil?}" %>
|
15
15
|
</div>
|
16
16
|
<% content_for :head do %>
|
17
17
|
<script type='text/javascript'>
|
@@ -28,8 +28,8 @@
|
|
28
28
|
{
|
29
29
|
$('current_picked_image').removeClassName('brown_border');
|
30
30
|
$('current_picked_image').src = '';
|
31
|
-
$('current_picked_image').alt = 'There is currently no image selected
|
32
|
-
$('<%= f.object.class.name.downcase %>_<%= field %>').value = '';
|
31
|
+
$('current_picked_image').alt = 'There is currently no <%= description ||= "image" %> selected, please click here to add one.';
|
32
|
+
$('<%= f.object.class.name.underscore.downcase %>_<%= field %>').value = '';
|
33
33
|
$('current_picked_image').style.width = "auto";
|
34
34
|
$('current_picked_image').style.height = "auto";
|
35
35
|
$('no_picked_image_selected').show();
|
@@ -1,29 +1,22 @@
|
|
1
1
|
<%= f.hidden_field field %>
|
2
2
|
<div>
|
3
|
-
<a id='current_resource_link' href="<%= insert_admin_resources_url %>?thickbox=true&modal=true&titlebar=true&field=<%= "#{f.object.class.name.downcase}_#{field}" %><%= "&current_link=#{resource.public_filename unless resource.nil?}" %>&update_resource=current_resource&update_text=current_resource_text&callback=resource_changed&
|
3
|
+
<a id='current_resource_link' href="<%= insert_admin_resources_url %>?thickbox=true&modal=true&titlebar=true&field=<%= "#{f.object.class.name.underscore.downcase}_#{field}" %><%= "&current_link=#{resource.public_filename unless resource.nil?}" %>&update_resource=current_resource&update_text=current_resource_text&callback=resource_changed&KeepThis=true&TB_iframe=true&width=<%= width ||= 950 %>&height=<%= height ||= 510 %>" style='border: 0px' title='Add <%= (description ||= "resource").titleize %>' name='Add <%= (description ||= "resource").titleize %>' class='thickbox'>
|
4
4
|
<span id='no_resource_selected' <%= "style='display: none;'" unless resource.nil? %>>
|
5
|
-
There is currently no
|
5
|
+
There is currently no <%= description ||= "resource" %> selected, click here to add one.
|
6
6
|
</span>
|
7
7
|
</a>
|
8
|
-
<div id='current_resource_container'
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
:target => "_blank" %>
|
18
|
-
<% else %>
|
19
|
-
<%= link_to "#{refinery_icon_tag("page_white_put.png")} Download current message file (<em>Opens in a new window</em>)", "",
|
20
|
-
:id => "current_resource",
|
21
|
-
:style => "display:none;",
|
22
|
-
:target => "_blank" %>
|
23
|
-
<% end %>
|
8
|
+
<div id='current_resource_container' <%= "style='display:none'" if resource.nil? %>>
|
9
|
+
Current <%= description ||= "resource" %>:
|
10
|
+
<span id='current_resource_text'>
|
11
|
+
<%= "#{resource.title} (#{resource.public_filename})" unless resource.nil? %>
|
12
|
+
</span>
|
13
|
+
<br/>
|
14
|
+
<%= link_to "#{refinery_icon_tag("page_white_put.png")} Download current #{description ||= "resource"} (<em>Opens in a new window</em>)", "#{resource.public_filename unless resource.nil?}",
|
15
|
+
:id => "current_resource",
|
16
|
+
:target => "_blank" %>
|
24
17
|
</div>
|
25
18
|
<br/>
|
26
|
-
<%= link_to "Remove
|
19
|
+
<%= link_to "Remove current #{description ||= "resource"}", "",
|
27
20
|
:id => "remove_resource",
|
28
21
|
:style => "margin-top:8px;display:inline-block;width:auto;#{"display:none;" if resource.nil?}" %>
|
29
22
|
</div>
|
@@ -39,7 +32,7 @@
|
|
39
32
|
|
40
33
|
FastInit.addOnLoad(function() {
|
41
34
|
$('remove_resource').observe('click', function(e) {
|
42
|
-
$('<%= f.object.class.name.downcase %>_<%= field %>').value = "";
|
35
|
+
$('<%= f.object.class.name.underscore.downcase %>_<%= field %>').value = "";
|
43
36
|
$('current_resource_container').hide();
|
44
37
|
$('current_resource_text').innerHTML = '';
|
45
38
|
$('no_resource_selected').show();
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div id='body_content' class='clearfix'>
|
2
|
+
<h1>
|
3
|
+
<%%= @<%= singular_name %>.<%= attributes.first.name %> %>
|
4
|
+
</h1>
|
2
5
|
<div id='body_content_left' class='clearfix'>
|
3
|
-
<h1>
|
4
|
-
<%%= @<%= singular_name %>.<%= attributes.first.name %> %>
|
5
|
-
</h1>
|
6
6
|
<% attributes.each do |attribute| %>
|
7
7
|
<div>
|
8
8
|
<h3><%= attribute.name.titleize %></h3>
|