Improved wiki layout for sidebar and version sections
* Added new helper function format_datetime_timespec
This commit is contained in:
parent
f7e24d26b4
commit
7ec5381ca0
7 changed files with 149 additions and 98 deletions
|
|
@ -12,6 +12,10 @@ module ApplicationHelper
|
|||
def format_datetime(time = Time.now)
|
||||
I18n.l(time) unless time.nil?
|
||||
end
|
||||
|
||||
def format_datetime_timespec(time, format)
|
||||
I18n.l(time, :format => format) unless (time.nil? or format.nil?)
|
||||
end
|
||||
|
||||
# Creates ajax-controlled-links for pagination
|
||||
# see also the plugin "will_paginate"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue