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

theme.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 44237a062fcd2758419091a40ef531e91793332d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Gitlab
  class Theme
    BASIC  = 1
    MARS   = 2
    MODERN = 3
    GRAY   = 4
    COLOR  = 5

    def self.css_class_by_id(id)
      themes = {
        BASIC  => "ui_basic",
        MARS   => "ui_mars",
        MODERN => "ui_modern",
        GRAY   => "ui_gray",
        COLOR  => "ui_color"
      }

      id ||= Gitlab.config.gitlab.default_theme

      return themes[id]
    end
  end
end