mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +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:
parent
d5eaef9567
commit
e142c7e26c
2 changed files with 4 additions and 5 deletions
|
@ -192,8 +192,7 @@ class DiffusionCommitController extends DiffusionController {
|
||||||
$branch = $drequest->getBranchURIComponent(
|
$branch = $drequest->getBranchURIComponent(
|
||||||
$drequest->getBranch());
|
$drequest->getBranch());
|
||||||
$filename = $changeset->getFilename();
|
$filename = $changeset->getFilename();
|
||||||
$commit = $drequest->getCommit();
|
$reference = "{$branch}{$filename};".$drequest->getCommit();
|
||||||
$reference = "{$branch}{$filename};{$commit}";
|
|
||||||
$references[$key] = $reference;
|
$references[$key] = $reference;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +215,7 @@ class DiffusionCommitController extends DiffusionController {
|
||||||
return $this->buildStandardPageResponse(
|
return $this->buildStandardPageResponse(
|
||||||
$content,
|
$content,
|
||||||
array(
|
array(
|
||||||
'title' => 'Diffusion',
|
'title' => 'r'.$callsign.$commit->getCommitIdentifier(),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with 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(
|
return $this->buildStandardPageResponse(
|
||||||
$content,
|
$content,
|
||||||
array(
|
array(
|
||||||
'title' => 'Diffusion',
|
'title' => $drequest->getRepository()->getName(),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue