From: Jean-Philippe Lang Date: Sun, 15 Oct 2006 09:00:05 +0000 (+0000) Subject: git-svn-id: http://redmine.rubyforge.org/svn/trunk@31 e93f8b46-1217-0410-a6f0-8f06a73... X-Git-Tag: 0.4.0~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a1cfb3df94bf378dab357f3f05298038e0075df;p=redmine.git git-svn-id: http://redmine.rubyforge.org/svn/trunk@31 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/redmine/app/helpers/custom_fields_helper.rb b/redmine/app/helpers/custom_fields_helper.rb index 82ace311a..ac8b55565 100644 --- a/redmine/app/helpers/custom_fields_helper.rb +++ b/redmine/app/helpers/custom_fields_helper.rb @@ -54,6 +54,8 @@ module CustomFieldsHelper # Return a string used to display a custom value def show_value(custom_value) case custom_value.custom_field.field_format + when "date" + format_date(custom_value.value.to_date) when "bool" l_YesNo(custom_value.value == "1") else diff --git a/redmine/app/models/user.rb b/redmine/app/models/user.rb index ba489ac14..5ff19f2bc 100644 --- a/redmine/app/models/user.rb +++ b/redmine/app/models/user.rb @@ -88,7 +88,11 @@ class User < ActiveRecord::Base def active? self.status == STATUS_ACTIVE end - + + def registered? + self.status == STATUS_REGISTERED + end + def locked? self.status == STATUS_LOCKED end diff --git a/redmine/app/views/layouts/base.rhtml b/redmine/app/views/layouts/base.rhtml index 33ddd8f99..dc470f272 100644 --- a/redmine/app/views/layouts/base.rhtml +++ b/redmine/app/views/layouts/base.rhtml @@ -13,7 +13,7 @@ <%= javascript_include_tag 'calendar/calendar' %> <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %> <%= javascript_include_tag 'calendar/calendar-setup' %> -<%= stylesheet_link_tag 'calendar/calendar-blue' %> +<%= stylesheet_link_tag 'calendar' %>