Sha256: 96b574028bfa6044a7f1ede8814b2f31bd65efe1c329bd76f699c00ca5bef87c

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 Bytes

Contents

<% colors    = %w(red red_on_yellow red_on_white green green_on_blue yellow yellow_on_blue blue magenta magenta_on_blue cyan white white_on_green white_on_blue white_on_magenta black_on_yellow black_on_blue black_on_green black_on_magenta black_on_cyan black_on_red).sort 
  @whences.each do |whence| 
  color = colors[whence.project.id%colors.size]
%>
<%= ('|'.or '⌈').with_label whence.project.name %><%= whence.start_at.strftime(Pratt::FMT).send(color) -%>
<% if whence.end_at -%>
 <%= '-'.or '­' %> <%= whence.end_at.strftime(Pratt::FMT).send(color) %><%= '|'.or '⌋' %> <%= "%6.2f"% [(whence.end_at-whence.start_at)/60] %> min
<% else %>
   ...
<% end %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
Pratt-1.6.8-x86-linux views/raw.eruby
Pratt-1.6.8 views/raw.eruby
Pratt-1.6.5 views/raw.eruby
Pratt-1.6.4 views/raw.eruby