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

Make the 'Subscribe' button pop a modal instead.

Summary:
See title.

Also some minor styling/consistency fixes.

Test Plan:
- Clicked subscribe
- Canceled to make sure it went away
- Clicked it again
- Clicked subscribe
- Saw my name in the cc field.

Reviewers: epriestley, chad, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4571
This commit is contained in:
Ricky Elrod 2013-01-21 18:41:38 -08:00 committed by epriestley
parent baa9d96082
commit dce6d2e9d5

View file

@ -60,7 +60,8 @@ final class DifferentialRevisionViewController extends DifferentialController {
$repository); $repository);
if ($request->getExists('download')) { if ($request->getExists('download')) {
return $this->buildRawDiffResponse($changesets, return $this->buildRawDiffResponse(
$changesets,
$vs_changesets, $vs_changesets,
$vs_map, $vs_map,
$repository); $repository);
@ -163,8 +164,8 @@ final class DifferentialRevisionViewController extends DifferentialController {
phutil_render_tag( phutil_render_tag(
'p', 'p',
array(), array(),
pht('This revision has no specified reviewers and needs review.'. pht('This revision has no specified reviewers and needs '.
' You may want to add some reviewers.') 'review. You may want to add some reviewers.')
)); ));
} }
} }
@ -495,6 +496,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
'href' => "/differential/subscribe/{$action}/{$revision_id}/", 'href' => "/differential/subscribe/{$action}/{$revision_id}/",
'name' => $viewer_is_cc ? 'Unsubscribe' : 'Subscribe', 'name' => $viewer_is_cc ? 'Unsubscribe' : 'Subscribe',
'instant' => true, 'instant' => true,
'sigil' => 'workflow',
); );
} else { } else {
$links[] = array( $links[] = array(