Project

General

Profile

Feature #2705 » add-public-projects-to-quick-jump-box.diff

Jethro Yu, 2015-08-26 12:21

View differences:

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>" +
(1-1/2)