Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mattermost_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 49ac12db832827dc1e4561be3691298aee0b2754 (plain)
1
2
3
4
5
6
7
8
9
module MattermostHelper
  def mattermost_teams_options(teams)
    teams_options = teams.map do |id, options|
      [options['display_name'] || options['name'], id]
    end

    teams_options.compact.unshift(['Select team...', '0'])
  end
end