Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/view/PhabricatorSetupIssueView.php
| Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Lines | if ($this->getIssue()->getIsFatal()) { | ||||
| '<tt>phabricator/ $</tt> ./bin/config set %s <em>value</em>', | '<tt>phabricator/ $</tt> ./bin/config set %s <em>value</em>', | ||||
| $key); | $key); | ||||
| } | } | ||||
| $update = phutil_tag('pre', array(), phutil_implode_html("\n", $update)); | $update = phutil_tag('pre', array(), phutil_implode_html("\n", $update)); | ||||
| } else { | } else { | ||||
| $update = array(); | $update = array(); | ||||
| foreach ($configs as $config) { | foreach ($configs as $config) { | ||||
| if (idx($options, $config) && $options[$config]->getLocked()) { | if (idx($options, $config) && $options[$config]->getLocked()) { | ||||
| continue; | $name = pht('View "%s"', $config); | ||||
| } else { | |||||
| $name = pht('Edit "%s"', $config); | |||||
| } | } | ||||
| $link = phutil_tag( | $link = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '/config/edit/'.$config.'/?issue='.$issue->getIssueKey(), | 'href' => '/config/edit/'.$config.'/?issue='.$issue->getIssueKey(), | ||||
| ), | ), | ||||
| pht('Edit %s', $config)); | $name); | ||||
| $update[] = phutil_tag('li', array(), $link); | $update[] = phutil_tag('li', array(), $link); | ||||
| } | } | ||||
| if ($update) { | if ($update) { | ||||
| $update = phutil_tag('ul', array(), $update); | $update = phutil_tag('ul', array(), $update); | ||||
| if (!$related) { | if (!$related) { | ||||
| $update_info = phutil_tag( | $update_info = phutil_tag( | ||||
| 'p', | 'p', | ||||
| array(), | array(), | ||||
| pht('You can update these %d value(s) here:', count($configs))); | pht('You can update these %d value(s) here:', count($configs))); | ||||
| } else { | } else { | ||||
| $update_info = phutil_tag( | $update_info = phutil_tag( | ||||
| 'p', | 'p', | ||||
| array(), | array(), | ||||
| ▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines | |||||