.icon-bookmark:not(:has(svg)) { background-image: url(/tag_blue_delete.png); }
.icon-bookmark-off:not(:has(svg)) { background-image: url(/tag_blue_add.png); }
.icon-bookmarked-project:not(:has(svg)) { background-image: url(/tag_blue.png); }
-.icon-sorted-asc { background-image: url(/arrow_down.png); }
-.icon-sorted-desc { background-image: url(/arrow_up.png); }
+.icon-sorted-asc:not(:has(svg)) { background-image: url(/arrow_down.png); }
+.icon-sorted-desc:not(:has(svg)) { background-image: url(/arrow_up.png); }
.icon-toggle-plus { background-image: url(/bullet_toggle_plus.png) }
.icon-toggle-minus { background-image: url(/bullet_toggle_minus.png) }
.icon-clear-query:not(:has(svg)) { background-image: url(/close_hl.png); }
if column.name.to_s == query.sort_criteria.first_key
if query.sort_criteria.first_asc?
css = 'sort asc icon icon-sorted-desc'
+ icon = 'angle-up'
order = 'desc'
else
css = 'sort desc icon icon-sorted-asc'
+ icon = 'angle-down'
order = 'asc'
end
end
end
content =
link_to(
- column.caption,
+ icon_with_label(icon, column.caption),
{:params => request.query_parameters.deep_merge(sort_param)},
link_options
)
if column.to_s == @sort_criteria.first_key
if @sort_criteria.first_asc?
css = 'sort asc icon icon-sorted-desc'
+ icon = 'angle-up'
order = 'desc'
else
css = 'sort desc icon icon-sorted-asc'
+ icon = 'angle-down'
order = 'asc'
end
end
caption = column.to_s.humanize unless caption
sort_options = {:sort => @sort_criteria.add(column.to_s, order).to_param}
- link_to(caption, {:params => request.query_parameters.merge(sort_options)}, :class => css)
+ link_to(icon_with_label(icon, caption), {:params => request.query_parameters.merge(sort_options)}, :class => css)
end
# Returns a table header <th> tag with a sort link for the named column