##// END OF EJS Templates
remove trailing white-spaces from app/helpers/queries_helper.rb....
Toshi MARUYAMA -
r6767:2230dfda51cd
parent child
Show More
@@ -5,31 +5,31
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 #
8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 #
13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 18 module QueriesHelper
19
19
20 20 def operators_for_select(filter_type)
21 21 Query.operators_by_filter_type[filter_type].collect {|o| [l(Query.operators[o]), o]}
22 22 end
23
23
24 24 def column_header(column)
25 25 column.sortable ? sort_header_tag(column.name.to_s, :caption => column.caption,
26 :default_order => column.default_order) :
26 :default_order => column.default_order) :
27 27 content_tag('th', h(column.caption))
28 28 end
29
29
30 30 def column_content(column, issue)
31 31 value = column.value(issue)
32
32
33 33 case value.class.name
34 34 when 'String'
35 35 if column.name == :subject
General Comments 0
You need to be logged in to leave comments. Login now