Skip to content

Commit

Permalink
Can filter by team, requester, status and priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordi Puigdellívol committed Jul 24, 2018
1 parent 83430b8 commit 230f5c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/css/all.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/assets/css/style.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions resources/assets/less/style.less
Expand Up @@ -85,6 +85,10 @@ a{
font-size:10px;
}

.label a{
color:white;
}

.ticket-status-new{
.white; .bg-danger;
}
Expand Down
10 changes: 5 additions & 5 deletions resources/views/components/ticket/ticketHeader.blade.php
@@ -1,15 +1,15 @@
<tr>
<td>
<input type="checkbox" name="selected[{{$ticket->id}}]" meta:index="{{$ticket->id}}" class="hidden selector">
<span class="label ticket-status-{{ $ticket->statusName() }}">{{ str_limit(__('ticket.' . $ticket->statusName()), 1, '') }}</span>&nbsp;
<span class="label ticket-priority-{{ $ticket->priorityName() }}">{{ str_limit(__('ticket.' . $ticket->priorityName()), 1, '') }}</span>&nbsp;
<span class="label ticket-status-{{ $ticket->statusName() }}">{{ link_to_route('tickets.index', str_limit(__('ticket.' . $ticket->statusName()), 1, ''), ["status" => $ticket->status]) }}</span>&nbsp;
<span class="label ticket-priority-{{ $ticket->priorityName() }}">{{ link_to_route('tickets.index', str_limit(__('ticket.' . $ticket->priorityName()), 1, ''), ["priority" => $ticket->priority]) }}</span>&nbsp;
@if( $ticket->isEscalated() ) @icon(flag) @endif
@if( $ticket->getIssueId() ) @icon(bug) @endif
<a href="{{ route('tickets.show', $ticket) }}"> #{{ $ticket->id }}. {{ str_limit($ticket->title, 35) }}</a>
</td>
<td> {{ $ticket->requester->name }}</td>
<td> {{ nameOrDash( $ticket->team ) }}</td>
<td> {{ nameOrDash( $ticket->user ) }}</td>
<td> {{ link_to_route('tickets.index', $ticket->requester->name, ["requester_id" => $ticket->requester_id] ) }}</td>
<td> {{ link_to_route('tickets.index', nameOrDash( $ticket->team ), ["team_id" => $ticket->team_id] ) }}</td>
<td> {{ link_to_route('tickets.index', nameOrDash( $ticket->user ), ["team_id" => $ticket->user_id] ) }}</td>
<td class="hide-mobile"> {{ $ticket->created_at->diffForHumans()}}</td>
<td class="hide-mobile"> {{ $ticket->updated_at->diffForHumans()}}</td>
</tr>

0 comments on commit 230f5c7

Please sign in to comment.