Skip to content

Commit

Permalink
Minor template change
Browse files Browse the repository at this point in the history
  • Loading branch information
hulu8004 committed Jan 4, 2016
1 parent 7ed928f commit 0c03942
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions resources/views/admin/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,21 @@
</div>
</div>
<div class="portlet-body">
<div class="list-group">
@foreach( $releases as $release )
{{--*/ $date = new \Carbon\Carbon( $release['published_at'] ) /*--}}
<a target="_blank" href="{{ $release['zipball_url'] }}" class="list-group-item">
<h4 class="list-group-item-heading">{{ $release['name'] }} {!! ( $date > \Carbon\Carbon::now()->subHours( 48 ) ) ? '<span class="badge badge-danger badge-roundless">' . trans( 'system.releases.new' ) . '</span>' : NULL !!}</h4>
@if( $release['prerelease'] )
<div class="note note-danger mt-md">
<h4 class="block"> {{ trans( 'system.releases.notice.title' ) }} </h4>
<p> {!! trans( 'system.releases.notice.body', ['tag' => $release['tag_name']] ) !!} </p>
</div>
@endif
<p class="list-group-item-text"> {{ $release['body'] }} </p>
</a>
@endforeach
</div>
<div class="list-group">
@foreach( $releases as $release )
{{--*/ $date = new \Carbon\Carbon( $release['published_at'] ) /*--}}
<a target="_blank" href="{{ $release['zipball_url'] }}" class="list-group-item">
<h4 class="list-group-item-heading">{{ $release['name'] }} {!! ( $date > \Carbon\Carbon::now()->subHours( 48 ) ) ? '<span class="badge badge-danger badge-roundless">' . trans( 'system.releases.new' ) . '</span>' : NULL !!}</h4>
@if( $release['prerelease'] )
<div class="note note-danger mt-md">
<h4 class="block"> {{ trans( 'system.releases.notice.title' ) }} </h4>
<p> {!! trans( 'system.releases.notice.body', ['tag' => $release['tag_name']] ) !!} </p>
</div>
@endif
<p class="list-group-item-text"> {{ $release['body'] }} </p>
</a>
@endforeach
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 0c03942

Please sign in to comment.