
%h1='User tracking item #'.$id

%hr

%table.table.table-condensed
  %tr
    %th='ID'
    %td
      =$ut->id
      !=@$this->getUserTrakingObjectLink($ut)
  %tr
    %th='ACTION'
    %td=$ut->action
  %tr
    %th='USER'
    %td!=SystemInfoHelper::getUserCoolName($ut->id_user)
  %tr
    %th='TABLE'
    %td=$ut->table_name
  %tr
    %th='PRIMARY KEY'
    %td=$ut->primary_key
  %tr
    %th='CONTROLLER'
    %td=$ut->controller
  %tr
    %th='DATA'
    %td
      %b='Length: '.strlen($ut->data)
      -if(array_get($_REQUEST,'view_data',0) == 1)
        %pre
          -Yii::import('application.migrations.m151105_171146_user_tracking_table_data_column_changed_encoding')
          -if(m151105_171146_user_tracking_table_data_column_changed_encoding::done())
            =_2str($ut->DataValue)
          -else
            =_2str($ut->DataValueOld)
        %a(href="#{$this->getPageLink(array('view_data'=>0))}")=t('Hide data')
      -else
        %a(href="#{$this->getPageLink(array('view_data'=>1))}")=t('View data')