tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

sync.inc.xhtml (11395B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 <!-- Sync panel -->
      6 
      7 <script src="chrome://browser/content/preferences/sync.js"/>
      8 <html:template id="template-paneSync">
      9 <hbox id="firefoxAccountCategory"
     10      class="subcategory"
     11      hidden="true"
     12      data-category="paneSync">
     13  <html:h1 data-l10n-id="pane-sync-title3"/>
     14 </hbox>
     15 
     16 <deck id="weavePrefsDeck" data-category="paneSync" data-srd-groupid="sync" hidden="true"
     17      data-hidden-from-search="true">
     18  <groupbox id="noFxaAccount">
     19    <hbox>
     20      <vbox flex="1">
     21        <label id="noFxaCaption"><html:h2 data-l10n-id="sync-signedout-caption"/></label>
     22        <description id="noFxaDescription" class="description-deemphasized" flex="1" data-l10n-id="sync-signedout-description2"/>
     23      </vbox>
     24      <vbox>
     25        <image class="fxaSyncIllustration" alt=""/>
     26      </vbox>
     27    </hbox>
     28    <hbox id="fxaNoLoginStatus" align="center" flex="1">
     29      <vbox flex="1">
     30        <hbox align="center" flex="1">
     31          <button id="noFxaSignIn"
     32                  is="highlightable-button"
     33                  class="accessory-button"
     34                  data-l10n-id="sync-signedout-account-signin3"/>
     35        </hbox>
     36      </vbox>
     37    </hbox>
     38    <label class="fxaMobilePromo" data-l10n-id="sync-mobile-promo">
     39      <html:img
     40        role="none"
     41        src="chrome://browser/skin/logo-android.svg"
     42        data-l10n-name="android-icon"
     43        class="androidIcon"/>
     44      <html:a
     45        data-l10n-name="android-link"
     46        class="fxaMobilePromo-android text-link" target="_blank"/>
     47      <html:img
     48        role="none"
     49        src="chrome://browser/skin/logo-ios.svg"
     50        data-l10n-name="ios-icon"
     51        class="iOSIcon"/>
     52      <html:a
     53        data-l10n-name="ios-link"
     54        class="fxaMobilePromo-ios text-link" target="_blank"/>
     55    </label>
     56  </groupbox>
     57 
     58  <vbox id="hasFxaAccount">
     59    <hbox>
     60      <vbox id="fxaContentWrapper" flex="1">
     61        <groupbox id="fxaGroup">
     62          <label class="search-header" hidden="true"><html:h2 data-l10n-id="pane-sync-title3"/></label>
     63 
     64          <deck id="fxaLoginStatus" flex="1">
     65 
     66            <!-- logged in and verified and all is good -->
     67            <hbox id="fxaLoginVerified" align="center" flex="1">
     68              <image id="openChangeProfileImage"
     69                     class="fxaProfileImage actionable"
     70                     role="button"
     71                     data-l10n-attrs="alt"
     72                     data-l10n-id="sync-profile-picture-with-alt"/>
     73              <vbox flex="1" pack="center">
     74                <hbox flex="1" align="baseline">
     75                  <label id="fxaDisplayName" hidden="true">
     76                    <html:h2 id="fxaDisplayNameHeading"/>
     77                  </label>
     78                  <label id="fxaEmailAddress" flex="1" crop="end"/>
     79                  <button id="fxaUnlinkButton"
     80                          is="highlightable-button"
     81                          class="accessory-button"
     82                          data-l10n-id="sync-sign-out"/>
     83                </hbox>
     84                <hbox>
     85                  <html:a id="verifiedManage" class="openLink" target="_blank"
     86                          data-l10n-id="sync-manage-account"/>
     87                </hbox>
     88              </vbox>
     89            </hbox>
     90 
     91            <!-- logged in to an unverified account -->
     92            <hbox id="fxaLoginUnverified">
     93              <vbox>
     94                <image class="fxaProfileImage"
     95                       data-l10n-attrs="alt"
     96                       data-l10n-id="sync-profile-picture-account-problem"/>
     97              </vbox>
     98              <vbox flex="1" pack="center">
     99                <hbox align="center">
    100                  <image class="fxaLoginRejectedWarning"
    101                         data-l10n-attrs="alt"
    102                         data-l10n-id="fxa-login-rejected-warning"/>
    103                  <description flex="1"
    104                    class="l10nArgsEmailAddress"
    105                    data-l10n-id="sync-signedin-unverified"
    106                    data-l10n-args='{"email": ""}'/>
    107                </hbox>
    108                <hbox class="fxaAccountBoxButtons">
    109                  <button id="verifyFxaAccount"
    110                          is="highlightable-button"
    111                          data-l10n-id="sync-verify-account"/>
    112                  <button id="unverifiedUnlinkFxaAccount"
    113                          is="highlightable-button"
    114                          data-l10n-id="sync-remove-account"/>
    115                </hbox>
    116              </vbox>
    117            </hbox>
    118 
    119            <!-- logged in locally but server rejected credentials -->
    120            <hbox id="fxaLoginRejected">
    121              <vbox>
    122                <image class="fxaProfileImage"
    123                       data-l10n-attrs="alt"
    124                       data-l10n-id="sync-profile-picture-account-problem"/>
    125              </vbox>
    126              <vbox flex="1" pack="center">
    127                <hbox align="center">
    128                  <image class="fxaLoginRejectedWarning"
    129                         data-l10n-attrs="alt"
    130                         data-l10n-id="fxa-login-rejected-warning"/>
    131                  <description flex="1"
    132                    class="l10nArgsEmailAddress"
    133                    data-l10n-id="sync-signedin-login-failure"
    134                    data-l10n-args='{"email": ""}'/>
    135                </hbox>
    136                <hbox class="fxaAccountBoxButtons">
    137                  <button id="rejectReSignIn"
    138                          is="highlightable-button"
    139                          data-l10n-id="sync-sign-in"/>
    140                  <button id="rejectUnlinkFxaAccount"
    141                          is="highlightable-button"
    142                          data-l10n-id="sync-remove-account"/>
    143                </hbox>
    144              </vbox>
    145            </hbox>
    146          </deck>
    147        </groupbox>
    148 
    149        <groupbox>
    150          <label control="fxaSyncComputerName">
    151            <html:h2 data-l10n-id="sync-device-name-header"/>
    152          </label>
    153          <hbox id="fxaDeviceName">
    154            <html:input id="fxaSyncComputerName" type="text" disabled="true"/>
    155            <button id="fxaChangeDeviceName"
    156                    is="highlightable-button"
    157                    class="needs-account-ready"
    158                    data-l10n-id="sync-device-name-change"/>
    159            <button id="fxaCancelChangeDeviceName"
    160                    is="highlightable-button"
    161                    data-l10n-id="sync-device-name-cancel"
    162                    hidden="true"/>
    163            <button id="fxaSaveChangeDeviceName"
    164                    is="highlightable-button"
    165                    data-l10n-id="sync-device-name-save"
    166                    hidden="true"/>
    167          </hbox>
    168        </groupbox>
    169 
    170        <groupbox>
    171          <vbox id="syncStatusContainer" flex="1">
    172            <hbox>
    173              <html:h2 id="syncStatusTitle" data-l10n-id="prefs-syncing-off"/>
    174              <spacer flex="1"/>
    175              <!-- 'Sync Now' button, visible only when sync is on -->
    176              <button id="syncNow" class="accessory-button needs-account-ready"></button>
    177            </hbox>
    178            <vbox id="syncNotConfigured">
    179              <hbox class="sync-group info-box-container">
    180                <vbox flex="1">
    181                  <label data-l10n-id="prefs-sync-offer-setup-label2"/>
    182                </vbox>
    183              <button id="syncSetup"
    184                      is="highlightable-button"
    185                      class="accessory-button needs-account-ready"
    186                      data-l10n-id="prefs-sync-turn-on-syncing"/>
    187              </hbox>
    188            </vbox>
    189 
    190            <vbox id="syncConfigured">
    191              <vbox class="sync-group sync-info-box sync-configured">
    192                <label data-l10n-id="sync-syncing-across-devices-heading"/>
    193                <html:div class="sync-engines-list">
    194                  <html:div engine_preference="services.sync.engine.bookmarks">
    195                    <image class="sync-engine-image sync-engine-bookmarks" alt=""/>
    196                    <label data-l10n-id="sync-currently-syncing-bookmarks"/>
    197                  </html:div>
    198                  <html:div engine_preference="services.sync.engine.history">
    199                    <image class="sync-engine-image sync-engine-history" alt=""/>
    200                    <label data-l10n-id="sync-currently-syncing-history"/>
    201                  </html:div>
    202                  <html:div engine_preference="services.sync.engine.tabs">
    203                    <image class="sync-engine-image sync-engine-tabs" alt=""/>
    204                    <label data-l10n-id="sync-currently-syncing-tabs"/>
    205                  </html:div>
    206                  <html:div engine_preference="services.sync.engine.passwords">
    207                    <image class="sync-engine-image sync-engine-passwords" alt=""/>
    208                    <label data-l10n-id="sync-currently-syncing-passwords"/>
    209                  </html:div>
    210                  <html:div engine_preference="services.sync.engine.addresses">
    211                    <image class="sync-engine-image sync-engine-addresses" alt=""/>
    212                    <label data-l10n-id="sync-currently-syncing-addresses"/>
    213                  </html:div>
    214                  <html:div engine_preference="services.sync.engine.creditcards">
    215                    <image class="sync-engine-image sync-engine-creditcards" alt=""/>
    216                    <label data-l10n-id="sync-currently-syncing-payment-methods"/>
    217                  </html:div>
    218                  <html:div engine_preference="services.sync.engine.addons">
    219                    <image class="sync-engine-image sync-engine-addons" alt=""/>
    220                    <label data-l10n-id="sync-currently-syncing-addons"/>
    221                  </html:div>
    222                  <html:div engine_preference="services.sync.engine.prefs">
    223                    <image class="sync-engine-image sync-engine-prefs" alt=""/>
    224                    <label data-l10n-id="sync-currently-syncing-settings"/>
    225                  </html:div>
    226                </html:div>
    227                <hbox>
    228                  <button id="syncChangeOptions"
    229                          is="highlightable-button"
    230                          data-l10n-id="sync-manage-options"/>
    231                  <spacer flex="1"/>
    232                </hbox>
    233              </vbox>
    234            </vbox>
    235          </vbox>
    236        </groupbox>
    237      </vbox>
    238    </hbox>
    239    <vbox align="start">
    240      <html:a id="connect-another-device"
    241             is="text-link"
    242             class="fxaMobilePromo"
    243             target="_blank"
    244             data-l10n-id="sync-connect-another-device"/>
    245    </vbox>
    246 </vbox>
    247 </deck>
    248 
    249 <!-- Mozilla account -->
    250 <html:setting-group groupid="account" hidden="true" data-category="paneSync"/>
    251 
    252 <!-- Sync -->
    253 <html:setting-group groupid="sync" hidden="true" data-category="paneSync"/>
    254 
    255 <!-- Firefox Backup -->
    256 <hbox id="backupCategory"
    257    class="subcategory"
    258    hidden="true"
    259    data-category="paneSync"
    260    >
    261  <html:h1 data-l10n-id="settings-data-backup-header"/>
    262 </hbox>
    263 <groupbox id="dataBackupGroup"
    264          data-category="paneSync"
    265          data-subcategory="backup"
    266          hidden="true">
    267  <label class="search-header" hidden="true"><html:h2 data-l10n-id="settings-data-backup-header"/></label>
    268  <hbox flex="1">
    269    <html:backup-settings />
    270  </hbox>
    271 </groupbox>
    272 </html:template>