diff options
Diffstat (limited to 'redmine/app/helpers/application_helper.rb')
-rw-r--r-- | redmine/app/helpers/application_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redmine/app/helpers/application_helper.rb b/redmine/app/helpers/application_helper.rb index 835ac4859..378545eb1 100644 --- a/redmine/app/helpers/application_helper.rb +++ b/redmine/app/helpers/application_helper.rb @@ -57,6 +57,10 @@ module ApplicationHelper def format_time(time)
l_datetime(time) if time
end
+
+ def day_name(day)
+ l(:general_day_names).split(',')[day-1]
+ end
def pagination_links_full(paginator, options={}, html_options={})
html = ''
@@ -76,6 +80,10 @@ module ApplicationHelper html
end
+ def textilizable(text)
+ $RDM_TEXTILE_DISABLED ? text : textilize(text)
+ end
+
def error_messages_for(object_name, options = {})
options = options.symbolize_keys
object = instance_variable_get("@#{object_name}")
|