forked from adobe/brackets
-
Notifications
You must be signed in to change notification settings - Fork 279
/
extension-manager-view-item.html
102 lines (102 loc) · 4.91 KB
/
extension-manager-view-item.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<tr>
<td class="ext-info">
<span class="ext-name">{{#metadata.title}}{{metadata.title}}{{/metadata.title}}{{^metadata.title}}{{metadata.name}}{{/metadata.title}}</span>
{{#authorInfo}}
<span class="muted ext-author">{{{authorInfo}}}</span>
{{/authorInfo}}
<span class="muted ext-version">{{metadata.version}}</span>
{{#hasVersionInfo}}
<span class="muted ext-date"> — {{lastVersionDate}}</span>
{{/hasVersionInfo}}
</td>
<td class="ext-desc">
{{#showInstallButton}}
<!-- Warnings when trying to install extension where latest/all versions not compatible -->
{{^isCompatible}}
<div class="alert warning">
{{#requiresNewer}}{{Strings.EXTENSION_INCOMPATIBLE_NEWER}}{{/requiresNewer}}
{{^requiresNewer}}{{Strings.EXTENSION_INCOMPATIBLE_OLDER}}{{/requiresNewer}}
</div>
{{/isCompatible}}
{{#isCompatible}}
{{^isCompatibleLatest}}
<div class="alert warning">
{{installWarning}}
</div>
{{/isCompatibleLatest}}
{{/isCompatible}}
{{/showInstallButton}}
<span class="ext-full-description">
{{#metadata.shortdescription}}
{{metadata.shortdescription}}
{{/metadata.shortdescription}}
{{^metadata.shortdescription}}
{{#metadata.description}}
{{metadata.description}}
{{/metadata.description}}
{{^metadata.description}}
<p class="muted"><em>{{Strings.EXTENSION_NO_DESCRIPTION}}</em></p>
{{/metadata.description}}
{{/metadata.shortdescription}}
</span>
{{#metadata.shortdescription}}
<a data-extension-id="{{metadata.name}}" data-toggle-desc="expand-desc" title="{{Strings.VIEW_COMPLETE_DESCRIPTION}}" href="#">...</a>
{{/metadata.shortdescription}}
{{#metadata.homepage}}
<p><a title="{{metadata.homepage}}" href="{{metadata.homepage}}">{{Strings.EXTENSION_MORE_INFO}}</a></p>
{{/metadata.homepage}}
{{#translated}}
<br/>
<span class="ext-translated" title="{{translatedLangs}}">{{extensionTranslated}}</span>
{{/translated}}
</td>
<td class="ext-action">
<div>
{{#showInstallButton}}
<button class="btn btn-mini install" data-extension-id="{{metadata.name}}" {{^allowInstall}}disabled{{/allowInstall}}>
{{^isInstalled}}{{Strings.INSTALL}}{{/isInstalled}}
{{#isInstalled}}{{Strings.EXTENSION_INSTALLED}}{{/isInstalled}}
</button>
{{/showInstallButton}}
{{#isInstalled}}
{{#showUpdateButton}}
<button class="btn btn-mini update" data-extension-id="{{metadata.name}}" {{^allowUpdate}}disabled title="{{updateNotAllowedReason}}"{{/allowUpdate}}>
{{Strings.UPDATE}}
</button>
{{/showUpdateButton}}
{{#disablingAllowed}}
{{#showUpdateButton}}
</div><div>
{{/showUpdateButton}}
<button class="btn btn-mini disable" data-extension-id="{{metadata.name}}">
{{Strings.DISABLE}}
</button>
{{/disablingAllowed}}
{{#enablingAllowed}}
<button class="btn btn-mini enable" data-extension-id="{{metadata.name}}">
{{Strings.ENABLE}}
</button>
{{/enablingAllowed}}
{{#removalAllowed}}
<button class="btn btn-mini remove" data-extension-id="{{metadata.name}}" {{^allowRemove}}disabled title="{{Strings.CANT_REMOVE_DEV}}"{{/allowRemove}}>
{{Strings.REMOVE}}
</button>
{{/removalAllowed}}
{{#failedToStart}}
{{^isMarkedForRemoval}}
{{Strings.EXTENSION_ERROR}} {{#allowRemove}}(<a class="remove" data-extension-id="{{metadata.name}}">{{Strings.REMOVE}}</a>){{/allowRemove}}
{{/isMarkedForRemoval}}
{{/failedToStart}}
{{#isMarkedForRemoval}}
{{Strings.MARKED_FOR_REMOVAL}} (<a class="undo-remove" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_REMOVE}}</a>)
{{/isMarkedForRemoval}}
{{#isMarkedForDisabling}}
{{Strings.MARKED_FOR_DISABLING}} (<a class="undo-disable" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_DISABLE}}</a>)
{{/isMarkedForDisabling}}
{{#isMarkedForUpdate}}
{{Strings.MARKED_FOR_UPDATE}} (<a class="undo-update" data-extension-id="{{metadata.name}}" href="#">{{Strings.UNDO_UPDATE}}</a>)
{{/isMarkedForUpdate}}
{{/isInstalled}}
</div>
</td>
</tr>