|
| 1 | +section.label-description |
| 2 | + .label-col SSH Keys |
| 3 | + .small.text-gray Keys will be added to containers at build and run time  |
| 4 | + a.link( |
| 5 | + href = "#" |
| 6 | + target = "_blank" |
| 7 | + ) using ssh-agent |
| 8 | + | , and can be  |
| 9 | + a.link( |
| 10 | + href = "https://github.com/settings/keys" |
| 11 | + target = "_blank" |
| 12 | + ) managed on GitHub |
| 13 | + | . |
| 14 | + |
| 15 | +ol.list-bordered( |
| 16 | + ng-init = "\ |
| 17 | + keys = [\ |
| 18 | + {username: 'Myztiq', fingerprint: '40:71:04:a8:3b:ea:a8:90:f6:99:6c:7a:22:f7:c0:15', avatar: 'https://avatars1.githubusercontent.com/u/495765'},\ |
| 19 | + {username: 'podviaznikov', fingerprint: 'e2:81:ae:03:43:1a:ba:cf:4e:e0:79:37:69:40:58:56', avatar: 'https://avatars1.githubusercontent.com/u/429706'}\ |
| 20 | + ];\ |
| 21 | + currentOrg = 'CodeNow'\ |
| 22 | + " |
| 23 | +) |
| 24 | + |
| 25 | + //- if no key exists for the current user |
| 26 | + li.grid-block.align-center.list-item( |
| 27 | + ng-if = "!state.authorized" |
| 28 | + ng-init = "state.listening = false" |
| 29 | + ) |
| 30 | + svg.grid-block.shrink.iconnables.icons-key( |
| 31 | + ng-if = "!state.listening" |
| 32 | + ) |
| 33 | + use( |
| 34 | + xlink:href = "#icons-key-empty" |
| 35 | + ) |
| 36 | + .grid-block.shrink.align-center.justify-center.spinner-wrapper.spinner-sm.spinner-gray( |
| 37 | + ng-if = "state.listening" |
| 38 | + ng-include = "'spinner'" |
| 39 | + ) |
| 40 | + p.grid-block.p.text-gray( |
| 41 | + ng-if = "state.listening" |
| 42 | + ) Listening for authorization… |
| 43 | + p.p.text-gray( |
| 44 | + ng-if = "!state.listening" |
| 45 | + ) Add a user key for  |
| 46 | + span.weight-strong runnabro |
| 47 | + |  so your project can access private dependencies. |
| 48 | + a.grid-block.shrink.noscroll.align-center.btn.gray.btn-xs( |
| 49 | + ng-click = "state.listening = !state.listening" |
| 50 | + ng-if = "!state.everAuthorized" |
| 51 | + ng-include = "'SSHAuthorizeButton'" |
| 52 | + ) |
| 53 | + a.grid-block.shrink.noscroll.align-center.btn.gray.btn-xs.btn-create-key( |
| 54 | + ng-click = "state.creatingKey = !state.creatingKey" |
| 55 | + ng-disabled = "state.creatingKey" |
| 56 | + ng-if = "state.everAuthorized && !state.authorized" |
| 57 | + ng-include = "'SSHCreateButton'" |
| 58 | + ng-init = "state.creatingKey = false" |
| 59 | + ) |
| 60 | + |
| 61 | + //- all user keys; if current user's key exists, list it at the top |
| 62 | + li.grid-block.align-center.list-item( |
| 63 | + ng-repeat = "key in keys" |
| 64 | + ) |
| 65 | + svg.grid-block.shrink.iconnables.icons-key |
| 66 | + use( |
| 67 | + xlink:href = "#icons-key" |
| 68 | + ) |
| 69 | + .grid-block.vertical.p |
| 70 | + p.strong.text-overflow( |
| 71 | + title = "{{key.username}} User Key for {{currentOrg}}" |
| 72 | + ) {{key.username}} User Key for {{currentOrg}} |
| 73 | + p.monospace.text-gray.text-overflow {{key.fingerprint}} |
| 74 | + a.grid-block.shrink.noscroll.align-center.btn.gray.btn-xs.btn-authorized( |
| 75 | + ng-include = "'SSHAuthorizeButton'" |
| 76 | + ng-init = "state.authorized = true" |
| 77 | + ) |
0 commit comments