Defect #23651 » jump_box_closed_projects.patch
| app/assets/stylesheets/application.css | ||
|---|---|---|
|
#project-jump .drdn-content {inline-size: 280px;}
|
||
|
#project-jump .drdn-items>* {color:var(--oc-gray-7) !important;}
|
||
|
#project-jump .drdn-items>a:hover {background-color: var(--oc-blue-7); color:var(--oc-white) !important;}
|
||
|
#project-jump .drdn-items>a.closed:not(:hover) {color:var(--oc-gray-5) !important;}
|
||
|
/***** Tables *****/
|
||
|
table.list, .table-list {
|
||
| app/helpers/application_helper.rb | ||
|---|---|---|
|
# Returns an array of projects that are displayed in the quick-jump box
|
||
|
def projects_for_jump_box(user=User.current)
|
||
|
if user.logged?
|
||
|
user.projects.active.select(:id, :name, :identifier, :lft, :rgt).to_a
|
||
|
user.projects.active.select(:id, :name, :identifier, :lft, :rgt, :status).to_a
|
||
|
else
|
||
|
[]
|
||
|
end
|
||
| ... | ... | |
|
text = content_tag('span', project.name, :style => "padding-inline-start:#{padding}px;")
|
||
|
s << link_to(text, project_path(project, :jump => jump),
|
||
|
:title => project.name,
|
||
|
:class => (project == selected ? 'selected' : nil))
|
||
|
:class => [('selected' if project == selected), ('closed' if project.closed?)].compact.join(' ').presence)
|
||
|
end
|
||
|
[
|
||
|
[bookmarked, :label_optgroup_bookmarks, true],
|
||