~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to phabricator/src/applications/herald/controller/HeraldTranscriptController.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-02-11 14:13:38 UTC
  • mfrom: (0.18.1) (0.17.1) (0.13.2) (2.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20150211141338-7t6wkyisc5b04ww5
Tags: 0~git20150211-1
* New snapshot release
* updated german translation
* fixed daemons not starting with unprivileged user

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    $object_xscript = $xscript->getObjectTranscript();
44
44
    if (!$object_xscript) {
45
 
      $notice = id(new AphrontErrorView())
46
 
        ->setSeverity(AphrontErrorView::SEVERITY_NOTICE)
 
45
      $notice = id(new PHUIErrorView())
 
46
        ->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
47
47
        ->setTitle(pht('Old Transcript'))
48
48
        ->appendChild(phutil_tag(
49
49
          'p',
75
75
      $this->handles = $handles;
76
76
 
77
77
      if ($xscript->getDryRun()) {
78
 
        $notice = new AphrontErrorView();
79
 
        $notice->setSeverity(AphrontErrorView::SEVERITY_NOTICE);
 
78
        $notice = new PHUIErrorView();
 
79
        $notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
80
80
        $notice->setTitle(pht('Dry Run'));
81
81
        $notice->appendChild(pht('This was a dry run to test Herald '.
82
82
          'rules, no actions were executed.'));
319
319
          } else {
320
320
            return $panel;
321
321
          }
322
 
          $panel = id(new AphrontErrorView())
323
 
            ->setSeverity(AphrontErrorView::SEVERITY_WARNING)
 
322
          $panel = id(new PHUIErrorView())
 
323
            ->setSeverity(PHUIErrorView::SEVERITY_WARNING)
324
324
            ->setTitle($title)
325
325
            ->appendChild($body);
326
326
        }