diff --git a/static/js/directives/ui/app-public-view/app-public-view.component.ts b/static/js/directives/ui/app-public-view/app-public-view.component.ts
index 0d90c188f..6b1f75258 100644
--- a/static/js/directives/ui/app-public-view/app-public-view.component.ts
+++ b/static/js/directives/ui/app-public-view/app-public-view.component.ts
@@ -10,7 +10,6 @@ import { Input, Component, Inject } from 'ng-metadata/core';
})
export class AppPublicViewComponent {
@Input('<') public repository: any;
- private currentTab: string = 'description';
private settingsShown: number = 0;
constructor(@Inject('Config') private Config: any) {
@@ -22,10 +21,7 @@ export class AppPublicViewComponent {
this.repository.put();
}
- public showTab(tab: string): void {
- this.currentTab = tab;
- if (tab == 'settings') {
- this.settingsShown++;
- }
+ public showSettings(): void {
+ this.settingsShown++;
}
}
diff --git a/static/js/directives/ui/cor-tabs/cor-tab-panel.component.html b/static/js/directives/ui/cor-tabs/cor-tab-panel.component.html
index d041c9466..d449a6e30 100644
--- a/static/js/directives/ui/cor-tabs/cor-tab-panel.component.html
+++ b/static/js/directives/ui/cor-tabs/cor-tab-panel.component.html
@@ -1,3 +1,3 @@
diff --git a/static/js/directives/ui/cor-tabs/cor-tab-panel.component.ts b/static/js/directives/ui/cor-tabs/cor-tab-panel.component.ts
index a427989f4..dc24c39b0 100644
--- a/static/js/directives/ui/cor-tabs/cor-tab-panel.component.ts
+++ b/static/js/directives/ui/cor-tabs/cor-tab-panel.component.ts
@@ -15,9 +15,13 @@ import { CorTabCurrentHandler, LocationCurrentTabHandler, CookieCurrentTabHandle
}
})
export class CorTabPanelComponent implements OnDestroy {
- // If 'true', the currently selected tab will be remembered via a cookie and not the page URL.
+ // If supplied, the currently selected tab will be remembered via the named cookie and not
+ // the page URL.
@Input('@') public rememberCookie: string;
+ // If 'true', the tabs will be displayed vertically, as opposed to horizontally.
+ @Input('<') public verticalTabs: boolean;
+
// The tabs under this tabs component.
private tabs: CorTabComponent[] = [];
@@ -45,6 +49,13 @@ export class CorTabPanelComponent implements OnDestroy {
}
}
+ /**
+ * isVertical returns true if the tabs in this panel are displayed vertically.
+ */
+ public isVertical(): boolean {
+ return this.verticalTabs;
+ }
+
public tabClicked(tab: CorTabComponent): void {
this.setActiveTab(tab);
}
diff --git a/static/js/directives/ui/cor-tabs/cor-tab.component.html b/static/js/directives/ui/cor-tabs/cor-tab.component.html
index ca8e42f49..56b97fccf 100644
--- a/static/js/directives/ui/cor-tabs/cor-tab.component.html
+++ b/static/js/directives/ui/cor-tabs/cor-tab.component.html
@@ -1,10 +1,11 @@
-
+
- {{ ::$ctrl.tabTitle }}
+ bs-tooltip>{{ ::$ctrl.tabTitle }}
diff --git a/static/js/directives/ui/cor-tabs/cor-tabs.component.html b/static/js/directives/ui/cor-tabs/cor-tabs.component.html
index 0e1b4bf22..e068a43bf 100644
--- a/static/js/directives/ui/cor-tabs/cor-tabs.component.html
+++ b/static/js/directives/ui/cor-tabs/cor-tabs.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/static/js/directives/ui/cor-tabs/cor-tabs.component.ts b/static/js/directives/ui/cor-tabs/cor-tabs.component.ts
index 6b58ae50e..7c7c60a61 100644
--- a/static/js/directives/ui/cor-tabs/cor-tabs.component.ts
+++ b/static/js/directives/ui/cor-tabs/cor-tabs.component.ts
@@ -1,5 +1,6 @@
-import { Component, Host, Inject } from 'ng-metadata/core';
+import { Component, Input, Output, Inject, EventEmitter, Host } from 'ng-metadata/core';
import { CorTabComponent } from './cor-tab.component';
+import { CorTabPanelComponent } from './cor-tab-panel.component';
/**
@@ -16,6 +17,9 @@ export class CorTabsComponent {
// If true, the tabs are in a closed state. Only applies in the mobile view.
private isClosed: boolean = true;
+ constructor(@Host() @Inject(CorTabPanelComponent) private parent: CorTabPanelComponent) {
+ }
+
private toggleClosed(e): void {
this.isClosed = !this.isClosed;
}
diff --git a/static/partials/image-view.html b/static/partials/image-view.html
index beec1526d..231a8ce0e 100644
--- a/static/partials/image-view.html
+++ b/static/partials/image-view.html
@@ -15,7 +15,7 @@