Skip to content

Commit

Permalink
Fixed bug in views for created_at date
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 19, 2013
1 parent 8daffa8 commit d6a718e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
15 changes: 4 additions & 11 deletions app/views/backend/assets/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div class="profile-box">
<br>
<!-- checked out assets table -->
@if (count($asset->assetlog) > 0)

<table class="table table-hover">
<thead>
<tr>
Expand All @@ -60,6 +60,7 @@
</tr>
</thead>
<tbody>
@if (count($asset->assetlog) > 0)
@foreach ($asset->assetlog as $log)
<tr>
<td>
Expand All @@ -84,9 +85,10 @@
</td>
</tr>
@endforeach
@endif
<tr>
<td></td>
<td>{{ $asset->created_on }}</td>
<td>{{ $asset->created_at }}</td>
<td>{{ $asset->adminuser->fullName() }}</td>
<td>created asset</td>
<td></td>
Expand All @@ -95,15 +97,6 @@
</tr>
</tbody>
</table>
@else

<div class="col-md-6">
<div class="alert alert-warning alert-block">
<i class="icon-warning-sign"></i>
@lang('admin/users/table.noresults')
</div>
</div>
@endif

</div>
</div>
Expand Down
19 changes: 6 additions & 13 deletions app/views/backend/licenses/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="profile-box">
<br>
<!-- checked out assets table -->
@if (count($license->assetlog) > 0)

<table class="table table-hover">
<thead>
<tr>
Expand All @@ -58,6 +58,7 @@
</tr>
</thead>
<tbody>
@if (count($license->assetlog) > 0)
@foreach ($license->assetlog as $log)
<tr>
<td>
Expand All @@ -82,26 +83,18 @@
</td>
</tr>
@endforeach
@endif
<tr>
<td></td>
<td>{{ $license->created_on }}</td>
<td>{{ $license->created_at }}</td>
<td>{{ $license->adminuser->fullName() }}</td>
<td>created asset</td>
<td></td>


</tr>
</tbody>
</table>
@else

<div class="col-md-6">
<div class="alert alert-warning alert-block">
<i class="icon-warning-sign"></i>
@lang('admin/users/table.noresults')
</div>
</div>
@endif



</div>
</div>
Expand Down

0 comments on commit d6a718e

Please sign in to comment.