47 lines
2.0 KiB
HTML
47 lines
2.0 KiB
HTML
<!--
|
|
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
|
|
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
|
|
-->
|
|
|
|
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
|
|
<html xmlns:th="http://www.thymeleaf.org"
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
layout:decorate="~{default}">
|
|
<div class="container" layout:fragment="content">
|
|
<table class="table table-striped">
|
|
<thead class="thead-dark">
|
|
<tr>
|
|
<th scope="col">Ветки</th>
|
|
<th width="20%"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr th:each="branch: ${branches}">
|
|
<td>
|
|
<a th:href="@{${@route.FILTER_COMMITS} + '?branchName='+${branch.name}+'&repositoryUrl='+${repository.url}}"
|
|
th:text="${branch.name}"></a>
|
|
</td>
|
|
<td>
|
|
<div class="pull-right">
|
|
<a role="button" class="btn btn-primary" title="Повторить индексацию ветки"
|
|
th:if="${branch.indexingStatus.name() != 'INDEXING'}"
|
|
th:href="@{'reindexBranch?branchId=' + ${branch.id}}">
|
|
<i class="fa fa-repeat" aria-hidden="true"></i>
|
|
</a>
|
|
<a role="button" class="btn btn-dark disabled"
|
|
th:if="${branch.indexingStatus.name() == 'INDEXING'}">Индексируется...
|
|
</a>
|
|
<a role="button" class="btn btn-danger"
|
|
th:if="${branch.indexingStatus.name() != 'INDEXING'}"
|
|
th:href="@{'deleteBranch?id=' + ${branch.id} + '&repositoryId='+${repository.id}}"
|
|
onclick="return confirm('Удалить ветку?')">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</html>
|