classes/Models/Change.php
public function getPreviewActionAttribute()
    {
        if ($this->changedModel
            && $this->changedModel->uri
            && $this->action != 'deleted') {
            return sprintf('<a href="%s" target="_blank"
                class="glyphicon glyphicon-bookmark js-tooltip"
                title="%s" data-placement="left"></a>',
                $this->preview_url,
                __('decoy::changes.standard_list.preview'));
        } else {
            return '<span class="glyphicon glyphicon-bookmark disabled"></span>';
        }
    }
public function getPreviewActionAttribute()
    {
        if ($this->changedModel
            && $this->changedModel->uri
            && $this->action != 'deleted') {
            return sprintf('<a href="%s" target="_blank"
                class="glyphicon glyphicon-bookmark js-tooltip"
                title="%s" data-placement="left"></a>',
                $this->preview_url,
                __('decoy::changes.standard_list.preview'));
        } else {
            return '<span class="glyphicon glyphicon-bookmark disabled"></span>';
        }
    }
public function getPreviewActionAttribute ( ) { if ( $ this -> changedModel && $ this -> changedModel -> uri && $ this -> action != 'deleted' ) { return sprintf ( '<a href="%s" target="_blank"
                class="glyphicon glyphicon-bookmark js-tooltip"
                title="%s" data-placement="left"></a>' , $ this -> preview_url , __ ( 'decoy::changes.standard_list.preview' ) ) ; } else { return '<span class="glyphicon glyphicon-bookmark disabled"></span>' ; } }
Make link to preview a version as long as the model has a URI and the
action wasn't a delete action.

@return string
Make link to preview a version as long as the model has a URI and the action wasn t a delete action .