BigW Consortium Gitlab

_shortcuts.html.haml 7.63 KB
Newer Older
1
#modal-shortcuts.modal{tabindex: -1}
Dmitriy Zaporozhets committed
2 3 4 5
  .modal-dialog
    .modal-content
      .modal-header
        %a.close{href: "#", "data-dismiss" => "modal"} ×
6
        %h4
7
          Keyboard Shortcuts
8
          %small
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
19 20
                  .key s
                %td Focus Search
21 22 23 24
              %tr
                %td.shortcut
                  .key f
                %td Focus Filter
25
              %tr
26
                %td.shortcut
27
                  .key ?
28
                %td Show/hide this dialog
29 30
              %tr
                %td.shortcut
31
                  - if browser.platform.mac?
Baldinof committed
32
                    .key ⌘ shift p
33 34
                  - else
                    .key ctrl shift p
35
                %td Toggle Markdown preview
36 37 38 39 40
              %tr
                %td.shortcut
                  .key
                    %i.fa.fa-arrow-up
                %td Edit last comment (when focused on an empty textarea)
41 42 43 44 45 46 47
            %tbody
              %tr
                %th
                %th Project Files browsing
              %tr
                %td.shortcut
                  .key
48
                    %i.fa.fa-arrow-up
49 50 51 52
                %td Move selection up
              %tr
                %td.shortcut
                  .key
53
                    %i.fa.fa-arrow-down
54 55
                %td Move selection down
              %tr
56
                %td.shortcut
57 58
                  .key enter
                %td Open Selection
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
            %tbody
              %tr
                %th
                %th Finding Project File
              %tr
                %td.shortcut
                  .key
                    %i.fa.fa-arrow-up
                %td Move selection up
              %tr
                %td.shortcut
                  .key
                    %i.fa.fa-arrow-down
                %td Move selection down
              %tr
                %td.shortcut
                  .key enter
                %td Open Selection
              %tr
                %td.shortcut
                  .key esc
                %td Go back
81

82 83 84 85 86 87 88
        .col-lg-4
          %table.shortcut-mappings
            %tbody{ class: 'hidden-shortcut project', style: 'display:none' }
              %tr
                %th
                %th Global Dashboard
              %tr
89
                %td.shortcut
90 91 92 93 94
                  .key g
                  .key a
                %td
                  Go to the activity feed
              %tr
95
                %td.shortcut
96 97 98 99 100
                  .key g
                  .key p
                %td
                  Go to projects
              %tr
101
                %td.shortcut
102 103 104 105 106
                  .key g
                  .key i
                %td
                  Go to issues
              %tr
107
                %td.shortcut
108 109 110 111 112 113 114 115 116
                  .key g
                  .key m
                %td
                  Go to merge requests
            %tbody
              %tr
                %th
                %th Project
              %tr
117
                %td.shortcut
118
                  .key g
119
                  .key p
120 121 122 123 124 125
                %td
                  Go to the project's home page
              %tr
                %td.shortcut
                  .key g
                  .key e
126
                %td
127
                  Go to the project's activity feed
128
              %tr
129
                %td.shortcut
130 131 132 133 134
                  .key g
                  .key f
                %td
                  Go to files
              %tr
135
                %td.shortcut
136 137 138 139
                  .key g
                  .key c
                %td
                  Go to commits
Kamil Trzcinski committed
140 141 142 143 144 145
              %tr
                %td.shortcut
                  .key g
                  .key b
                %td
                  Go to builds
146
              %tr
147
                %td.shortcut
148 149 150 151 152
                  .key g
                  .key n
                %td
                  Go to network graph
              %tr
153
                %td.shortcut
154 155 156 157 158
                  .key g
                  .key g
                %td
                  Go to graphs
              %tr
159
                %td.shortcut
160 161 162 163 164
                  .key g
                  .key i
                %td
                  Go to issues
              %tr
165
                %td.shortcut
166 167 168 169 170 171 172 173 174 175
                  .key g
                  .key m
                %td
                  Go to merge requests
              %tr
                %td.shortcut
                  .key g
                  .key s
                %td
                  Go to snippets
176 177 178 179
              %tr
                %td.shortcut
                  .key t
                %td Go to finding file
180 181 182 183
              %tr
                %td.shortcut
                  .key i
                %td New issue
184 185 186 187 188 189 190 191 192
        .col-lg-4
          %table.shortcut-mappings
            %tbody{ class: 'hidden-shortcut network', style: 'display:none' }
              %tr
                %th
                %th Network Graph
              %tr
                %td.shortcut
                  .key
193
                    %i.fa.fa-arrow-left
194 195 196 197 198 199
                  \/
                  .key h
                %td Scroll left
              %tr
                %td.shortcut
                  .key
200
                    %i.fa.fa-arrow-right
201 202 203 204 205 206
                  \/
                  .key l
                %td Scroll right
              %tr
                %td.shortcut
                  .key
207
                    %i.fa.fa-arrow-up
208 209 210 211 212 213
                  \/
                  .key k
                %td Scroll up
              %tr
                %td.shortcut
                  .key
214
                    %i.fa.fa-arrow-down
215 216 217 218 219 220 221
                  \/
                  .key j
                %td Scroll down
              %tr
                %td.shortcut
                  .key
                    shift
222
                    %i.fa.fa-arrow-up
223 224 225 226 227 228 229 230
                  \/
                  .key
                    shift k
                %td Scroll to top
              %tr
                %td.shortcut
                  .key
                    shift
231
                    %i.fa.fa-arrow-down
232 233 234 235 236 237 238 239 240
                  \/
                  .key
                    shift j
                %td Scroll to bottom
            %tbody{ class: 'hidden-shortcut issues', style: 'display:none' }
              %tr
                %th
                %th Issues
              %tr
241
                %td.shortcut
242 243 244
                  .key a
                %td Change assignee
              %tr
245
                %td.shortcut
246 247
                  .key m
                %td Change milestone
248 249 250 251
              %tr
                %td.shortcut
                  .key r
                %td Reply (quoting selected text)
252 253 254 255
              %tr
                %td.shortcut
                  .key e
                %td Edit issue
256 257 258 259
              %tr
                %td.shortcut
                  .key l
                %td Change Label
260
            %tbody{ class: 'hidden-shortcut merge_requests', style: 'display:none' }
261 262 263 264
              %tr
                %th
                %th Merge Requests
              %tr
265
                %td.shortcut
266 267 268
                  .key a
                %td Change assignee
              %tr
269
                %td.shortcut
270 271
                  .key m
                %td Change milestone
272 273 274 275
              %tr
                %td.shortcut
                  .key r
                %td Reply (quoting selected text)
276 277 278 279
              %tr
                %td.shortcut
                  .key e
                %td Edit merge request
280 281 282 283
              %tr
                %td.shortcut
                  .key l
                %td Change Label