/
panels.html
46 lines (46 loc) · 2.26 KB
/
panels.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
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<nav aria-label="Main navbar" class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark" th:fragment="mainNavbarTop">
<div class="container-fluid">
<a class="navbar-brand" th:href="@{/}">Hexlet Typo Reporter</a>
<button aria-controls="mainNavbar" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler"
data-bs-target="#mainNavbar" data-bs-toggle="collapse" type="button">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainNavbar">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link" th:href="@{/create/workspace}">Create Workspace</a>
</li>
</ul>
</div>
</div>
</nav>
<th:block th:fragment="workspaceSideBar (wksName, itemActive)">
<ul class="list-group list-group-flush">
<li class="list-group-item" th:text="${wksName}"></li>
</ul>
<hr>
<div class="list-group list-group-flush">
<a class="list-group-item list-group-item-action"
th:aria-current="${itemActive} == 'info'"
th:classappend="${itemActive} == 'info' ? 'active' : ''"
th:href="@{'/workspace/' + ${wksName}}">Info</a>
<a class="list-group-item list-group-item-action"
th:aria-current="${itemActive} == 'typos'"
th:classappend="${itemActive} == 'typos' ? 'active' : ''"
th:href="@{'/workspace/' + ${wksName} + '/typos'}">Typos</a>
<a class="list-group-item list-group-item-action"
th:aria-current="${itemActive} == 'settings'"
th:classappend="${itemActive} == 'settings' ? 'active' : ''"
th:href="@{'/workspace/' + ${wksName} + '/settings'}">Settings</a>
<a class="list-group-item list-group-item-action"
th:aria-current="${itemActive} == 'users'"
th:classappend="${itemActive} == 'users' ? 'active' : ''"
th:href="@{'/workspace/' + ${wksName} + '/users'}">Users</a>
<a aria-disabled="true" class="list-group-item list-group-item-action disabled" href="#" tabindex="-1">Integration</a>
</div>
</th:block>
</body>
</html>