|
1 | | -li.repository-group-item |
2 | | - svg.iconnables.icons-git |
| 1 | +svg.iconnables.icons-git |
| 2 | + use( |
| 3 | + xlink:href = "#icons-git" |
| 4 | + ) |
| 5 | +h3.repository-title {{ acv.attrs.repo }} |
| 6 | + |
| 7 | +//- if instance.instance and behind latest |
| 8 | +button.btn.btn-xs.white.repository-update( |
| 9 | + ng-click = "selectLatestCommit()" |
| 10 | + ng-if = "!showEditGearMenu && commitsBehind" |
| 11 | + tooltip = "Fast-forward {{ unsavedAcv.attrs.branch }} \ |
| 12 | + ({{ commitsBehind ? \ |
| 13 | + commitsBehind+' commits behind' : \ |
| 14 | + 'To latest' }})" |
| 15 | + tooltip-options = "{\"class\":\"bottom\",\"top\":24}" |
| 16 | +) {{ commitsBehind }} |
| 17 | + svg.iconnables.icons-update |
3 | 18 | use( |
4 | | - xlink:href = "#icons-git" |
| 19 | + xlink:href = "#icons-update" |
5 | 20 | ) |
6 | | - h3.repository-title {{ acv.attrs.repo }} |
7 | | - |
8 | | - //- if instance.instance and behind latest |
9 | | - button.btn.btn-xs.white.repository-update( |
10 | | - ng-click = "selectLatestCommit()" |
11 | | - ng-if = "!showEditGearMenu && commitsBehind" |
12 | | - tooltip = "Fast-forward {{ unsavedAcv.attrs.branch }} \ |
13 | | - ({{ commitsBehind ? \ |
14 | | - commitsBehind+' commits behind' : \ |
15 | | - 'To latest' }})" |
16 | | - tooltip-options = "{\"class\":\"bottom\",\"top\":24}" |
17 | | - ) {{ commitsBehind }} |
18 | | - svg.iconnables.icons-update |
19 | | - use( |
20 | | - xlink:href = "#icons-update" |
21 | | - ) |
22 | 21 |
|
23 | | - //- |
24 | | - if instance.setup || instance.instanceEdit |
25 | | - button.btn.btn-xs.white.repository-actions( |
26 | | - ng-class = "{ \ |
27 | | - active: popoverRepoActions.data.show \ |
28 | | - }" |
29 | | - toggle-pop-over |
30 | | - toggle-pop-over-model = "popoverRepoActions.data.show" |
31 | | - type = "button" |
32 | | - ng-if = "showEditGearMenu" |
33 | | - ) |
34 | | - svg.iconnables.icons-gear |
35 | | - use( |
36 | | - xlink:href = "#icons-gear" |
37 | | - ) |
38 | | - pop-over( |
39 | | - actions = "popoverRepoActions.actions" |
40 | | - data = "popoverRepoActions.data" |
41 | | - popover-options = "{\"left\":-97,\"top\":34}" |
42 | | - template = "viewPopoverRepoActions" |
| 22 | +//- |
| 23 | + if instance.setup || instance.instanceEdit |
| 24 | +button.btn.btn-xs.white.repository-actions( |
| 25 | + ng-class = "{ \ |
| 26 | + active: popoverRepoActions.data.show \ |
| 27 | + }" |
| 28 | + toggle-pop-over |
| 29 | + toggle-pop-over-model = "popoverRepoActions.data.show" |
| 30 | + type = "button" |
| 31 | + ng-if = "showEditGearMenu" |
| 32 | +) |
| 33 | + svg.iconnables.icons-gear |
| 34 | + use( |
| 35 | + xlink:href = "#icons-gear" |
43 | 36 | ) |
44 | | - |
45 | | - //- add .pending for orange |
46 | | - .commit.load( |
47 | | - ng-class = "{ \ |
48 | | - pending: (showPendingClassWhenSelectedOutdatedCommit && \ |
49 | | - (build.contextVersions.models[0].appCodeVersions.models.length > 1) && \ |
50 | | - acv.attrs.commit !== unsavedAcv.attrs.commit) \ |
51 | | - }" |
52 | | - toggle-pop-over |
53 | | - toggle-pop-over-model = "popoverCommitSelect.data.show" |
54 | | - ) |
55 | | - .commit-message {{ activeCommit.attrs.commit.message }} |
56 | | - svg.iconnables.icons-commit |
57 | | - use( |
58 | | - xlink:href = "#icons-commit" |
59 | | - ) |
60 | | - span.commit-author {{ activeCommit.attrs.author.login }} |
61 | | - time.commit-time {{ activeCommit.attrs.commit.author.date | timeAgo }} |
62 | 37 | pop-over( |
63 | | - actions = "popoverCommitSelect.actions" |
64 | | - data = "popoverCommitSelect.data" |
65 | | - popover-options = "{\"top\":34}" |
66 | | - template = "viewPopoverCommitSelect" |
| 38 | + actions = "popoverRepoActions.actions" |
| 39 | + data = "popoverRepoActions.data" |
| 40 | + popover-options = "{\"left\":-97,\"top\":34}" |
| 41 | + template = "viewPopoverRepoActions" |
67 | 42 | ) |
| 43 | + |
| 44 | +//- add .pending for orange |
| 45 | +.commit.load( |
| 46 | + ng-class = "{ \ |
| 47 | + pending: (showPendingClassWhenSelectedOutdatedCommit && \ |
| 48 | + (build.contextVersions.models[0].appCodeVersions.models.length > 1) && \ |
| 49 | + acv.attrs.commit !== unsavedAcv.attrs.commit) \ |
| 50 | + }" |
| 51 | + toggle-pop-over |
| 52 | + toggle-pop-over-model = "popoverCommitSelect.data.show" |
| 53 | +) |
| 54 | + .commit-message {{ activeCommit.attrs.commit.message }} |
| 55 | + svg.iconnables.icons-commit |
| 56 | + use( |
| 57 | + xlink:href = "#icons-commit" |
| 58 | + ) |
| 59 | + span.commit-author {{ activeCommit.attrs.author.login }} |
| 60 | + time.commit-time {{ activeCommit.attrs.commit.author.date | timeAgo }} |
| 61 | +pop-over( |
| 62 | + actions = "popoverCommitSelect.actions" |
| 63 | + data = "popoverCommitSelect.data" |
| 64 | + popover-options = "{\"top\":34}" |
| 65 | + template = "viewPopoverCommitSelect" |
| 66 | +) |
0 commit comments