Sha256: 598a354944683f6aa2ff14b58e0dad41e542567617631bd01c389770c1b59ea6
Contents?: true
Size: 817 Bytes
Versions: 4
Compression:
Stored size: 817 Bytes
Contents
Project detail <% if scale %> by <%= scale.red %> from <%= when_to.send("beginning_of_#{scale}").strftime(Pratt::FMT).blue %> to <%= when_to.send("end_of_#{scale}").strftime(Pratt::FMT).blue %> <% end %> <%= ' '.with_label('') << 'dys'.underline << ' '*5 << 'hrs'.underline << ' '*5 << 'min'.underline << ' '*3 << 'total'.underline %> <%= ( '-'.or '·')*67 %> <% @projects.each do |proj| %> <% hour_spent = proj.time_spent(scale, when_to) %> <% if show_all or ( !show_all and hour_spent != 0.0 ) %> <%= ('|'.or '⋮').with_label(proj.name) %> <%= (hour_spent / 24).format_integer.cyan %> day <%= (hour_spent % 24).format_integer.yellow %> hour <%= (60*(hour_spent - hour_spent.to_i)).format_integer.green %> min <%= hour_spent.pretty_print.blue %> <% end %> <% end %> <%= ( '-'.or '·' )*67 %>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
Pratt-1.6.8-x86-linux | views/graph.eruby |
Pratt-1.6.8 | views/graph.eruby |
Pratt-1.6.5 | views/graph.eruby |
Pratt-1.6.4 | views/graph.eruby |