Mercurial > hg > soundsoftware-site
comparison app/helpers/queries_helper.rb @ 1494:e248c7af89ec redmine-2.4
Update to Redmine SVN revision 12979 on 2.4-stable branch
author | Chris Cannam |
---|---|
date | Mon, 17 Mar 2014 08:54:02 +0000 |
parents | 261b3d9a4903 |
children | dffacf8a6908 |
comparison
equal
deleted
inserted
replaced
1464:261b3d9a4903 | 1494:e248c7af89ec |
---|---|
1 # encoding: utf-8 | 1 # encoding: utf-8 |
2 # | 2 # |
3 # Redmine - project management software | 3 # Redmine - project management software |
4 # Copyright (C) 2006-2013 Jean-Philippe Lang | 4 # Copyright (C) 2006-2014 Jean-Philippe Lang |
5 # | 5 # |
6 # This program is free software; you can redistribute it and/or | 6 # This program is free software; you can redistribute it and/or |
7 # modify it under the terms of the GNU General Public License | 7 # modify it under the terms of the GNU General Public License |
8 # as published by the Free Software Foundation; either version 2 | 8 # as published by the Free Software Foundation; either version 2 |
9 # of the License, or (at your option) any later version. | 9 # of the License, or (at your option) any later version. |
153 when 'Float' | 153 when 'Float' |
154 sprintf("%.2f", value).gsub('.', l(:general_csv_decimal_separator)) | 154 sprintf("%.2f", value).gsub('.', l(:general_csv_decimal_separator)) |
155 when 'IssueRelation' | 155 when 'IssueRelation' |
156 other = value.other_issue(issue) | 156 other = value.other_issue(issue) |
157 l(value.label_for(issue)) + " ##{other.id}" | 157 l(value.label_for(issue)) + " ##{other.id}" |
158 when 'TrueClass' | |
159 l(:general_text_Yes) | |
160 when 'FalseClass' | |
161 l(:general_text_No) | |
158 else | 162 else |
159 value.to_s | 163 value.to_s |
160 end | 164 end |
161 end | 165 end |
162 | 166 |