mock build.Part 3
This commit is contained in:
@@ -98,6 +98,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" style="padding: 12px;">
|
||||
<div class="card" style="background: rgb(227,227,227);border-radius: 15px;">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title">Список сборок</h4>
|
||||
<p class="card-text">Список всех сборок по всем проектам</p><a class="card-link" href="/builds">Перейти к списку сборок</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%= erb :footer %>
|
||||
@@ -7,6 +7,10 @@
|
||||
</h3>
|
||||
<div class="pb-2"><%= @proj_descr %></div>
|
||||
<div class="pb-2">git репозиторий <%= @git_name %></div>
|
||||
<div class="list-group">
|
||||
<a href="/buildinforaw/<%= ERB::Util.url_encode(@build_id) %>" class="list-group-item list-group-item-action list-group-item-dark icon-link"><i
|
||||
class="bi bi-filetype-raw"></i><span class="ms-2">Посмотреть полный log файл процесса</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<div class="hstack gap-3">
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
<a href="/prjrpm/<%= ERB::Util.url_encode(@proj_id) %>" class="list-group-item list-group-item-action list-group-item-dark icon-link"><i
|
||||
class="bi bi-box"></i><span class="ms-2">Список всех
|
||||
пакетов</span></a>
|
||||
<a href="/prjbuilds/<%= ERB::Util.url_encode(@proj_id) %>" class="list-group-item list-group-item-action list-group-item-dark icon-link"><i
|
||||
class="bi bi-list"></i><span class="ms-2">Список сборок проекта</span></a>
|
||||
<a href="/prjsign/<%= ERB::Util.url_encode(@proj_id) %>" class="list-group-item list-group-item-action list-group-item-dark icon-link"><i
|
||||
class="bi bi-pencil-square"></i><span class="ms-2">Подписать</span></a>
|
||||
<a href="/prjpub/<%= ERB::Util.url_encode(@proj_id) %>" class="list-group-item list-group-item-action list-group-item-dark icon-link"><i
|
||||
@@ -67,9 +69,9 @@
|
||||
<% @proj_repo.each do |item| %>
|
||||
<div class="row justify-content-between border-bottom border-light-subtle m-2">
|
||||
<% unless item[:is_repo_synced] %>
|
||||
<div class="col-9">
|
||||
<% else %>
|
||||
<div class="col-8">
|
||||
<% else %>
|
||||
<div class="col-7">
|
||||
<% end %>
|
||||
<a href="/prjgitf/<%= ERB::Util.url_encode(@proj_id) %>/<%= ERB::Util.url_encode(item[:id]) %>" class="p-2"><%= item[:reponame] %></a>
|
||||
</div>
|
||||
@@ -87,6 +89,9 @@
|
||||
<div class="col-1">
|
||||
<a href="/gitspec/<%= ERB::Util.url_encode(@proj_id) %>/<%= ERB::Util.url_encode(item[:id]) %>" class="p-2"><i class="bi bi-arrow-down-right-square"></i></a>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<a href="/prjgitbld/<%= ERB::Util.url_encode(@proj_id) %>/<%= ERB::Util.url_encode(item[:id]) %>" class="p-2"><i class="bi bi-bricks"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
42
views/rpmlistgit.erb
Normal file
42
views/rpmlistgit.erb
Normal file
@@ -0,0 +1,42 @@
|
||||
<%= erb :header %>
|
||||
<div class="container">
|
||||
<a class="btn btn-primary mb-3" href="/rpms" role="button">К списку пакетов для всех репозиториев</a>
|
||||
</div>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Имя пакета</th>
|
||||
<th scope="col" class="text-center">Дата создания</th>
|
||||
<th scope="col" class="text-center">Git репозиторий</th>
|
||||
<th scope="col" class="text-center">Номер сборки</th>
|
||||
<th scope="col" class="text-center">Проект</th>
|
||||
<th scope="col" class="text-center">Информация о пакете</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @rpms_list.each do |item| %>
|
||||
<tr>
|
||||
<td scope="row"><%= item[:rpmname] %></td>
|
||||
<td><%= item[:create_at] %></td>
|
||||
<td class="text-center"><a href="/repos/<%= ERB::Util.url_encode(item[:repoid]) %>"><%= item[:repoid] %></a></td>
|
||||
<td class="text-center"><a href="/buildinfo/<%= ERB::Util.url_encode(item[:builid]) %>">build#<%= item[:builid] %></a></td>
|
||||
<td class="text-center"><a href="/prjedit/<%= ERB::Util.url_encode(item[:prjid]) %>">Перейти к проекту</a></td>
|
||||
<td class="text-center"><a href="/rpminfo/<%= ERB::Util.url_encode(item[:rpmid]) %>">Информация о пакете</a></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="container">
|
||||
<nav aria-label="Навигация по доступным пакетам">
|
||||
<ul class="pagination pagination-sm justify-content-center">
|
||||
<li class="page-item active" aria-current="page">
|
||||
<span class="page-link">1</span>
|
||||
</li>
|
||||
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
||||
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<%= erb :footer %>
|
||||
22
views/rpmlistglobal.erb
Normal file
22
views/rpmlistglobal.erb
Normal file
@@ -0,0 +1,22 @@
|
||||
<%= erb :header %>
|
||||
<div class="container">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Имя git репозитория</th>
|
||||
<th scope="col" class="text-center">Число пакетов rpm пакетов</th>
|
||||
<th scope="col" class="text-center">Перейти к списку rpm пакетов</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @gits_rpms_list.each do |item| %>
|
||||
<tr>
|
||||
<th scope="row"><%= item[:reponame] %></th>
|
||||
<td class="text-center"><%= item[:packages] %></td>
|
||||
<td class="text-center"><a href="/gitpackages/<%= ERB::Util.url_encode(item[:id]) %>"><i class="bi bi-arrow-right-square"></i></a></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<%= erb :footer %>
|
||||
Reference in New Issue
Block a user