summaryrefslogtreecommitdiffstats
path: root/app/views/settings
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-18 12:42:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-11-18 12:42:20 +0000
commit5495e6f3424f44faa16b4d03dfe1e76a30e50469 (patch)
treef37543a819979725a0a916af660e49095ff303e3 /app/views/settings
parent9c3e3a4276612f60552379518ab8c9a11319e73b (diff)
downloadredmine-5495e6f3424f44faa16b4d03dfe1e76a30e50469.tar.gz
redmine-5495e6f3424f44faa16b4d03dfe1e76a30e50469.zip
Introduce a setting to change the display format of timespans to h:mm (#23996).
Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15965 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/_display.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/settings/_display.html.erb b/app/views/settings/_display.html.erb
index be3e70e34..93eaa6ef4 100644
--- a/app/views/settings/_display.html.erb
+++ b/app/views/settings/_display.html.erb
@@ -15,6 +15,8 @@
<p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [::I18n.l(Time.now, :locale => locale, :format => f), f]}, :blank => :label_language_based %></p>
+<p><%= setting_select :timespan_format, [["%.2f" % 0.75, 'decimal'], ['0:45 h', 'minutes']], :blank => false %></p>
+
<p><%= setting_select :user_format, @options[:user_format] %></p>
<p><%= setting_check_box :gravatar_enabled %></p>