Page MenuHomePhabricator

D18189.diff
No OneTemporary

D18189.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -9,12 +9,12 @@
'names' => array(
'conpherence.pkg.css' => 'ff161f2d',
'conpherence.pkg.js' => 'b5b51108',
- 'core.pkg.css' => '37dd219b',
+ 'core.pkg.css' => '7ae9e755',
'core.pkg.js' => '5d80e0db',
'darkconsole.pkg.js' => '1f9a31bc',
'differential.pkg.css' => '4ec4a37a',
'differential.pkg.js' => 'd4ab0e81',
- 'diffusion.pkg.css' => 'b93d9b8c',
+ 'diffusion.pkg.css' => 'a2d17c7d',
'diffusion.pkg.js' => '6134c5a1',
'favicon.ico' => '30672e08',
'maniphest.pkg.css' => '4845691a',
@@ -71,8 +71,8 @@
'rsrc/css/application/differential/revision-history.css' => '0e8eb855',
'rsrc/css/application/differential/revision-list.css' => 'f3c47d33',
'rsrc/css/application/differential/table-of-contents.css' => 'ae4b7a55',
- 'rsrc/css/application/diffusion/diffusion-history.css' => '4540f568',
- 'rsrc/css/application/diffusion/diffusion-icons.css' => 'a6a1e2ba',
+ 'rsrc/css/application/diffusion/diffusion-history.css' => '898ed727',
+ 'rsrc/css/application/diffusion/diffusion-icons.css' => '0c15255e',
'rsrc/css/application/diffusion/diffusion-readme.css' => '419dd5b6',
'rsrc/css/application/diffusion/diffusion-repository.css' => 'ee6f20ec',
'rsrc/css/application/diffusion/diffusion-source.css' => '750add59',
@@ -161,7 +161,7 @@
'rsrc/css/phui/phui-header-view.css' => 'e7de7ee2',
'rsrc/css/phui/phui-hovercard.css' => 'f0592bcf',
'rsrc/css/phui/phui-icon-set-selector.css' => '87db8fee',
- 'rsrc/css/phui/phui-icon.css' => '4c46b6ba',
+ 'rsrc/css/phui/phui-icon.css' => '5c4a5de6',
'rsrc/css/phui/phui-image-mask.css' => 'a8498f9c',
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
'rsrc/css/phui/phui-info-view.css' => '6e217679',
@@ -570,8 +570,8 @@
'differential-revision-history-css' => '0e8eb855',
'differential-revision-list-css' => 'f3c47d33',
'differential-table-of-contents-css' => 'ae4b7a55',
- 'diffusion-history-css' => '4540f568',
- 'diffusion-icons-css' => 'a6a1e2ba',
+ 'diffusion-history-css' => '898ed727',
+ 'diffusion-icons-css' => '0c15255e',
'diffusion-readme-css' => '419dd5b6',
'diffusion-repository-css' => 'ee6f20ec',
'diffusion-source-css' => '750add59',
@@ -849,7 +849,7 @@
'phui-hovercard' => '1bd28176',
'phui-hovercard-view-css' => 'f0592bcf',
'phui-icon-set-selector-css' => '87db8fee',
- 'phui-icon-view-css' => '4c46b6ba',
+ 'phui-icon-view-css' => '5c4a5de6',
'phui-image-mask-css' => 'a8498f9c',
'phui-info-panel-css' => '27ea50a1',
'phui-info-view-css' => '6e217679',
diff --git a/src/applications/differential/constants/DifferentialChangeType.php b/src/applications/differential/constants/DifferentialChangeType.php
--- a/src/applications/differential/constants/DifferentialChangeType.php
+++ b/src/applications/differential/constants/DifferentialChangeType.php
@@ -71,7 +71,7 @@
self::FILE_TEXT => 'fa-file-text-o',
self::FILE_IMAGE => 'fa-file-image-o',
self::FILE_BINARY => 'fa-file',
- self::FILE_DIRECTORY => 'fa-folder-open',
+ self::FILE_DIRECTORY => 'fa-folder',
self::FILE_SYMLINK => 'fa-link',
self::FILE_DELETED => 'fa-file',
self::FILE_NORMAL => 'fa-file-text-o',
@@ -83,14 +83,14 @@
public static function getIconColorForFileType($type) {
static $icons = array(
- self::FILE_TEXT => 'black',
- self::FILE_IMAGE => 'black',
+ self::FILE_TEXT => 'bluetext',
+ self::FILE_IMAGE => 'bluetext',
self::FILE_BINARY => 'green',
- self::FILE_DIRECTORY => 'blue',
- self::FILE_SYMLINK => 'blue',
+ self::FILE_DIRECTORY => 'bluetext',
+ self::FILE_SYMLINK => 'bluetext',
self::FILE_DELETED => 'red',
- self::FILE_NORMAL => 'black',
- self::FILE_SUBMODULE => 'blue',
+ self::FILE_NORMAL => 'bluetext',
+ self::FILE_SUBMODULE => 'bluetext',
);
return idx($icons, $type, 'black');
diff --git a/src/applications/diffusion/controller/DiffusionLastModifiedController.php b/src/applications/diffusion/controller/DiffusionLastModifiedController.php
--- a/src/applications/diffusion/controller/DiffusionLastModifiedController.php
+++ b/src/applications/diffusion/controller/DiffusionLastModifiedController.php
@@ -132,7 +132,11 @@
}
}
- $details = AphrontTableView::renderSingleDisplayLine($data->getSummary());
+ $details = DiffusionView::linkDetail(
+ $drequest->getRepository(),
+ $commit->getCommitIdentifier(),
+ $data->getSummary());
+ $details = AphrontTableView::renderSingleDisplayLine($details);
} else {
$author = '';
$details = '';
diff --git a/src/applications/diffusion/view/DiffusionBrowseTableView.php b/src/applications/diffusion/view/DiffusionBrowseTableView.php
--- a/src/applications/diffusion/view/DiffusionBrowseTableView.php
+++ b/src/applications/diffusion/view/DiffusionBrowseTableView.php
@@ -20,6 +20,7 @@
public function render() {
$request = $this->getDiffusionRequest();
$repository = $request->getRepository();
+ require_celerity_resource('diffusion-history-css');
$base_path = trim($request->getPath(), '/');
if ($base_path) {
@@ -74,7 +75,6 @@
$dict = array(
'lint' => celerity_generate_unique_node_id(),
- 'commit' => celerity_generate_unique_node_id(),
'date' => celerity_generate_unique_node_id(),
'author' => celerity_generate_unique_node_id(),
'details' => celerity_generate_unique_node_id(),
@@ -86,13 +86,13 @@
}
$rows[] = array(
- $history_link,
$browse_link,
idx($dict, 'lint'),
- $dict['commit'],
$dict['details'],
$dict['date'],
+ $history_link,
);
+
}
if ($need_pull) {
@@ -113,28 +113,17 @@
$lint = $request->getLint();
$view = new AphrontTableView($rows);
- $view->setHeaders(
- array(
- null,
- pht('Path'),
- ($lint ? $lint : pht('Lint')),
- pht('Modified'),
- pht('Details'),
- pht('Committed'),
- ));
$view->setColumnClasses(
array(
- 'nudgeright',
'',
'',
- '',
- 'wide',
+ 'wide commit-detail',
'right',
+ 'right narrow',
));
$view->setColumnVisibility(
array(
true,
- true,
$show_lint,
true,
true,
@@ -144,15 +133,14 @@
$view->setDeviceVisibility(
array(
true,
- true,
- false,
false,
true,
false,
+ false,
));
- return $view->render();
+ return phutil_tag_div('diffusion-browse-table', $view->render());
}
}
diff --git a/src/applications/diffusion/view/DiffusionView.php b/src/applications/diffusion/view/DiffusionView.php
--- a/src/applications/diffusion/view/DiffusionView.php
+++ b/src/applications/diffusion/view/DiffusionView.php
@@ -156,6 +156,19 @@
$commit_name);
}
+ final public static function linkDetail(
+ PhabricatorRepository $repository,
+ $commit,
+ $detail) {
+
+ return phutil_tag(
+ 'a',
+ array(
+ 'href' => $repository->getCommitURI($commit),
+ ),
+ $detail);
+ }
+
final public static function linkRevision($id) {
if (!$id) {
return null;
diff --git a/webroot/rsrc/css/application/diffusion/diffusion-history.css b/webroot/rsrc/css/application/diffusion/diffusion-history.css
--- a/webroot/rsrc/css/application/diffusion/diffusion-history.css
+++ b/webroot/rsrc/css/application/diffusion/diffusion-history.css
@@ -48,6 +48,16 @@
margin-right: 4px;
}
+/* - Browse Styles ----------------------------------------------------------*/
+
+.diffusion-browse-table .commit-detail {
+ padding-left: 32px;
+}
+
+.diffusion-browse-table .commit-detail a {
+ color: {$darkbluetext};
+}
+
/* - Phone Style ------------------------------------------------------------*/
.device-phone.diffusion-history-view .phui-two-column-view
diff --git a/webroot/rsrc/css/application/diffusion/diffusion-icons.css b/webroot/rsrc/css/application/diffusion/diffusion-icons.css
--- a/webroot/rsrc/css/application/diffusion/diffusion-icons.css
+++ b/webroot/rsrc/css/application/diffusion/diffusion-icons.css
@@ -20,6 +20,7 @@
.diffusion-browse-name {
margin-left: 8px;
+ letter-spacing: 0.02em;
}
.diffusion-link-icon + .diffusion-link-icon {
diff --git a/webroot/rsrc/css/phui/phui-icon.css b/webroot/rsrc/css/phui/phui-icon.css
--- a/webroot/rsrc/css/phui/phui-icon.css
+++ b/webroot/rsrc/css/phui/phui-icon.css
@@ -45,6 +45,10 @@
filter: grayscale(100%);
}
+.phui-icon-view.bluetext {
+ color: {$bluetext};
+}
+
/* - Icon in a Circle ------------------------------------------------------- */
.phui-icon-circle {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 1:51 AM (1 d, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716882
Default Alt Text
D18189.diff (8 KB)

Event Timeline