How to set default theme for users in gitlab

Is it possible to set a default theme for users in gitlab? Looking in gitlab / gitlab.yaml, I do not see any options for setting the default value.

enter image description here

Looking at the database, I see that there is "color_scheme_id". I would prefer not to edit the database for each user.

    mysql> select id, name, theme_id, color_scheme_id from users;

+----+-------------------+----------+-----------------+
| id | name              | theme_id | color_scheme_id |
+----+-------------------+----------+-----------------+
|  1 | Administrator     |        1 |               1 |
|  2 | foo foo           |        4 |               4 |
|  3 | bar bar           |        2 |               1 |
|  4 | foobar foobar     |        2 |               1 |
+----+-------------------+----------+-----------------+
4 rows in set (0.00 sec)
+4
source share
1 answer

To do this, there is a transfer request: PR 5116 , Isaac (John) Alpert - (Karlgungus) .

It will add the config / gitlab.yml.example file:

+    ## Default theme
+    ##   BASIC  = 1
+    ##   MARS   = 2
+    ##   MODERN = 3
+    ##   GRAY   = 4
+    ##   COLOR  = 5
+    # default_theme: 1 # default: 1
+ 

It just got a few hours ago (September 22), so it should be part of GitLab 6.2

+3

Source: https://habr.com/ru/post/1502670/


All Articles