Skip to content

Commit

Permalink
Show asset status on undeployable
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 22, 2013
1 parent a356dbd commit 2774b07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,13 @@ public static function availassetcount()

}

/**
* Get total assets
*/
public function assetstatus()
{
return $this->belongsTo('Statuslabel','status_id');
}


}
5 changes: 4 additions & 1 deletion app/views/backend/assets/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@
@elseif (Input::get('RTD'))
Ready to Deploy
@elseif (Input::get('Undeployable'))
Undeployable
@if ($asset->assetstatus)
{{ $asset->assetstatus->name }}
@endif

@endif
</td>
@else
Expand Down

0 comments on commit 2774b07

Please sign in to comment.