mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-11 07:11:04 +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,
|
$ref,
|
||||||
$changeset);
|
$changeset);
|
||||||
|
|
||||||
$prefs = $this->user->loadPreferences();
|
|
||||||
$pref_symbols = $prefs->getPreference(
|
|
||||||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_SYMBOLS);
|
|
||||||
$detail->setChangeset($changeset);
|
$detail->setChangeset($changeset);
|
||||||
$detail->addButton($view_options);
|
$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->setVsChangesetID(idx($this->vsMap, $changeset->getID()));
|
||||||
$detail->setEditable(true);
|
$detail->setEditable(true);
|
||||||
|
|
||||||
|
|
|
@ -251,10 +251,7 @@ final class DiffusionBrowseFileController extends DiffusionController {
|
||||||
|
|
||||||
$lang = last(explode('.', $drequest->getPath()));
|
$lang = last(explode('.', $drequest->getPath()));
|
||||||
|
|
||||||
$prefs = $this->getRequest()->getUser()->loadPreferences();
|
if (isset($langs[$lang])) {
|
||||||
$pref_symbols = $prefs->getPreference(
|
|
||||||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_SYMBOLS);
|
|
||||||
if (isset($langs[$lang]) && $pref_symbols != 'disabled') {
|
|
||||||
Javelin::initBehavior(
|
Javelin::initBehavior(
|
||||||
'repository-crossreference',
|
'repository-crossreference',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -24,8 +24,6 @@ final class PhabricatorSettingsPanelDisplayPreferences
|
||||||
$pref_editor = PhabricatorUserPreferences::PREFERENCE_EDITOR;
|
$pref_editor = PhabricatorUserPreferences::PREFERENCE_EDITOR;
|
||||||
$pref_multiedit = PhabricatorUserPreferences::PREFERENCE_MULTIEDIT;
|
$pref_multiedit = PhabricatorUserPreferences::PREFERENCE_MULTIEDIT;
|
||||||
$pref_titles = PhabricatorUserPreferences::PREFERENCE_TITLES;
|
$pref_titles = PhabricatorUserPreferences::PREFERENCE_TITLES;
|
||||||
$pref_symbols =
|
|
||||||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_SYMBOLS;
|
|
||||||
$pref_monospaced_textareas =
|
$pref_monospaced_textareas =
|
||||||
PhabricatorUserPreferences::PREFERENCE_MONOSPACED_TEXTAREAS;
|
PhabricatorUserPreferences::PREFERENCE_MONOSPACED_TEXTAREAS;
|
||||||
|
|
||||||
|
@ -40,9 +38,6 @@ final class PhabricatorSettingsPanelDisplayPreferences
|
||||||
$preferences->setPreference(
|
$preferences->setPreference(
|
||||||
$pref_multiedit,
|
$pref_multiedit,
|
||||||
$request->getStr($pref_multiedit));
|
$request->getStr($pref_multiedit));
|
||||||
$preferences->setPreference(
|
|
||||||
$pref_symbols,
|
|
||||||
$request->getStr($pref_symbols));
|
|
||||||
$preferences->setPreference($pref_monospaced, $monospaced);
|
$preferences->setPreference($pref_monospaced, $monospaced);
|
||||||
$preferences->setPreference(
|
$preferences->setPreference(
|
||||||
$pref_monospaced_textareas,
|
$pref_monospaced_textareas,
|
||||||
|
@ -74,7 +69,6 @@ EXAMPLE;
|
||||||
$font_default = PhabricatorEnv::getEnvConfig('style.monospace');
|
$font_default = PhabricatorEnv::getEnvConfig('style.monospace');
|
||||||
$font_default = phutil_escape_html($font_default);
|
$font_default = phutil_escape_html($font_default);
|
||||||
|
|
||||||
$pref_symbols_value = $preferences->getPreference($pref_symbols);
|
|
||||||
$pref_monospaced_textareas_value = $preferences
|
$pref_monospaced_textareas_value = $preferences
|
||||||
->getPreference($pref_monospaced_textareas);
|
->getPreference($pref_monospaced_textareas);
|
||||||
if (!$pref_monospaced_textareas_value) {
|
if (!$pref_monospaced_textareas_value) {
|
||||||
|
@ -132,15 +126,6 @@ EXAMPLE;
|
||||||
'<pre class="PhabricatorMonospaced">'.
|
'<pre class="PhabricatorMonospaced">'.
|
||||||
phutil_escape_html($example_string).
|
phutil_escape_html($example_string).
|
||||||
'</pre>'))
|
'</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(
|
->appendChild(
|
||||||
id(new AphrontFormRadioButtonControl())
|
id(new AphrontFormRadioButtonControl())
|
||||||
->setLabel('Monospaced Textareas')
|
->setLabel('Monospaced Textareas')
|
||||||
|
|
|
@ -18,7 +18,6 @@ final class PhabricatorUserPreferences extends PhabricatorUserDAO {
|
||||||
const PREFERENCE_SEARCH_SHORTCUT = 'search-shortcut';
|
const PREFERENCE_SEARCH_SHORTCUT = 'search-shortcut';
|
||||||
|
|
||||||
const PREFERENCE_DIFFUSION_VIEW = 'diffusion-view';
|
const PREFERENCE_DIFFUSION_VIEW = 'diffusion-view';
|
||||||
const PREFERENCE_DIFFUSION_SYMBOLS = 'diffusion-symbols';
|
|
||||||
|
|
||||||
const PREFERENCE_NAV_WIDTH = 'nav-width';
|
const PREFERENCE_NAV_WIDTH = 'nav-width';
|
||||||
const PREFERENCE_APP_TILES = 'app-tiles';
|
const PREFERENCE_APP_TILES = 'app-tiles';
|
||||||
|
|
Loading…
Reference in a new issue