Sha256: 983475a6039a783f76dcfdbb62d90b7c6684bb5a10f555cd98e8aa46b661569b

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

% record = case user
%          when String, Fixnum then RedmineRest::Models::User.find_by_id(user)
%          when RedmineRest::Models::User then user
%          else nil
%          end
%
% output = if record
%            (record.name? ? record.name : "#{record.firstname} #{record.lastname}") + "[#{record.id}]".red
%          else
%            'nil'
%          end
%
<%= output %>

Version data entries

3 entries across 3 versions & 1 rubygems

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