beef-admin_area 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -35,7 +35,7 @@ module Admin::BaseHelper
35
35
 
36
36
  def preview_link(object)
37
37
  url = url_for([:preview, :admin, object ])
38
- link_to_function 'Preview', "new Ajax.Updater('page_preview', '#{url}', {asynchronous:true, evalScripts:true, parameters: $(this).up('form').serialize() + '&assets=' + getAssetIDs('asset-list')})", :class => 'button'
38
+ link_to_function 'Preview', "if(tinyMCE) tinyMCE.triggerSave();new Ajax.Updater('page_preview', '#{url}', {asynchronous:true, evalScripts:true, parameters: $(this).up('form').serialize() + '&assets=' + getAssetIDs('asset-list')})", :class => 'button'
39
39
  end
40
40
 
41
41
  end
@@ -21,8 +21,8 @@
21
21
  <td><%=h user.name %></td>
22
22
  <td><%=h user.email %></td>
23
23
  <td><%=h user.role %></td>
24
- <td><%= link_to 'Edit', [:admin, user], :class => 'edit' %></td>
25
- <td><%= link_to 'Delete', [:admin, user], :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
24
+ <td><%= link_to 'Edit', [:admin, user], :class => 'edit', :title => 'Edit this user' %></td>
25
+ <td><%= link_to 'Delete', [:admin, user], :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this user' %></td>
26
26
  </tr>
27
27
  <% end %>
28
28
  </tbody>
@@ -63,5 +63,7 @@
63
63
  <!-- end footer -->
64
64
  </div>
65
65
  <!-- end screen -->
66
+
67
+ <%= javascript_tag "var AUTH_TOKEN = #{form_authenticity_token.inspect};" if protect_against_forgery? -%>
66
68
  </body>
67
69
  </html>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beef-admin_area}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
12
- s.date = %q{2010-01-26}
12
+ s.date = %q{2010-02-25}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -201,8 +201,8 @@ Gem::Specification.new do |s|
201
201
  s.rubygems_version = %q{1.3.5}
202
202
  s.summary = %q{Rails engine that provides a standard admin area with user managament}
203
203
  s.test_files = [
204
- "test/admin_area_test.rb",
205
- "test/test_helper.rb"
204
+ "test/test_helper.rb",
205
+ "test/admin_area_test.rb"
206
206
  ]
207
207
 
208
208
  if s.respond_to? :specification_version then
@@ -27,11 +27,7 @@
27
27
  </fieldset>
28
28
 
29
29
 
30
- <fieldset id="defensio"><legend>Defensio Settings</legend>
31
- <%= setting_form 'defensio_api_key' %>
32
- </fieldset>
33
-
34
- <fieldset id="defensio"><legend>Google Analytics Settings</legend>
30
+ <fieldset id="analytics"><legend>Google Analytics Settings</legend>
35
31
  <%= setting_form 'google_analytics_web_property_id' %>
36
32
  </fieldset>
37
33
 
@@ -96,7 +96,7 @@ var AJ = {
96
96
  },
97
97
 
98
98
  authenticity_token:function() {
99
- return AJ.encode_authenticity_token($$('input[name="authenticity_token"]')[0]);
99
+ return AJ.encode_authenticity_token(AUTH_TOKEN);
100
100
  },
101
101
 
102
102
  authenticity_token_query_parameter_for_page:function() {
@@ -434,11 +434,11 @@ a.right {
434
434
 
435
435
  ul#status {
436
436
  margin: 9px 30px 0 auto;
437
- padding: 5px 0 0 7px;
438
- width: 360px;
437
+ padding: 5px 7px 0 7px;
438
+ width: auto;
439
439
  height: 19px;
440
440
  background: url(/images/admin/info_bg.gif) repeat-x;
441
- white-space: nowrap;
441
+ float:right;
442
442
  }
443
443
 
444
444
 
@@ -26,9 +26,9 @@
26
26
  <% end -%>
27
27
  <% end -%>
28
28
  <td><%%=h <%= singular_name %>.created_at.to_formatted_s(:short_ordinal) %></td>
29
- <td><%%=h <%= singular_name %>.created_at.to_formatted_s(:short_ordinal) %></td>
30
- <td><%%= link_to 'Edit', admin_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit' %></td>
31
- <td><%%= link_to 'Destroy', admin_<%= singular_name %>_path(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
29
+ <td><%%=h <%= singular_name %>.updated_at.to_formatted_s(:short_ordinal) %></td>
30
+ <td><%%= link_to 'Edit', admin_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit', :title => 'Edit this <%= singular_name %>' %></td>
31
+ <td><%%= link_to 'Delete', admin_<%= singular_name %>_path(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this <%= singular_name %>' %></td>
32
32
  </tr>
33
33
  <%% end %>
34
34
  </tbody>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-admin_area
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve England
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-26 00:00:00 +00:00
12
+ date: 2010-02-25 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -259,5 +259,5 @@ signing_key:
259
259
  specification_version: 3
260
260
  summary: Rails engine that provides a standard admin area with user managament
261
261
  test_files:
262
- - test/admin_area_test.rb
263
262
  - test/test_helper.rb
263
+ - test/admin_area_test.rb