lib/ayadn/view.rb in ayadn-1.7.4 vs lib/ayadn/view.rb in ayadn-1.7.5

- old
+ new

@@ -549,25 +549,33 @@ end def build_content(content) view = "" view << build_header(content) - view << "\n" + view << "\n" unless Settings.options[:timeline][:compact] == true view << content[:text] - view << "\n" + view << "\n" unless Settings.options[:timeline][:compact] == true if content[:has_checkins] view << build_checkins(content) - view << "\n" + view << "\n" unless Settings.options[:timeline][:compact] == true end unless content[:links].empty? view << "\n" content[:links].each do |link| view << link.color(Settings.options[:colors][:link]) view << "\n" end end - view << "\n\n" + if Settings.options[:timeline][:compact] == true + if content[:links].empty? + view << "\n" + else + view + end + else + view << "\n\n" + end end def build_header(content) header = "" header << content[:handle].color(Settings.options[:colors][:username]) @@ -596,11 +604,15 @@ unless content[:checkins][:name].nil? num_dots = content[:checkins][:name].length else num_dots = 10 end - hd = (".".color(Settings.options[:colors][:dots])) * num_dots - hd << "\n" + if Settings.options[:timeline][:compact] == true + hd = "\n" + else + hd = (".".color(Settings.options[:colors][:dots])) * num_dots + hd << "\n" + end formatted = { header: hd } content[:checkins].each do |key, val| formatted[key] = val end