muck-engine 0.2.0 → 0.2.1

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.0
1
+ 0.2.1
@@ -143,7 +143,7 @@ module MuckEngineHelper
143
143
  def snippet(text, wordcount, omission)
144
144
  text.split[0..(wordcount-1)].join(" ") + (text.split.size > wordcount ? " " + omission : "")
145
145
  end
146
-
146
+
147
147
  def round(flt)
148
148
  return (((flt.to_f*100).to_i.round).to_f)/100.0
149
149
  end
@@ -168,4 +168,26 @@ module MuckEngineHelper
168
168
  render :partial => 'scripts/time_scripts', :locals => {:locale => locale}
169
169
  end
170
170
 
171
+ # Outputs include script for google ajax api
172
+ def google_ajax_api_scripts
173
+ return if defined?(@google_ajax_api_scripts_included)
174
+ script = '<script type="text/javascript" src="http://www.google.com/jsapi'
175
+ script << "?key=#{GlobalConfig.google_ajax_api_key}" if GlobalConfig.google_ajax_api_key
176
+ script << '"></script>'
177
+ @google_ajax_api_scripts_included = true
178
+ script
179
+ end
180
+
181
+ def google_ajax_slideshow_scripts
182
+ return if defined?(@google_ajax_slideshow_scripts_included)
183
+ @google_ajax_slideshow_scripts_included = true
184
+ '<script src="http://www.google.com/uds/solutions/slideshow/gfslideshow.js" type="text/javascript"></script>'
185
+ end
186
+
187
+ def google_load_feeds
188
+ return if defined?(@google_load_feeds_included)
189
+ @google_load_feeds_included = true
190
+ '<script type="text/javascript">google.load("feeds", "1");</script>'
191
+ end
192
+
171
193
  end
@@ -7,7 +7,7 @@ mt:
7
7
  choose_state: "Agħżel l-Istat"
8
8
  missing_parent_error: "Jekk jogħġbok speċifika l-oġġett prinċipali"
9
9
  select_country_prompt: "Jekk jogħġbok agħżel pajjiż"
10
- select_language_prompt: "Jekk jogħġbok agħżel lingwa"
10
+ select_language_prompt: "Jekk jogħġbok tagħżel lingwa"
11
11
  select_state_prompt: "Jekk jogħġbok agħżel stat"
12
12
  forms:
13
13
  please_enter_a_value: "Jekk joghgbok ikteb valur għal {{label}}"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-engine}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
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"]
12
- s.date = %q{2009-09-14}
12
+ s.date = %q{2009-10-01}
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{justinball@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -1,6 +1,7 @@
1
1
  /* general */
2
2
  .center{text-align:center;}
3
3
  #popup_wrapper{width:auto;}
4
+ .waiting{margin:3px 0;padding-left:20px;background:transparent url('/images/spinner.gif') no-repeat scroll left bottom;}
4
5
 
5
6
  /* forms */
6
7
  input{margin:0 10px 5px 0;padding:4px;font-size:1.3em;}
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-14 00:00:00 -06:00
12
+ date: 2009-10-01 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency