-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathissue.blade.php
More file actions
101 lines (101 loc) · 2.8 KB
/
issue.blade.php
File metadata and controls
101 lines (101 loc) · 2.8 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<div class="row">
<small>
<div class="col-md-4">
<table class="table table-condensed">
<tbody>
<tr>
<td>Submitted By</td>
<td>{{ HTML::link('https://github.com/'. $issue['user']['login'], $issue['user']['login'], array('target' => '_blank')) }}</td>
</tr>
<tr>
<td>Assigned To</td>
<td>
@if ($issue['assignee'] != null)
{{ HTML::link('https://github.com/'. $issue['assignee']['login'], $issue['assignee']['login'], array('target' => '_blank')) }}
@else
@endif
</td>
</tr>
<tr>
<td>Closed By</td>
<td>
@if ($issue['closed_at'] != null && $issue['closed_by'] != null)
{{ HTML::link('https://github.com/'. $issue['closed_by']['login'], $issue['closed_by']['login'], array('target' => '_blank')) }}
@else
@endif
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-4">
<table class="table table-condensed">
<tbody>
<tr>
<td>Submitted On</td>
<td>{{ date('F jS, Y \a\t h:ia', strtotime($issue['created_at'])) }}</td>
</tr>
<tr>
<td>Updated On</td>
<td>{{ date('F jS, Y \a\t h:ia', strtotime($issue['updated_at'])) }}</td>
</tr>
<tr>
<td>Closed On</td>
<td>
@if ($issue['closed_at'] != null)
{{ date('F jS, Y \a\t h:ia', strtotime($issue['closed_at'])) }}
@else
@endif
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-4">
<table class="table table-condensed">
<tbody>
<tr>
<td>State</td>
<td>{{ $issue['state'] }}</td>
</tr>
<tr>
<td>Labels</td>
<td>
@foreach ($issue['labels'] as $label)
<span class="label label-{{ $label['name'] }}">
{{ HTML::link('https://github.com/'. $githubUser .'/'. $repo .'/issues?labels='. $label['name'], $label['name'], array('style' => 'color: #fff;', 'target' => '_blank')) }}
</span>
@endforeach
</td>
</tr>
<tr>
<td>Milestone</td>
<td>
@if ($issue['milestone'] != null)
{{ HTML::link('https://github.com/'. $githubUser .'/'. $repo .'/issues?milestone='. $issue['milestone']['number'], $issue['milestone']['title'], array('target' => '_blank')) }}
<?php
$openIssues = $issue['milestone']['open_issues'];
$closedIssues = $issue['milestone']['closed_issues'];
$totalIssues = (int)$openIssues + (int)$closedIssues;
?>
{{ percent($closedIssues, $totalIssues) .'%' }}
@else
@endif
</td>
</tr>
</tbody>
</table>
</div>
</small>
</div>
<hr />
<div class="row">
<div class="col-md-12">
{{ $github->api('markdown')->render(nl2br($issue['body'])) }}
</div>
</div>