anytime 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/config/routes.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  TimeApp::Application.routes.draw do
2
2
 
3
3
  match 'freeze' => 'anytime#freeze'
4
+ match 'unfreeze' => 'anytime#unfreeze'
4
5
  end
@@ -2,8 +2,8 @@ module AnytimeHelper
2
2
  def anytime_tag(time_option=false)
3
3
  if Rails.env.eql? 'development'
4
4
  form_content = date_selector.safe_concat(form_submitter)
5
- form_tag = content_tag_string(:form, form_content, :action => "/freeze", :method => :post)
6
- form_tag.safe_concat(unfreeze_button || "")
5
+ form_content.safe_concat(unfreeze_button) if Anytime.is_frozen?
6
+ content_tag_string(:form, form_content, :action => "/freeze", :method => :post)
7
7
  end
8
8
  end
9
9
 
@@ -17,6 +17,6 @@ module AnytimeHelper
17
17
  end
18
18
 
19
19
  def unfreeze_button
20
- button_to "Unfreeze", "/unfreeze" if Anytime.is_frozen?
20
+ "<a href='/unfreeze'><input type='button' value='unfreeze'></a>"
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anytime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: