classes/Models/Change.php
public function getActionLabelAttribute()
    {
        $map = [
            'created' => 'success',
            'updated' => 'warning',
            'deleted' => 'danger',
            'published' => 'info',
            'unpublished' => 'default',
        ];

        return sprintf('<a href="%s" class="label label-%s">%s</a>',
            $this->filterUrl(['action' => $this->action]),
            isset($map[$this->action]) ? $map[$this->action] : 'info',
            __("decoy::changes.actions.$this->action"));
    }
public function getActionLabelAttribute()
    {
        $map = [
            'created' => 'success',
            'updated' => 'warning',
            'deleted' => 'danger',
            'published' => 'info',
            'unpublished' => 'default',
        ];

        return sprintf('<a href="%s" class="label label-%s">%s</a>',
            $this->filterUrl(['action' => $this->action]),
            isset($map[$this->action]) ? $map[$this->action] : 'info',
            __("decoy::changes.actions.$this->action"));
    }
public function getActionLabelAttribute ( ) { $ map = [ 'created' => 'success' , 'updated' => 'warning' , 'deleted' => 'danger' , 'published' => 'info' , 'unpublished' => 'default' , ] ; return sprintf ( '<a href="%s" class="label label-%s">%s</a>' , $ this -> filterUrl ( [ 'action' => $ this -> action ] ) , isset ( $ map [ $ this -> action ] ) ? $ map [ $ this -> action ] : 'info' , __ ( "decoy::changes.actions.$this->action" ) ) ; }
Format the activity as a colored label

@return string HTML
Format the activity as a colored label