Cleanup menu footer links
authorChocobozzz <me@florianbigard.com>
Wed, 8 Apr 2020 08:30:58 +0000 (10:30 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 8 Apr 2020 08:30:58 +0000 (10:30 +0200)
client/src/app/+my-account/my-account-settings/my-account-interface/my-account-interface-settings.component.html
client/src/app/menu/menu.component.html
client/src/app/menu/menu.component.scss
client/src/sass/include/_mixins.scss

index b12184ddc81908ec851bd73dd39386621bda4fd3..6119e73809c5b8d2564d2cdbd98ad62f9469fff2 100644 (file)
@@ -1,4 +1,18 @@
 <form role="form" (ngSubmit)="updateInterfaceSettings()" [formGroup]="form">
+
+  <div class="form-group">
+    <label i18n for="theme">Interface language</label>
+
+    <div class="peertube-select-container">
+      <select formControlName="theme" id="theme" class="form-control">
+        <option i18n value="instance-default">instance default</option>
+        <option i18n value="default">peertube default</option>
+
+        <option *ngFor="let theme of availableThemes" [value]="theme">{{ theme }}</option>
+      </select>
+    </div>
+  </div>
+
   <div class="form-group">
     <label i18n for="theme">Theme</label>
 
index f1c13118452b82518ba76b12b2dda24445368846..32e48d6b602dd4c03cdb2d13e65c4fb66aeb0145 100644 (file)
         </a>
       </div>
 
-      <div class="d-flex flex-column">
-        <div class="footer-links">
-          <a i18n routerLink="/about/instance">Contact</a>
-          <a i18n routerLink="/about/instance">Terms of Service</a>
-          <a i18n routerLink="/about/instance" fragment="statistics">Stats</a>
-          <a (click)="openLanguageChooser()" class="c-hand">
-            <span i18n>Interface: {{ language }}</span>
-          </a>
-        </div>
+      <div class="bottom-links">
+
         <div class="footer-links">
-          <a i18n href="https://joinpeertube.org/#you-are-a-video-maker" i18n-title title="Creator guide" target="_blank" rel="noopener noreferrer">Creators</a>
-          <a i18n href="https://docs.joinpeertube.org/#/contribute-getting-started" i18n-title title="PeerTube license" target="_blank" rel="noopener noreferrer">Contributors</a>
-          <a i18n routerLink="/about/peertube" i18n-title title="More information about privacy within PeerTube">Privacy</a>
-          <a i18n href="https://joinpeertube.org/faq" i18n-title title="Frequently asked questions about PeerTube" target="_blank" rel="noopener noreferrer">FAQ</a>
-          <a i18n href="https://docs.joinpeertube.org/api-rest-reference.html" i18n-title title="API documentation" target="_blank" rel="noopener noreferrer">API</a>
-          <a i18n href="https://joinpeertube.org/help" i18n-title title="Get help using PeerTube" target="_blank" rel="noopener noreferrer">Help</a>
-          <a (click)="openHotkeysCheatSheet()" class="c-hand" i18n>Shortcuts</a>
+          <div *ngIf="isLoggedIn === false">
+            <span role="button" (click)="openLanguageChooser()" class="c-hand" i18n>Interface: {{ language }}</span>
+          </div>
+
+          <div>
+            <a i18n routerLink="/about/instance">Contact</a>
+            <a i18n href="https://joinpeertube.org/help" i18n-title title="Get help using PeerTube" target="_blank" rel="noopener noreferrer">Help</a>
+            <a i18n href="https://joinpeertube.org/faq" i18n-title title="Frequently asked questions about PeerTube" target="_blank" rel="noopener noreferrer">FAQ</a>
+            <a i18n routerLink="/about/instance" fragment="statistics">Stats</a>
+            <a i18n href="https://docs.joinpeertube.org/api-rest-reference.html" i18n-title title="API documentation" target="_blank" rel="noopener noreferrer">API</a>
+            <a (click)="openHotkeysCheatSheet()" class="c-hand" i18n>Shortcuts</a>
+          </div>
         </div>
+
         <div class="footer-copyleft">
           <small class="d-inline" i18n-title title="powered by PeerTube - CopyLeft 2015-2020">
             <a href="https://joinpeertube.org" i18n-title title="PeerTube website" target="_blank" rel="noopener noreferrer" i18n>
               powered by PeerTube
             </a>
+
             <a href="https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE" i18n-title title="PeerTube license" target="_blank" rel="noopener noreferrer">
               <span aria-label="copyleft" class="d-inline-block" style="transform: rotateY(180deg)">&copy;</span> 2015-2020
             </a>
index a4b1ec000bd41a0da273d5524302e2eea84594ce..9ae40493d844a98c34e325c91a5b2903b5a9f192 100644 (file)
@@ -185,21 +185,21 @@ menu {
     width: $menu-width;
     padding-bottom: 15px;
 
-    & > div:not(.panel-block) {
-      padding-left: $menu-lateral-padding;
-      padding-right: $menu-lateral-padding;
-      row-gap: 1em;
+    .bottom-links {
+      display: flex;
+      flex-direction: column;
+      padding: 0 $menu-lateral-padding;
     }
 
     $footer-links-base-opacity: .8;
 
     .footer-links {
-      display: inline-flex;
-      flex-wrap: wrap;
-
-      & > a {
-        @include disable-default-a-behaviour;
+      &, > div {
+        display: flex;
+        flex-wrap: wrap;
+      }
 
+      a, span[role=button] {
         display: inline-block;
         text-decoration: none;
         color: var(--mainBackgroundColor);
@@ -218,7 +218,7 @@ menu {
 
           my-global-icon {
             @include apply-svg-color(var(--mainBackgroundColor));
-        
+
             display: flex;
             width: auto;
             height: 90%;
index 56ada6b9e1b8723603895a6e831cafb8059a1b58..6a272494b6b428193a031f4ccb83fb75d3d31c02 100644 (file)
@@ -13,7 +13,6 @@
   }
 }
 
-
 @mixin ellipsis {
   white-space: nowrap;
   overflow: hidden;