Skip to content

Commit

Permalink
display project namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Jun 1, 2024
1 parent 0f6897b commit f9c7bb2
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/IssueController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function prepareDataForIndex(FormRequest $request, array $data)
$data,
[
'assigneeList' => $contributorRepository->getItemsForSelect(),
'projectsList' => $projectRepository->getItemsForSelect(),
'projectsList' => $projectRepository->getItemsForSelect(null, null, 'id', 'path_with_namespace'),
'labelList' => $labelRepository->getItemsForSelect(null, null, 'name'),
'milestoneList' => $milestoneRepository->getItemsForSelect(null, null, 'id', 'title'),
'total' => [
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/TimeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function prepareDataForIndex(FormRequest $request, array $data)
$data,
[
'authorsList' => $contributorRepository->getItemsForSelect(),
'projectsList' => $projectRepository->getItemsForSelect(),
'projectsList' => $projectRepository->getItemsForSelect(null, null, 'id', 'path_with_namespace'),
'labelList' => $labelRepository->getItemsForSelect(null, null, 'name'),
'milestoneList' => $milestoneRepository->getItemsForSelect(null, null, 'id', 'title'),
'total' => [
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@
'of' => 'of',
'Logout' => 'Logout',
'Act t&m/labels CSV' => 'Act t&m/labels CSV',
'Domain' => 'Domain',
];
1 change: 1 addition & 0 deletions resources/lang/ru/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@
'of' => 'из',
'Logout' => 'Выход',
'Act t&m/labels CSV' => 'Акт t&m/метки CSV',
'Domain' => 'Домен',
];
9 changes: 8 additions & 1 deletion resources/views/gitpab/project/index_table.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
'orderLinkParams' => $orderLinkParams,
])

@include('partial.table.thcell', [
'label' => __('messages.Domain'),
])

@include('partial.table.thcell', [
'column' => $columnTitleName,
'label' => $columnTitleLabel,
Expand Down Expand Up @@ -54,9 +58,12 @@
@forelse ($itemsList->items() as $key => $item)
<tr>
<td class="col-md-1">{{ $item->id }}</td>
<td class="col-md-3">
{{ parse_url($item->web_url)['host'] ?? null }}
</td>
<td class="col-md-3">
<a href="{{ route($showRoute, [$item->id]) }}">
{{ (isset($columnTitleName)) ? $item->{$columnTitleName} : $item->title }}
{{ $item->path_with_namespace }}
</a>
</td>
<td class="col-md-2">
Expand Down
28 changes: 14 additions & 14 deletions resources/views/gitpab/time/index_filter_form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,7 @@
])
</div>
</div>
<div class="col-md-2">
<div class="form-group">
@include('partial.form.element.select', [
'name' => 'projects[]',
'list' => $projectsList,
'selected' => $request->input('projects'),
'options' => ['multiple' => 'multiple'],
'label' => __('messages.Projects'),
])
</div>
</div>
<div class="col-md-2">
<div class="col-md-4">
<div class="form-group">
@include('partial.form.element.date_range', [
'name' => 'date_range',
Expand All @@ -54,10 +43,21 @@
])
</div>
</div>
<div class="col-md-12">
<div class="form-group">
@include('partial.form.element.select', [
'name' => 'projects[]',
'list' => $projectsList,
'selected' => $request->input('projects'),
'options' => ['multiple' => 'multiple'],
'label' => __('messages.Projects'),
])
</div>
</div>
</div>

<div class="row">
<div class="col-md-4">
<div class="col-md-6">
<div class="form-group">
@include('partial.form.element.select', [
'name' => 'labels[]',
Expand All @@ -68,7 +68,7 @@
])
</div>
</div>
<div class="col-md-4">
<div class="col-md-6">
<div class="form-group">
@include('partial.form.element.select', [
'name' => 'milestones[]',
Expand Down

0 comments on commit f9c7bb2

Please sign in to comment.