Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Byron authored and Jordan Byron committed Aug 9, 2011
1 parent f9b90da commit b1693b8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/helpers/application_helper.rb
Expand Up @@ -3,45 +3,45 @@ module ApplicationHelper
def current_area_id
controller.current_area_id
end

def current_treatment_area_id
controller.current_treatment_area_id
end

def title(page_title)
content_for(:title) { page_title }
end

def header(&block)
content_tag(:div, :class => "header") do
image_tag("logo_small.png") +
capture(&block)
image_tag("logo_small.png") +
capture(&block)
end
end

def app_version
'3.1 Beta'
'3.1'
end

def clinic_state
app_config["state"]
end

def real_currency(number)
number_to_currency(number,:delimiter => ",", :unit => "$ ",:separator => ".")
end

def body_css
if current_user.nil?
"logged_out"
"logged_out"
elsif current_user.user_type == UserType::ADMIN
"admin"
end
end

def link_to_reset(form_id)
link_to_function 'Reset Form',
"if (confirm('Are you sure you wish to reset this form?')) $('#{form_id}').reset();",
link_to_function 'Reset Form',
"if (confirm('Are you sure you wish to reset this form?')) $('#{form_id}').reset();",
:class => 'warning'
end
end

0 comments on commit b1693b8

Please sign in to comment.