Sha256: 0e855d562bef0d949921ef0eee345b4fd2fcaa0da1c9ab41b9417b8902a1a3a9

Contents?: true

Size: 374 Bytes

Versions: 3

Compression:

Stored size: 374 Bytes

Contents

% old_obj = object_class.find_by_id(old_value)
% old = if old_obj
%         old_obj.name.to_s + "[#{old_obj.id}]".red
%       else
%         'nil'
%       end
%
% new_obj = object_class.find_by_id(new_value)
% new = if new_obj
%         new_obj.name.to_s + "[#{new_obj.id}]".red
%       else
%         'nil'
%       end
%
% output = old + '  ->  '.white + new
<%= output %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redmine_cli-0.7.0 lib/assets/templates/en/issue/show/detail/some_object.erb
redmine_cli-0.6.1 lib/assets/templates/en/issue/show/detail/some_object.erb
redmine_cli-0.6.0 lib/assets/templates/en/issue/show/detail/some_object.erb