mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Don't show description box in Pholio when there isnt one
Summary: n/a Test Plan: Added title and description to 1 of 2 mocks, toggled left and right, saw correct CSS. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9580
This commit is contained in:
parent
ee2563c620
commit
125b8dad7b
2 changed files with 26 additions and 23 deletions
|
@ -399,7 +399,7 @@ return array(
|
|||
'rsrc/js/application/passphrase/phame-credential-control.js' => '1e1c8a59',
|
||||
'rsrc/js/application/phame/phame-post-preview.js' => '61d927ec',
|
||||
'rsrc/js/application/pholio/behavior-pholio-mock-edit.js' => '1e1e8bb0',
|
||||
'rsrc/js/application/pholio/behavior-pholio-mock-view.js' => '7afc17c9',
|
||||
'rsrc/js/application/pholio/behavior-pholio-mock-view.js' => '83326068',
|
||||
'rsrc/js/application/phortune/behavior-balanced-payment-form.js' => '3b3e1664',
|
||||
'rsrc/js/application/phortune/behavior-stripe-payment-form.js' => '1693a296',
|
||||
'rsrc/js/application/phortune/behavior-test-payment-form.js' => 'b3e5ee60',
|
||||
|
@ -624,7 +624,7 @@ return array(
|
|||
'javelin-behavior-phabricator-watch-anchor' => '06e05112',
|
||||
'javelin-behavior-phame-post-preview' => '61d927ec',
|
||||
'javelin-behavior-pholio-mock-edit' => '1e1e8bb0',
|
||||
'javelin-behavior-pholio-mock-view' => '7afc17c9',
|
||||
'javelin-behavior-pholio-mock-view' => '83326068',
|
||||
'javelin-behavior-phui-object-box-tabs' => 'a3e2244e',
|
||||
'javelin-behavior-phui-timeline-dropdown-menu' => '4d94d9c3',
|
||||
'javelin-behavior-policy-control' => 'f3fef818',
|
||||
|
@ -1372,21 +1372,6 @@ return array(
|
|||
0 => 'owners-path-editor',
|
||||
1 => 'javelin-behavior',
|
||||
),
|
||||
'7afc17c9' =>
|
||||
array(
|
||||
0 => 'javelin-behavior',
|
||||
1 => 'javelin-util',
|
||||
2 => 'javelin-stratcom',
|
||||
3 => 'javelin-dom',
|
||||
4 => 'javelin-vector',
|
||||
5 => 'javelin-magical-init',
|
||||
6 => 'javelin-request',
|
||||
7 => 'javelin-history',
|
||||
8 => 'javelin-workflow',
|
||||
9 => 'javelin-mask',
|
||||
10 => 'javelin-behavior-device',
|
||||
11 => 'phabricator-keyboard-shortcut',
|
||||
),
|
||||
'7ba325ee' =>
|
||||
array(
|
||||
0 => 'javelin-install',
|
||||
|
@ -2127,6 +2112,21 @@ return array(
|
|||
1 => 'javelin-dom',
|
||||
2 => 'javelin-workflow',
|
||||
),
|
||||
83326068 =>
|
||||
array(
|
||||
0 => 'javelin-behavior',
|
||||
1 => 'javelin-util',
|
||||
2 => 'javelin-stratcom',
|
||||
3 => 'javelin-dom',
|
||||
4 => 'javelin-vector',
|
||||
5 => 'javelin-magical-init',
|
||||
6 => 'javelin-request',
|
||||
7 => 'javelin-history',
|
||||
8 => 'javelin-workflow',
|
||||
9 => 'javelin-mask',
|
||||
10 => 'javelin-behavior-device',
|
||||
11 => 'phabricator-keyboard-shortcut',
|
||||
),
|
||||
),
|
||||
'packages' =>
|
||||
array(
|
||||
|
|
|
@ -656,12 +656,15 @@ JX.behavior('pholio-mock-view', function(config) {
|
|||
}
|
||||
info = JX.$N('div', {className: 'pholio-image-info'}, info);
|
||||
|
||||
var desc = JX.$N(
|
||||
'div',
|
||||
{className: 'pholio-image-description'},
|
||||
JX.$H(image.descriptionMarkup));
|
||||
|
||||
return [buttons, info, desc];
|
||||
if (image.descriptionMarkup === '') {
|
||||
return [buttons, info];
|
||||
} else {
|
||||
var desc = JX.$N(
|
||||
'div',
|
||||
{className: 'pholio-image-description'},
|
||||
JX.$H(image.descriptionMarkup));
|
||||
return [buttons, info, desc];
|
||||
}
|
||||
}
|
||||
|
||||
function render_reticle(classes) {
|
||||
|
|
Loading…
Reference in a new issue