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 +1 -0
- data/lib/app/helpers/anytime_helper.rb +3 -3
- metadata +1 -1
data/config/routes.rb
CHANGED
@@ -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
|
-
|
6
|
-
|
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
|
-
|
20
|
+
"<a href='/unfreeze'><input type='button' value='unfreeze'></a>"
|
21
21
|
end
|
22
22
|
end
|