summaryrefslogtreecommitdiff
path: root/app/views/profiles/design.html.haml
blob: af284f6040964a59b2b3153916a7159733d1cd36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
- page_title "Design"
%h3.page-title
  Design Settings
%p.light
  Appearance settings will be saved to your profile and made available across all devices.
%hr

= form_for @user, url: profile_path, remote: true, method: :put do |f|
  %fieldset.application-theme
    %legend
      Application theme
    .themes_opts
      = label_tag do
        .prev.default
        = f.radio_button :theme_id, 1
        Graphite

      = label_tag do
        .prev.classic
        = f.radio_button :theme_id, 2
        Charcoal

      = label_tag do
        .prev.modern
        = f.radio_button :theme_id, 3
        Green

      = label_tag do
        .prev.gray
        = f.radio_button :theme_id, 4
        Gray

      = label_tag do
        .prev.violet
        = f.radio_button :theme_id, 5
        Violet

      = label_tag do
        .prev.blue
        = f.radio_button :theme_id, 6
        Blue
    %br
    .clearfix

  %fieldset.code-preview-theme
    %legend
      Code preview theme
    .code_highlight_opts
      - color_schemes.each do |color_scheme_id, color_scheme|
        = label_tag do
          .prev
            = image_tag "#{color_scheme}-scheme-preview.png"
          = f.radio_button :color_scheme_id, color_scheme_id
          = color_scheme.gsub(/[-_]+/, ' ').humanize