lib/TokiCLI/view.rb in TokiCLI-0.1.1 vs lib/TokiCLI/view.rb in TokiCLI-0.2.0
- old
+ new
@@ -4,10 +4,14 @@
def total_table(data)
table = init_table
clear
if data['data']['apps']
- table.title = "Your apps monitored by Toki"
+ if data['data']['date']
+ table.title = "Your apps monitored by Toki: #{data['data']['date']}"
+ else
+ table.title = "Your apps monitored by Toki"
+ end
puts apps_3(data, table)
else
table.title = "Your app monitored by Toki"
puts total_3(data, table)
end