mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Change page title based on current page (#269)
This commit is contained in:
committed by
GitHub
parent
a7d67652bf
commit
fadd577db8
@@ -5,14 +5,17 @@ class StaticPagesController < ApplicationController
|
||||
@board = Board.find_by(id: Current.tenant.tenant_setting.root_board_id)
|
||||
|
||||
if @board
|
||||
@page_title = @board.name
|
||||
render 'boards/show'
|
||||
else
|
||||
@page_title = t('roadmap.title')
|
||||
get_roadmap_data
|
||||
render 'static_pages/roadmap'
|
||||
end
|
||||
end
|
||||
|
||||
def roadmap
|
||||
@page_title = t('roadmap.title')
|
||||
get_roadmap_data
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user