Removes wrong local variable in resources view.
Uses truncate method on resources string values, instead of view helper.