mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00

* Adds a changelog page, linked from the main, with content automatically loaded from the source. To avoid conflicts, each entry is its own file and entries are grouped by the month during which the update will (probably) be deployed * The last group (most likely "last update") doesn't have a title, the rest do. * Add changelog entries from the last update so it's not too empty. * Also update the layout for the alerts a bit: remove bottom margin to reduce loss of whitespace.
16 lines
472 B
Python
16 lines
472 B
Python
import pathlib
|
|
|
|
from odoo.addons.runbot_merge.controllers.dashboard import MergebotDashboard
|
|
|
|
class Dashboard(MergebotDashboard):
|
|
def _entries(self):
|
|
changelog = pathlib.Path(__file__).parent / 'changelog'
|
|
if not changelog.is_dir():
|
|
return super()._entries()
|
|
|
|
return super()._entries() + [
|
|
(d.name, [f.read_text(encoding='utf-8') for f in d.iterdir() if f.is_file()])
|
|
for d in changelog.iterdir()
|
|
]
|
|
|