aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/creation_helper.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/helpers/creation_helper.rb b/app/helpers/creation_helper.rb
new file mode 100644
index 000000000..167f2f01b
--- /dev/null
+++ b/app/helpers/creation_helper.rb
@@ -0,0 +1,15 @@
+module CreationHelper
+
+ def creation_tag(object)
+ field_set_tag t("layouts.creation_tag.title") do
+ content_tag :ul do
+ [(content_tag :li do
+ object.human_attribute_name('creation_time') + ' : ' + l(object.creation_time, :format => :short)
+ end),
+ (content_tag :li do
+ object.human_attribute_name('creator_id') + ' : ' + object.creator_id if object.creator_id
+ end)].join.html_safe
+ end
+ end
+ end
+end