Add support section in video channel about page
authorChocobozzz <me@florianbigard.com>
Mon, 7 May 2018 09:24:42 +0000 (11:24 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 7 May 2018 09:24:42 +0000 (11:24 +0200)
client/src/app/+video-channels/video-channel-about/video-channel-about.component.html
client/src/app/+video-channels/video-channel-about/video-channel-about.component.scss

index 65ad6f541b2c5f814984347a8cf748a269abdb09..a4338121f488094d49a04b20395db095a16aeafe 100644 (file)
@@ -1,12 +1,20 @@
 <div *ngIf="videoChannel" class="row">
   <div class="description col-md-6 col-sm-12">
-    <div class="small-title">Description</div>
-    <div class="content">{{ getVideoChannelDescription() }}</div>
+    <div class="block">
+      <div class="small-title">Description</div>
+      <div class="content">{{ getVideoChannelDescription() }}</div>
+    </div>
+
+    <div class="block" *ngIf="videoChannel.support">
+      <div class="small-title">Support this channel</div>
+      <div class="content">{{ videoChannel.support }}</div>
+    </div>
   </div>
 
   <div class="stats col-md-6 col-sm-12">
-    <div class="small-title">Stats</div>
-
-    <div class="content">Created {{ videoChannel.createdAt | date }}</div>
+    <div class="block">
+      <div class="small-title">Stats</div>
+      <div class="content">Created {{ videoChannel.createdAt | date }}</div>
+    </div>
   </div>
 </div>
\ No newline at end of file
index b1be7d4ed8f2f7a6ee09ee74f5b8e5a5264a7959..5bcd4b5610b9cbcdd820fae9c24a513128a06801 100644 (file)
@@ -1,8 +1,12 @@
 @import '_variables';
 @import '_mixins';
 
-.small-title {
-  @include in-content-small-title;
+.block {
+  margin-bottom: 40px;
 
-  margin-bottom: 20px;
+  .small-title {
+    @include in-content-small-title;
+
+    margin-bottom: 20px;
+  }
 }