_shortcuts.html.haml 6.0 KB
Newer Older
1
#modal-shortcuts.modal{tabindex: -1}
D
Dmitriy Zaporozhets 已提交
2 3 4 5
  .modal-dialog
    .modal-content
      .modal-header
        %a.close{href: "#", "data-dismiss" => "modal"} ×
6
        %h4
R
Robert Schilling 已提交
7
          Keyboard Shortcuts
8
          %small
R
Robert Schilling 已提交
9 10 11 12 13 14 15 16 17
            = link_to '(Show all)', '#', class: 'js-more-help-button'
      .modal-body.shortcuts-cheatsheet
        .col-lg-4
          %table.shortcut-mappings
            %tbody
              %tr
                %th
                %th Global Shortcuts
              %tr
18
                %td.shortcut
R
Robert Schilling 已提交
19 20 21
                  .key s
                %td Focus Search
              %tr
22
                %td.shortcut
R
Robert Schilling 已提交
23 24 25 26 27 28 29 30 31
                  .key ?
                %td Show this dialog
            %tbody
              %tr
                %th
                %th Project Files browsing
              %tr
                %td.shortcut
                  .key
S
Sullivan SENECHAL 已提交
32
                    %i.fa.fa-arrow-up
R
Robert Schilling 已提交
33 34 35 36
                %td Move selection up
              %tr
                %td.shortcut
                  .key
S
Sullivan SENECHAL 已提交
37
                    %i.fa.fa-arrow-down
R
Robert Schilling 已提交
38 39
                %td Move selection down
              %tr
40
                %td.shortcut
R
Robert Schilling 已提交
41 42
                  .key enter
                %td Open Selection
43

R
Robert Schilling 已提交
44 45 46 47 48 49 50
        .col-lg-4
          %table.shortcut-mappings
            %tbody{ class: 'hidden-shortcut project', style: 'display:none' }
              %tr
                %th
                %th Global Dashboard
              %tr
51
                %td.shortcut
R
Robert Schilling 已提交
52 53 54 55 56
                  .key g
                  .key a
                %td
                  Go to the activity feed
              %tr
57
                %td.shortcut
R
Robert Schilling 已提交
58 59 60 61 62
                  .key g
                  .key p
                %td
                  Go to projects
              %tr
63
                %td.shortcut
R
Robert Schilling 已提交
64 65 66 67 68
                  .key g
                  .key i
                %td
                  Go to issues
              %tr
69
                %td.shortcut
R
Robert Schilling 已提交
70 71 72 73 74 75 76 77 78
                  .key g
                  .key m
                %td
                  Go to merge requests
            %tbody
              %tr
                %th
                %th Project
              %tr
79
                %td.shortcut
R
Robert Schilling 已提交
80
                  .key g
81
                  .key p
82 83 84 85 86 87
                %td
                  Go to the project's home page
              %tr
                %td.shortcut
                  .key g
                  .key e
R
Robert Schilling 已提交
88
                %td
89
                  Go to the project's activity feed
R
Robert Schilling 已提交
90
              %tr
91
                %td.shortcut
R
Robert Schilling 已提交
92 93 94 95 96
                  .key g
                  .key f
                %td
                  Go to files
              %tr
97
                %td.shortcut
R
Robert Schilling 已提交
98 99 100 101
                  .key g
                  .key c
                %td
                  Go to commits
K
Kamil Trzcinski 已提交
102 103 104 105 106 107
              %tr
                %td.shortcut
                  .key g
                  .key b
                %td
                  Go to builds
R
Robert Schilling 已提交
108
              %tr
109
                %td.shortcut
R
Robert Schilling 已提交
110 111 112 113 114
                  .key g
                  .key n
                %td
                  Go to network graph
              %tr
115
                %td.shortcut
R
Robert Schilling 已提交
116 117 118 119 120
                  .key g
                  .key g
                %td
                  Go to graphs
              %tr
121
                %td.shortcut
R
Robert Schilling 已提交
122 123 124 125 126
                  .key g
                  .key i
                %td
                  Go to issues
              %tr
127
                %td.shortcut
R
Robert Schilling 已提交
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
                  .key g
                  .key m
                %td
                  Go to merge requests
              %tr
                %td.shortcut
                  .key g
                  .key s
                %td
                  Go to snippets
        .col-lg-4
          %table.shortcut-mappings
            %tbody{ class: 'hidden-shortcut network', style: 'display:none' }
              %tr
                %th
                %th Network Graph
              %tr
                %td.shortcut
                  .key
S
Sullivan SENECHAL 已提交
147
                    %i.fa.fa-arrow-left
R
Robert Schilling 已提交
148 149 150 151 152 153
                  \/
                  .key h
                %td Scroll left
              %tr
                %td.shortcut
                  .key
S
Sullivan SENECHAL 已提交
154
                    %i.fa.fa-arrow-right
R
Robert Schilling 已提交
155 156 157 158 159 160
                  \/
                  .key l
                %td Scroll right
              %tr
                %td.shortcut
                  .key
S
Sullivan SENECHAL 已提交
161
                    %i.fa.fa-arrow-up
R
Robert Schilling 已提交
162 163 164 165 166 167
                  \/
                  .key k
                %td Scroll up
              %tr
                %td.shortcut
                  .key
S
Sullivan SENECHAL 已提交
168
                    %i.fa.fa-arrow-down
R
Robert Schilling 已提交
169 170 171 172 173 174 175
                  \/
                  .key j
                %td Scroll down
              %tr
                %td.shortcut
                  .key
                    shift
S
Sullivan SENECHAL 已提交
176
                    %i.fa.fa-arrow-up
R
Robert Schilling 已提交
177 178 179 180 181 182 183 184
                  \/
                  .key
                    shift k
                %td Scroll to top
              %tr
                %td.shortcut
                  .key
                    shift
S
Sullivan SENECHAL 已提交
185
                    %i.fa.fa-arrow-down
R
Robert Schilling 已提交
186 187 188 189 190 191 192 193 194
                  \/
                  .key
                    shift j
                %td Scroll to bottom
            %tbody{ class: 'hidden-shortcut issues', style: 'display:none' }
              %tr
                %th
                %th Issues
              %tr
195
                %td.shortcut
R
Robert Schilling 已提交
196 197 198
                  .key a
                %td Change assignee
              %tr
199
                %td.shortcut
R
Robert Schilling 已提交
200 201
                  .key m
                %td Change milestone
202 203 204 205
              %tr
                %td.shortcut
                  .key r
                %td Reply (quoting selected text)
R
Robert Speicher 已提交
206
            %tbody{ class: 'hidden-shortcut merge_requests', style: 'display:none' }
R
Robert Schilling 已提交
207 208 209 210
              %tr
                %th
                %th Merge Requests
              %tr
211
                %td.shortcut
R
Robert Schilling 已提交
212 213 214
                  .key a
                %td Change assignee
              %tr
215
                %td.shortcut
R
Robert Schilling 已提交
216 217
                  .key m
                %td Change milestone
218 219 220 221
              %tr
                %td.shortcut
                  .key r
                %td Reply (quoting selected text)
R
Robert Schilling 已提交
222 223 224


:javascript
225 226 227 228
  $('.js-more-help-button').click(function (e) {
    $(this).remove()l
    $('.hidden-shortcut').show();
    e.preventDefault();
R
Robert Schilling 已提交
229
  });