Skip to content

Commit

Permalink
Add date to tab title
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Mar 19, 2021
1 parent 8aea2cd commit c277085
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion www/board/agenda/views/layout/main.js.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ def route(path, query)

# update title to match the item title whenever page changes
if defined? document and route.item
document.getElementsByTagName('title')[0].textContent = route.item.title
date = Agenda.date
title = route.item.title
if date != title # don't duplicate the date
document.getElementsByTagName('title')[0].textContent = date + ' ' + title
else
document.getElementsByTagName('title')[0].textContent = title
end
end
end

Expand Down

0 comments on commit c277085

Please sign in to comment.