mirror of
https://github.com/redmine/redmine.git
synced 2026-03-25 13:50:54 +01:00
Merged r16983 to r16985 (#27186).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@16987 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -176,7 +176,8 @@ module ApplicationHelper
|
||||
end
|
||||
case object.class.name
|
||||
when 'Array'
|
||||
object.map {|o| format_object(o, html)}.join(', ').html_safe
|
||||
formatted_objects = object.map {|o| format_object(o, html)}
|
||||
html ? safe_join(formatted_objects, ', ') : formatted_objects.join(', ')
|
||||
when 'Time'
|
||||
format_time(object)
|
||||
when 'Date'
|
||||
|
||||
@@ -129,7 +129,8 @@ module QueriesHelper
|
||||
def column_content(column, issue)
|
||||
value = column.value_object(issue)
|
||||
if value.is_a?(Array)
|
||||
value.collect {|v| column_value(column, issue, v)}.compact.join(', ').html_safe
|
||||
values = value.collect {|v| column_value(column, issue, v)}.compact
|
||||
safe_join(values, ', ')
|
||||
else
|
||||
column_value(column, issue, value)
|
||||
end
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
<% entries.each do |entry| -%>
|
||||
<tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu">
|
||||
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
|
||||
<%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, entry)}</td>"}.join %>
|
||||
<% @query.inline_columns.each do |column| %>
|
||||
<%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
|
||||
<% end %>
|
||||
<td class="buttons">
|
||||
<% if entry.editable_by?(User.current) -%>
|
||||
<%= link_to l(:button_edit), edit_time_entry_path(entry),
|
||||
|
||||
Reference in New Issue
Block a user