refinerycms 0.9.5.6 → 0.9.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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&amp;modal=true&amp;titlebar=true&amp;field=<%= f.object.class.name.downcase %>_<%= field %>&amp;update_image=current_picked_image&amp;callback=picked_image_changed&amp;thumbnail=&amp;KeepThis=true&amp;TB_iframe=true&amp;width=<%= width ||= 950 %>&amp;height=<%= height ||= 510 %>" style='border: 0px' title='Change Image' name='Change Image' class='thickbox'>
3
+ <a id='current_image_link' href="<%= insert_admin_images_url %>?thickbox=true&amp;modal=true&amp;titlebar=true&amp;field=<%= f.object.class.name.underscore.downcase %>_<%= field %>&amp;update_image=current_picked_image&amp;callback=picked_image_changed&amp;thumbnail=&amp;KeepThis=true&amp;TB_iframe=true&amp;width=<%= width ||= 950 %>&amp;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 Current Image", "", :id => "remove_picked_image", :style => "margin-top:8px;display:inline-block;width:auto;#{"display:none;" if image.nil?}" %>
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. Click here to add one.';
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&amp;modal=true&amp;titlebar=true&amp;field=<%= "#{f.object.class.name.downcase}_#{field}" %><%= "&amp;current_link=#{resource.public_filename unless resource.nil?}" %>&amp;update_resource=current_resource&amp;update_text=current_resource_text&amp;callback=resource_changed&amp;thumbnail=&amp;KeepThis=true&amp;TB_iframe=true&amp;width=<%= width ||= 950 %>&amp;height=<%= height ||= 510 %>" style='border: 0px' title='Change Resource' name='Change Resource' class='thickbox'>
3
+ <a id='current_resource_link' href="<%= insert_admin_resources_url %>?thickbox=true&amp;modal=true&amp;titlebar=true&amp;field=<%= "#{f.object.class.name.underscore.downcase}_#{field}" %><%= "&amp;current_link=#{resource.public_filename unless resource.nil?}" %>&amp;update_resource=current_resource&amp;update_text=current_resource_text&amp;callback=resource_changed&amp;KeepThis=true&amp;TB_iframe=true&amp;width=<%= width ||= 950 %>&amp;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 message file selected, click here to add one.
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
- <% unless resource.nil? %>
10
- Current message file:
11
- <span id='current_resource_text'>
12
- <%= "#{resource.title} (#{resource.public_filename})" %>
13
- </span>
14
- <br/>
15
- <%= link_to "#{refinery_icon_tag("page_white_put.png")} Download current message file (<em>Opens in a new window</em>)", resource.public_filename,
16
- :id => "current_resource",
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 Current Resource", "",
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,6 +1,6 @@
1
1
  <div id='body_content' class='clearfix'>
2
+ <h1><%%= page_title %></h1>
2
3
  <div id='body_content_left' class='clearfix'>
3
- <h1><%%= page_title %></h1>
4
4
  <ul id="<%= plural_name %>">
5
5
  <%% @<%= plural_name %>.each do |<%= singular_name %>| %>
6
6
  <li>
@@ -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>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5.6
4
+ version: 0.9.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital