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
334 334
  # Renders the project quick-jump box
335 335
  def render_project_jump_box
336 336
    return unless User.current.logged?
337
    projects = User.current.memberships.collect(&:project).compact.select(&:active?).uniq
337
    projects = User.current.memberships.collect(&:project).concat(Project.where(:is_public?)).compact.select(&:active?).uniq
338 338
    if projects.any?
339 339
      options =
340 340
        ("<option value=''>#{ l(:label_jump_to_a_project) }</option>" +
(1-1/2)