muck-engine 0.4.4 → 0.4.5
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/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.5
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<% if button_type == :text -%>
|
|
2
|
-
<%=
|
|
2
|
+
<%= link_to( button_text, :url => delete_path, :method => :delete, :html => { :class => 'muck_ajax_delete_control ajax-delete' }) %>
|
|
3
3
|
<% else -%>
|
|
4
|
-
<%
|
|
4
|
+
<% form_for(delete_object, :url => delete_path, :html => { :class => "ajax delete-form #{form_class}", :method => :delete } ) do |f| -%>
|
|
5
5
|
<% if button_type == :image -%>
|
|
6
6
|
<%= image_submit_tag '/images/icons/delete.png', :title => button_text, :width => '15', :height => '15', :alt => button_text, :class => 'muck_ajax_delete_control' %>
|
|
7
7
|
<% else -%>
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
<% end -%>
|
|
12
12
|
<% unless defined?(@delete_waiting_text_inserted) -%>
|
|
13
13
|
<div id="muck_ajax_delete_control_message" style="display:none;"><span class="waiting"><%= t('muck.general.deleting') %></span></div>
|
|
14
|
-
<% @delete_waiting_text_inserted = true
|
|
14
|
+
<% @delete_waiting_text_inserted = true -%>
|
|
15
15
|
<% end -%>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= page_alert(message) %>
|
|
@@ -20,6 +20,11 @@ module ActionController
|
|
|
20
20
|
request.env["HTTP_USER_AGENT"] && request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
# Output a simple javascript message
|
|
24
|
+
def page_alert(message)
|
|
25
|
+
render :template => 'shared/page_alert'
|
|
26
|
+
end
|
|
27
|
+
|
|
23
28
|
# **********************************************
|
|
24
29
|
# Locale methods
|
|
25
30
|
# I18n methods from:
|
data/lib/muck_test_helper.rb
CHANGED
data/muck-engine.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{muck-engine}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.5"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin"]
|
|
12
|
-
s.date = %q{2010-02-
|
|
12
|
+
s.date = %q{2010-02-10}
|
|
13
13
|
s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
|
|
14
14
|
s.email = %q{justin@tatemae.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -63,6 +63,7 @@ Gem::Specification.new do |s|
|
|
|
63
63
|
"app/views/shared/_growl.html.erb",
|
|
64
64
|
"app/views/shared/_growl_box.html.erb",
|
|
65
65
|
"app/views/shared/_no_result.html.erb",
|
|
66
|
+
"app/views/shared/page_alert.js.erb",
|
|
66
67
|
"config/muck_engine_routes.rb",
|
|
67
68
|
"db/migrate/20090402234137_create_languages.rb",
|
|
68
69
|
"db/migrate/20090426041056_create_countries.rb",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muck-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Ball
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2010-02-
|
|
13
|
+
date: 2010-02-10 00:00:00 -07:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -109,6 +109,7 @@ files:
|
|
|
109
109
|
- app/views/shared/_growl.html.erb
|
|
110
110
|
- app/views/shared/_growl_box.html.erb
|
|
111
111
|
- app/views/shared/_no_result.html.erb
|
|
112
|
+
- app/views/shared/page_alert.js.erb
|
|
112
113
|
- config/muck_engine_routes.rb
|
|
113
114
|
- db/migrate/20090402234137_create_languages.rb
|
|
114
115
|
- db/migrate/20090426041056_create_countries.rb
|