Feature #7360 » fix-performance-when-rendering-sidebar.patch
| app/helpers/queries_helper.rb | ||
|---|---|---|
|
else
|
||
|
{}
|
||
|
end
|
||
|
default_query_by_class =
|
||
|
queries.map(&:class).uniq.to_h do |klass|
|
||
|
[klass, klass.default(project: @project)]
|
||
|
end
|
||
|
content_tag('h3', title) + "\n" +
|
||
|
content_tag(
|
||
|
'ul',
|
||
| ... | ... | |
|
clear_link = +''
|
||
|
clear_link_param = {:set_filter => 1, :sort => '', :project_id => @project}
|
||
|
if query == query.class.default(project: @project)
|
||
|
if query == default_query_by_class[query.class]
|
||
|
css << ' default'
|
||
|
clear_link_param[:without_default] = 1
|
||
|
end
|
||