-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathtoolbar.xml
50 lines (47 loc) · 1.78 KB
/
toolbar.xml
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
<% if (mode!=='auto') { %>
<div class="btn-group mode-selector" role="group">
<button type="button" class="mode search btn <% if (mode=='search') { %>btn-primary<% } else {%>btn-secondary<% } %>"><%- searchModeText %></button>
<button type="button" class="mode browse btn <% if (mode=='browse') { %>btn-primary<% } else {%>btn-secondary<% } %>"><%- browseModeText %></button>
</div>
<% } %>
<div class="path-wrapper flex-grow-1">
<span class="pat-relateditems-path-label"><%- searchText %></span>
<a class="crumb" href="/"><%= icon_root %></a>
<%= items %>
</div>
<% if (recentlyUsedItems) { %>
<div class="recentlyUsed dropdown ms-2">
<button type="button" class="recentlyUsed dropdown-toggle btn btn-primary btn-sm" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<%= icon_recently_used %>
<%- recentlyUsedText %>
<span class="caret"/>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<%= recentlyUsedItems %>
</ul>
</div>
<% } %>
<% if (favorites.length > 0) { %>
<div class="favorites dropdown dropdown-menu-end ms-2">
<button type="button" class="favorites dropdown-toggle btn btn-primary btn-sm" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<%= icon_favorites %>
<%- favText %>
<span class="caret"/>
</button>
<ul class="dropdown-menu">
<%= favItems %>
</ul>
</div>
<% } %>
<% if (upload) { %>
<div class="upload dropdown dropdown-menu-end ms-2">
<button type="button" class="upload dropdown-toggle btn btn-primary btn-sm" data-bs-toggle="dropdown" data-bs-auto-close="false" aria-haspopup="true" aria-expanded="false">
<%= icon_upload %>
<%- upload_text %>
<span class="caret"/>
</button>
<div class="dropdown-menu p-2">
<div class="pat-upload"></div>
</div>
</div>
<% } %>