Skip to content

Commit

Permalink
Added space after ID in script (closes #76)
Browse files Browse the repository at this point in the history
starting
  • Loading branch information
isaiahzs committed Oct 13, 2017
1 parent a5cb787 commit 4728b53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/broadcast/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.generate_script(params)
document << '<ul>'
general_items.each do |i|
document << "<li data-id='#{i.id}'>"
document << "<span class='text-muted'>(ID #{i.id})</span>"
document << "<span class='text-muted'>(ID #{i.id})</span>&nbsp;"
document << "<strong>#{i.originated_at.strftime('%e %b')}</strong>: #{i.content.gsub("\n", '<br/>')}"
document << '</li>'
end
Expand All @@ -43,7 +43,7 @@ def self.generate_script(params)
document << '<ul>'
municipality.first(params[:max_muni].to_i).each do |i|
document << "<li data-id='#{i.id}'>"
document << "<span class='text-muted'>(ID #{i.id})</span>"
document << "<span class='text-muted'>(ID #{i.id})</span>&nbsp;"
document << "<strong>#{i.originated_at.strftime('%e %b')}</strong>: #{i.content.gsub("\n", '<br/>')}"
document << '</li>'
end
Expand All @@ -58,7 +58,7 @@ def self.generate_script(params)
document << '<ul>'
general_items.each do |i|
document << "<li data-id='#{i.id}'>"
document << "<span class='text-muted'>(ID #{i.id})</span>"
document << "<span class='text-muted'>(ID #{i.id})</span>&nbsp;"
document << "<strong>#{i.originated_at.strftime('%e %b')}</strong>: #{i.translation.gsub("\n", '<br/>')}"
document << '</li>'
end
Expand All @@ -72,7 +72,7 @@ def self.generate_script(params)
document << '<ul>'
municipality.first(params[:max_muni].to_i).each do |i|
document << "<li data-id='#{i.id}'>"
document << "<span class='text-muted'>(ID #{i.id})</span>"
document << "<span class='text-muted'>(ID #{i.id})</span>&nbsp;"
document << "<strong>#{i.originated_at.strftime('%e %b')}</strong>: #{i.translation.gsub("\n", '<br/>')}"
document << '</li>'
end
Expand Down

0 comments on commit 4728b53

Please sign in to comment.