]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add available themes and plugins in feature table
authorChocobozzz <me@florianbigard.com>
Tue, 9 Nov 2021 14:26:10 +0000 (15:26 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 9 Nov 2021 14:26:10 +0000 (15:26 +0100)
client/src/app/shared/shared-instance/instance-features-table.component.html
client/src/app/shared/shared-instance/instance-features-table.component.scss

index 83440e87cef3d3b25a1ba043b563fefcae747f11..0d4e77b7382feac46222658dcb4966e8784d46c5 100644 (file)
         <my-feature-boolean [value]="serverConfig.search.remoteUri.users"></my-feature-boolean>
       </td>
     </tr>
+
+    <tr>
+      <th i18n class="label" colspan="2">Plugins & Themes</th>
+    </tr>
+
+    <tr>
+      <th i18n class="sub-label" scope="row">Available themes</th>
+      <td>
+        <span class="theme" *ngFor="let theme of serverConfig.theme.registered">
+          {{ theme.name }}
+        </span>
+      </td>
+    </tr>
+
+    <tr>
+      <th i18n class="sub-label" scope="row">Plugins enabled</th>
+      <td>
+        <span class="plugin" *ngFor="let plugin of serverConfig.plugin.registered">
+          {{ plugin.name }}
+        </span>
+      </td>
+    </tr>
   </table>
 </div>
index d8efd8cdf4aeeed5e874038ab473439fb6520ef8..6107909a29b48b68235edb2a88357e9047dd8733 100644 (file)
@@ -34,6 +34,11 @@ table {
     font-weight: $font-semibold;
     color: pvar(--mainForegroundColor);
   }
-}
-
 
+  .plugin,
+  .theme {
+    &:not(:last-child):after {
+      content: '•';
+    }
+  }
+}