1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Minor phutil_tag/HTML fixes

Summary:

  - In stack traces, a `,` should clearly be a `.`.
  - In Calendar, a 'td' got swapped with a 'p' somewhere.
  - In old-style transaction views, strlen() is no longer a sufficient test.

Test Plan:

  - Verified stack traces render correctly.
  - Verified calendar renders correctly.
  - Verified Maniphest transactions with no comment no longer have a little empty div a few pixels high.

Reviewers: chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D4971
This commit is contained in:
epriestley 2013-02-15 08:14:31 -08:00
parent d8d16ece5e
commit 6124865c56
5 changed files with 29 additions and 29 deletions

View file

@ -599,7 +599,7 @@ celerity_register_resource_map(array(
), ),
'aphront-calendar-view-css' => 'aphront-calendar-view-css' =>
array( array(
'uri' => '/res/87d6e40d/rsrc/css/aphront/calendar-view.css', 'uri' => '/res/73061a31/rsrc/css/aphront/calendar-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -2419,7 +2419,7 @@ celerity_register_resource_map(array(
), ),
'javelin-workflow' => 'javelin-workflow' =>
array( array(
'uri' => '/res/519c4e1a/rsrc/js/javelin/lib/Workflow.js', 'uri' => '/res/1535e366/rsrc/js/javelin/lib/Workflow.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(
@ -2868,7 +2868,7 @@ celerity_register_resource_map(array(
), ),
'phabricator-pinboard-view-css' => 'phabricator-pinboard-view-css' =>
array( array(
'uri' => '/res/b954ccbf/rsrc/css/layout/phabricator-pinboard-view.css', 'uri' => '/res/79be6f49/rsrc/css/layout/phabricator-pinboard-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -3415,7 +3415,7 @@ celerity_register_resource_map(array(
), ),
'tokens-css' => 'tokens-css' =>
array( array(
'uri' => '/res/c1f6113c/rsrc/css/application/tokens/tokens.css', 'uri' => '/res/6b3c65c7/rsrc/css/application/tokens/tokens.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -3597,7 +3597,7 @@ celerity_register_resource_map(array(
'uri' => '/res/pkg/f96657b8/diffusion.pkg.js', 'uri' => '/res/pkg/f96657b8/diffusion.pkg.js',
'type' => 'js', 'type' => 'js',
), ),
'd466c034' => 'a69b9f1f' =>
array( array(
'name' => 'javelin.pkg.js', 'name' => 'javelin.pkg.js',
'symbols' => 'symbols' =>
@ -3622,7 +3622,7 @@ celerity_register_resource_map(array(
17 => 'javelin-typeahead-ondemand-source', 17 => 'javelin-typeahead-ondemand-source',
18 => 'javelin-tokenizer', 18 => 'javelin-tokenizer',
), ),
'uri' => '/res/pkg/d466c034/javelin.pkg.js', 'uri' => '/res/pkg/a69b9f1f/javelin.pkg.js',
'type' => 'js', 'type' => 'js',
), ),
'e30a3fa8' => 'e30a3fa8' =>
@ -3683,7 +3683,7 @@ celerity_register_resource_map(array(
'global-drag-and-drop-css' => 'acc46105', 'global-drag-and-drop-css' => 'acc46105',
'inline-comment-summary-css' => '8aaacd1b', 'inline-comment-summary-css' => '8aaacd1b',
'javelin-aphlict' => 'bc0774e5', 'javelin-aphlict' => 'bc0774e5',
'javelin-behavior' => 'd466c034', 'javelin-behavior' => 'a69b9f1f',
'javelin-behavior-aphlict-dropdown' => 'bc0774e5', 'javelin-behavior-aphlict-dropdown' => 'bc0774e5',
'javelin-behavior-aphlict-listen' => 'bc0774e5', 'javelin-behavior-aphlict-listen' => 'bc0774e5',
'javelin-behavior-aphront-basic-tokenizer' => 'bc0774e5', 'javelin-behavior-aphront-basic-tokenizer' => 'bc0774e5',
@ -3731,24 +3731,24 @@ celerity_register_resource_map(array(
'javelin-behavior-repository-crossreference' => '95d0d865', 'javelin-behavior-repository-crossreference' => '95d0d865',
'javelin-behavior-toggle-class' => 'bc0774e5', 'javelin-behavior-toggle-class' => 'bc0774e5',
'javelin-behavior-workflow' => 'bc0774e5', 'javelin-behavior-workflow' => 'bc0774e5',
'javelin-dom' => 'd466c034', 'javelin-dom' => 'a69b9f1f',
'javelin-event' => 'd466c034', 'javelin-event' => 'a69b9f1f',
'javelin-install' => 'd466c034', 'javelin-install' => 'a69b9f1f',
'javelin-json' => 'd466c034', 'javelin-json' => 'a69b9f1f',
'javelin-mask' => 'd466c034', 'javelin-mask' => 'a69b9f1f',
'javelin-request' => 'd466c034', 'javelin-request' => 'a69b9f1f',
'javelin-resource' => 'd466c034', 'javelin-resource' => 'a69b9f1f',
'javelin-stratcom' => 'd466c034', 'javelin-stratcom' => 'a69b9f1f',
'javelin-tokenizer' => 'd466c034', 'javelin-tokenizer' => 'a69b9f1f',
'javelin-typeahead' => 'd466c034', 'javelin-typeahead' => 'a69b9f1f',
'javelin-typeahead-normalizer' => 'd466c034', 'javelin-typeahead-normalizer' => 'a69b9f1f',
'javelin-typeahead-ondemand-source' => 'd466c034', 'javelin-typeahead-ondemand-source' => 'a69b9f1f',
'javelin-typeahead-preloaded-source' => 'd466c034', 'javelin-typeahead-preloaded-source' => 'a69b9f1f',
'javelin-typeahead-source' => 'd466c034', 'javelin-typeahead-source' => 'a69b9f1f',
'javelin-uri' => 'd466c034', 'javelin-uri' => 'a69b9f1f',
'javelin-util' => 'd466c034', 'javelin-util' => 'a69b9f1f',
'javelin-vector' => 'd466c034', 'javelin-vector' => 'a69b9f1f',
'javelin-workflow' => 'd466c034', 'javelin-workflow' => 'a69b9f1f',
'lightbox-attachment-css' => 'acc46105', 'lightbox-attachment-css' => 'acc46105',
'maniphest-task-summary-css' => 'e30a3fa8', 'maniphest-task-summary-css' => 'e30a3fa8',
'maniphest-transaction-detail-css' => 'e30a3fa8', 'maniphest-transaction-detail-css' => 'e30a3fa8',

View file

@ -382,7 +382,7 @@ class AphrontDefaultApplicationConfiguration
return hsprintf( return hsprintf(
'<div class="exception-trace">'. '<div class="exception-trace">'.
'<div class="exception-trace-header">Stack Trace</div>'. '<div class="exception-trace-header">Stack Trace</div>'.
'%s', '%s'.
'</div>', '</div>',
$table->render()); $table->render());
} }

View file

@ -131,7 +131,7 @@ final class AphrontCalendarMonthView extends AphrontView {
$row[] = $empty_box; $row[] = $empty_box;
} }
foreach ($row as $cell) { foreach ($row as $cell) {
$table[] = phutil_tag('p', array(), $cell); $table[] = phutil_tag('td', array(), $cell);
} }
$table[] = hsprintf('</tr>'); $table[] = hsprintf('</tr>');
} }

View file

@ -137,7 +137,7 @@ final class PhabricatorTransactionView extends AphrontView {
private function renderTransactionContent() { private function renderTransactionContent() {
$content = $this->renderChildren(); $content = $this->renderChildren();
if (!$content) { if ($this->isEmptyContent($content)) {
return null; return null;
} }
return phutil_tag( return phutil_tag(

View file

@ -91,7 +91,7 @@ table.aphront-calendar-view td div.aphront-calendar-day {
overflow: hidden; overflow: hidden;
} }
.aphront-calendar-event a { .aphront-calendar-event a:link {
color: #fff; color: #fff;
} }