lib/timetrap/cli.rb in timetrap-1.8.7 vs lib/timetrap/cli.rb in timetrap-1.8.8

- old
+ new

@@ -348,10 +348,10 @@ end.sort_by{|sheet| sheet[:name].downcase} width = sheets.sort_by{|h|h[:name].length }.last[:name].length + 4 width = 10 if width < 10 puts " %-#{width}s%-12s%-12s%s" % ["Timesheet", "Running", "Today", "Total Time"] sheets.each do |sheet| - star = sheet[:name] == Timer.current_sheet ? '*' : ' ' + star = sheet[:name] == Timer.current_sheet ? '*' : sheet[:name] == Timer.last_sheet ? '-' : ' ' puts "#{star}%-#{width}s%-12s%-12s%s" % [ sheet[:running], sheet[:today], sheet[:total] ].map(&method(:format_seconds)).unshift(sheet[:name])