Feature #2705 » add-public-projects-to-quick-jump-box.diff
| app/helpers/application_helper.rb | ||
|---|---|---|
|
# Renders the project quick-jump box
|
||
|
def render_project_jump_box
|
||
|
return unless User.current.logged?
|
||
|
projects = User.current.memberships.collect(&:project).compact.select(&:active?).uniq
|
||
|
projects = User.current.memberships.collect(&:project).concat(Project.where(:is_public?)).compact.select(&:active?).uniq
|
||
|
if projects.any?
|
||
|
options =
|
||
|
("<option value=''>#{ l(:label_jump_to_a_project) }</option>" +
|
||