1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00

Improve <title> on Diffusion pages

Test Plan:
Visit /rX123.
Visit /diffusion/X/.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D1463
This commit is contained in:
vrana 2012-01-20 13:27:32 -08:00
parent d5eaef9567
commit e142c7e26c
2 changed files with 4 additions and 5 deletions

View file

@ -192,8 +192,7 @@ class DiffusionCommitController extends DiffusionController {
$branch = $drequest->getBranchURIComponent(
$drequest->getBranch());
$filename = $changeset->getFilename();
$commit = $drequest->getCommit();
$reference = "{$branch}{$filename};{$commit}";
$reference = "{$branch}{$filename};".$drequest->getCommit();
$references[$key] = $reference;
}
@ -216,7 +215,7 @@ class DiffusionCommitController extends DiffusionController {
return $this->buildStandardPageResponse(
$content,
array(
'title' => 'Diffusion',
'title' => 'r'.$callsign.$commit->getCommitIdentifier(),
));
}

View file

@ -1,7 +1,7 @@
<?php
/*
* Copyright 2011 Facebook, Inc.
* Copyright 2012 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -106,7 +106,7 @@ class DiffusionRepositoryController extends DiffusionController {
return $this->buildStandardPageResponse(
$content,
array(
'title' => 'Diffusion',
'title' => $drequest->getRepository()->getName(),
));
}