Skip to content

Commit 5b70e63

Browse files
committed
Set timeline and roadmap titles
1 parent c966c58 commit 5b70e63

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/Traq/Controllers/ProjectController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ public function view()
8484
*/
8585
public function roadmap(string $filter = 'active')
8686
{
87+
$this->title(l('roadmap'));
88+
8789
// Get the projects milestones and send them to the view.
8890
$milestones = Milestone::select()->where('project_id', $this->project->id);
8991

@@ -146,6 +148,8 @@ public function roadmap(string $filter = 'active')
146148
*/
147149
public function viewMilestone($milestone_slug)
148150
{
151+
$this->title(l('roadmap'));
152+
149153
// Get the milestone
150154
$milestone = Milestone::select()->where(array(
151155
array('project_id', $this->project->id),
@@ -161,6 +165,8 @@ public function viewMilestone($milestone_slug)
161165
return $this->json($milestone->__toArray());
162166
}
163167

168+
$this->title($milestone->name);
169+
164170
// And send it to the view
165171
View::set('milestone', $milestone);
166172

@@ -172,6 +178,8 @@ public function viewMilestone($milestone_slug)
172178
*/
173179
public function changelog()
174180
{
181+
$this->title(l('changelog'));
182+
175183
// Atom feed
176184
$this->feeds[] = array(Request::requestUri() . ".atom", l('x_changelog_feed', $this->project->name));
177185

src/Traq/Controllers/TimelineController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class TimelineController extends AppController
3737
{
3838
public function index()
3939
{
40+
$this->title(l('timeline'));
41+
4042
$page = Request::$request['page'] ?? 1;
4143

4244
$rows = $this->db->select('*')

0 commit comments

Comments
 (0)