/
repo-status.hbs
36 lines (36 loc) · 1.08 KB
/
repo-status.hbs
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
<td>
{{#if repo.official}}
<img class="check-circle" src="/plugins/docker_manager/images/font-awesome-check-circle.png" alt="Official Plugin"/>
{{/if}}
</td>
<td>
{{repo.name}}
{{fmt-commit repo.version repo.url repo.branch}}
</td>
<td>
{{#if repo.checkingStatus}}
Checking for new version...
{{else if repo.upToDate}}
Up to date
{{else}}
<div class='new-version'>
<h4>New Version Available!</h4>
<ul>
<li>Remote Version: {{fmt-commit repo.latest.version repo.url repo.branch}}</li>
<li>Last Updated:
{{#if repo.latest.date}}
{{moment-from-now repo.latest.date interval=1000}}
{{else}}
—
{{/if}}
</li>
<li class='new-commits'>{{repo.latest.commits_behind}} new commits</li>
</ul>
{{#if repo.upgrading}}
<button class="btn" {{action "upgrade"}}>Currently Upgrading...</button>
{{else}}
<button class="btn" {{action "upgrade"}} disabled={{upgradeDisabled}}>Upgrade to the Latest Version</button>
{{/if}}
</div>
{{/if}}
</td>