1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-09 16:32:39 +01:00

Add table headers to Pholio Mock History table

Summary: Adds a basic "Revision {$num}" table header

Test Plan: Actually spend more time testing various depth layouts.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5383

Differential Revision: https://secure.phabricator.com/D9648
This commit is contained in:
Chad Little 2014-06-22 08:48:05 -07:00
parent 1d90577d8c
commit fc2588d6e2
3 changed files with 24 additions and 2 deletions

View file

@ -81,7 +81,7 @@ return array(
'rsrc/css/application/phame/phame.css' => '19ecc703',
'rsrc/css/application/pholio/pholio-edit.css' => '3ad9d1ee',
'rsrc/css/application/pholio/pholio-inline-comments.css' => '2703fdb9',
'rsrc/css/application/pholio/pholio.css' => 'c1510ea2',
'rsrc/css/application/pholio/pholio.css' => '5591f1e9',
'rsrc/css/application/phortune/phortune-credit-card-form.css' => 'b25b4beb',
'rsrc/css/application/phrequent/phrequent.css' => 'ffc185ad',
'rsrc/css/application/phriction/phriction-document-css.css' => '7d7f0071',
@ -752,7 +752,7 @@ return array(
'phabricator-uiexample-reactor-sendproperties' => '551add57',
'phabricator-zindex-css' => 'efb673ac',
'phame-css' => '19ecc703',
'pholio-css' => 'c1510ea2',
'pholio-css' => '5591f1e9',
'pholio-edit-css' => '3ad9d1ee',
'pholio-inline-comments-css' => '2703fdb9',
'phortune-credit-card-form' => '2290aeef',

View file

@ -67,8 +67,20 @@ final class PholioMockThumbGridView extends AphrontView {
}
$grid = array();
$jj = $depth;
for ($ii = 0; $ii < $depth; $ii++) {
$row = array();
if ($depth == $jj) {
$row[] = phutil_tag(
'th',
array(
'valign' => 'middle',
'class' => 'pholio-history-header',
),
pht('Current Revision'));
} else {
$row[] = phutil_tag('th', array(), null);
}
foreach ($cols as $col) {
if (empty($col[$ii])) {
$row[] = phutil_tag('td', array(), null);
@ -78,6 +90,7 @@ final class PholioMockThumbGridView extends AphrontView {
}
}
$grid[] = phutil_tag('tr', array(), $row);
$jj--;
}
$grid = phutil_tag(

View file

@ -239,3 +239,12 @@ button.pholio-image-button-link:active {
padding: 12px 8px;
border-top: 1px solid {$thinblueborder};
}
.pholio-history-header {
vertical-align: middle;
color: {$lightbluetext};
font-weight: bold;
padding-right: 8px;
-webkit-font-smoothing: antialiased;
white-space: nowrap;
}