Sha256: cbffa8c77cec51298514ede1bb034d21f9ba5137881a9fbd429bf7eb13b9d185

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

% max_id_len = issues.max_by { |i| i.id.size }.id.size
% subject_limit = 60
%
% issues.group_by_project.each do |project, project_issues|

<%= "[ #{project.name} ]".center(max_id_len + 3 + subject_limit + 3 + 8).red + "\n" %>
<%= '(id)'.center(max_id_len).yellow %> | <%= '(subject)'.center(subject_limit).yellow %> | <%= "(status)\n".yellow %>
<% project_issues.each do |i| %>
<%= i.id.ljust(max_id_len) %>   <%= i.subject.cut(subject_limit).ljust(subject_limit) %>   <%= i.status.name %><%= "\n" %>
<% end %>

% end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redmine_cli-0.2.1 lib/assets/templates/issue/list.erb
redmine_cli-0.2.0 lib/assets/templates/issue/list.erb