mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Delete preference for Diffusion symbols
Summary: We are doing a better job in 1) of D3069#3 and 2) is just dumb. Let's see if someone notices this change. Test Plan: /settings/panel/display/ Reviewers: nh, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4789
This commit is contained in:
parent
8c99938aad
commit
34c51a61b5
4 changed files with 2 additions and 26 deletions
|
@ -127,14 +127,9 @@ final class DifferentialChangesetListView extends AphrontView {
|
|||
$ref,
|
||||
$changeset);
|
||||
|
||||
$prefs = $this->user->loadPreferences();
|
||||
$pref_symbols = $prefs->getPreference(
|
||||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_SYMBOLS);
|
||||
$detail->setChangeset($changeset);
|
||||
$detail->addButton($view_options);
|
||||
if ($pref_symbols != 'disabled') {
|
||||
$detail->setSymbolIndex(idx($this->symbolIndexes, $key));
|
||||
}
|
||||
$detail->setSymbolIndex(idx($this->symbolIndexes, $key));
|
||||
$detail->setVsChangesetID(idx($this->vsMap, $changeset->getID()));
|
||||
$detail->setEditable(true);
|
||||
|
||||
|
|
|
@ -251,10 +251,7 @@ final class DiffusionBrowseFileController extends DiffusionController {
|
|||
|
||||
$lang = last(explode('.', $drequest->getPath()));
|
||||
|
||||
$prefs = $this->getRequest()->getUser()->loadPreferences();
|
||||
$pref_symbols = $prefs->getPreference(
|
||||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_SYMBOLS);
|
||||
if (isset($langs[$lang]) && $pref_symbols != 'disabled') {
|
||||
if (isset($langs[$lang])) {
|
||||
Javelin::initBehavior(
|
||||
'repository-crossreference',
|
||||
array(
|
||||
|
|
|
@ -24,8 +24,6 @@ final class PhabricatorSettingsPanelDisplayPreferences
|
|||
$pref_editor = PhabricatorUserPreferences::PREFERENCE_EDITOR;
|
||||
$pref_multiedit = PhabricatorUserPreferences::PREFERENCE_MULTIEDIT;
|
||||
$pref_titles = PhabricatorUserPreferences::PREFERENCE_TITLES;
|
||||
$pref_symbols =
|
||||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_SYMBOLS;
|
||||
$pref_monospaced_textareas =
|
||||
PhabricatorUserPreferences::PREFERENCE_MONOSPACED_TEXTAREAS;
|
||||
|
||||
|
@ -40,9 +38,6 @@ final class PhabricatorSettingsPanelDisplayPreferences
|
|||
$preferences->setPreference(
|
||||
$pref_multiedit,
|
||||
$request->getStr($pref_multiedit));
|
||||
$preferences->setPreference(
|
||||
$pref_symbols,
|
||||
$request->getStr($pref_symbols));
|
||||
$preferences->setPreference($pref_monospaced, $monospaced);
|
||||
$preferences->setPreference(
|
||||
$pref_monospaced_textareas,
|
||||
|
@ -74,7 +69,6 @@ EXAMPLE;
|
|||
$font_default = PhabricatorEnv::getEnvConfig('style.monospace');
|
||||
$font_default = phutil_escape_html($font_default);
|
||||
|
||||
$pref_symbols_value = $preferences->getPreference($pref_symbols);
|
||||
$pref_monospaced_textareas_value = $preferences
|
||||
->getPreference($pref_monospaced_textareas);
|
||||
if (!$pref_monospaced_textareas_value) {
|
||||
|
@ -132,15 +126,6 @@ EXAMPLE;
|
|||
'<pre class="PhabricatorMonospaced">'.
|
||||
phutil_escape_html($example_string).
|
||||
'</pre>'))
|
||||
->appendChild(
|
||||
id(new AphrontFormRadioButtonControl())
|
||||
->setLabel('Symbol Links')
|
||||
->setName($pref_symbols)
|
||||
->setValue($pref_symbols_value ? $pref_symbols_value : 'enabled')
|
||||
->addButton('enabled', 'Enabled (default)',
|
||||
'Use this setting to disable linking symbol names in Differential '.
|
||||
'and Diffusion to their definitions. This is enabled by default.')
|
||||
->addButton('disabled', 'Disabled', null))
|
||||
->appendChild(
|
||||
id(new AphrontFormRadioButtonControl())
|
||||
->setLabel('Monospaced Textareas')
|
||||
|
|
|
@ -18,7 +18,6 @@ final class PhabricatorUserPreferences extends PhabricatorUserDAO {
|
|||
const PREFERENCE_SEARCH_SHORTCUT = 'search-shortcut';
|
||||
|
||||
const PREFERENCE_DIFFUSION_VIEW = 'diffusion-view';
|
||||
const PREFERENCE_DIFFUSION_SYMBOLS = 'diffusion-symbols';
|
||||
|
||||
const PREFERENCE_NAV_WIDTH = 'nav-width';
|
||||
const PREFERENCE_APP_TILES = 'app-tiles';
|
||||
|
|
Loading…
Reference in a new issue