Repository navigation
Expand file tree
/
Copy pathnode_settings.mako
More file actions
93 lines (88 loc) · 4.53 KB
/
Copy pathnode_settings.mako
File metadata and controls
93 lines (88 loc) · 4.53 KB
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
<div id="${addon_short_name}Scope" class="scripted">
<!-- Add credentials modal -->
<%include file="credentials_modal.mako"/>
<h4 class="addon-title">
<img class="addon-icon" src=${addon_icon_url}>
${addon_full_name}
<small class="authorized-by">
<span data-bind="if: nodeHasAuth">
authorized by <a data-bind="attr: {href: urls().owner}, text: ownerName"></a>
% if not is_registration:
<a data-bind="click: deauthorize, visible: validCredentials"
class="text-danger pull-right addon-auth">${_("Disconnect Account")}</a>
% endif
</span>
<!-- Import Access Token Button -->
<span data-bind="if: showImport">
<a data-bind="click: importAuth" href="#" class="text-primary pull-right addon-auth">
${_("Import Account from Profile")}
</a>
</span>
<!-- Loading Import Text -->
<span data-bind="if: showLoading">
<p class="text-muted pull-right addon-auth">
${_("Loading ...")}
</p>
</span>
<!-- Oauth Start Button -->
<span data-bind="if: showTokenCreateButton">
<a href="#myminioInputCredentials" data-toggle="modal" class="pull-right text-primary addon-auth">
${_("Connect Account")}
</a>
</span>
</small>
</h4>
<!-- Settings Pane -->
<div class="${addon_short_name}-settings" data-bind='visible: showSettings'>
<div class="row">
<div class="col-md-12">
<p class="break-word">
<strong>${_("Current Bucket:")}</strong>
<span data-bind="if: folderName">
<a data-bind="attr: {href: urls().files}, text: folderName"></a>
</span>
<span class="text-muted" data-bind="ifnot: folderName">
${_("None")}
</span>
</p>
<!-- Folder buttons -->
<div class="form-group" data-bind="visible: userIsOwner() && validCredentials()">
<button data-bind="click: togglePicker,
css: {active: currentDisplay() === PICKER}" class="btn btn-primary">
<span data-bind="text: toggleChangeText"></span></button>
<button data-bind="visible: userIsOwner() && validCredentials(), click: openCreateBucket" class="btn btn-success" id="newBucket">${_("Create bucket")}</button>
</div>
<!-- Folder picker -->
<div class="m-t-sm addon-folderpicker-widget ${addon_short_name}-widget">
<p class="text-muted text-center ${addon_short_name}-loading-text" data-bind="visible: loading">
Loading buckets...</p>
<div data-bind="visible: currentDisplay() === PICKER">
<div id="${addon_short_name}Grid" class="filebrowser ${addon_short_name}-folder-picker"></div>
</div>
<!-- Queued selection -->
<div class="${addon_short_name}-confirm-selection" data-bind="visible: currentDisplay() == PICKER && selected()">
<form data-bind="submit: submitSettings">
<div class="break-word">
<div data-bind="if: selected" class="alert alert-info ${addon_short_name}-confirm-dlg">
${_("Connect %(folderName)s?") % dict(folderName='<b>“<span data-bind="text: selectedFolderName"></span>”</b>') | n}
</div>
</div>
<div class="pull-right">
<button class="btn btn-default" data-bind="click: cancelSelection">
${_("Cancel")}
</button>
<input type="submit" class="btn btn-success" value="${_('Save')}" />
</div>
</form>
</div>
</div>
</div>
<!-- end col -->
</div>
<!-- end row -->
</div>
<!-- Flashed Messages -->
<div class="help-block">
<p data-bind="html: message, attr: {class: messageClass}"></p>
</div>
</div>