Skip to content

Commit 7fc89f1

Browse files
committed
Added sidebar footer.
1 parent 9c874f6 commit 7fc89f1

File tree

5 files changed

+34
-13
lines changed

5 files changed

+34
-13
lines changed

angular/src/app/app.component.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,7 @@
3636
<aside id="leftsidebar" class="sidebar">
3737
<sidebar-user-area></sidebar-user-area>
3838
<sidebar-nav></sidebar-nav>
39-
<!-- Footer -->
40-
<div class="legal">
41-
<div class="copyright">
42-
&copy; 2016 <a href="javascript:void(0);">AdminBSB - Material Design</a>.
43-
</div>
44-
<div class="version">
45-
<b>Version: </b> 1.0.4
46-
</div>
47-
</div>
48-
<!-- #Footer -->
39+
<sidebar-footer></sidebar-footer>
4940
</aside>
5041
<!-- #END# Left Sidebar -->
5142
<!-- Right Sidebar -->

angular/src/app/app.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { CreateTenantModalComponent } from '@app/tenants/create-tenant-modal.com
2222
import { TopBarLanguageSwitchComponent } from '@app/layout/topbar-languageswitch.component';
2323
import { SideBarUserAreaComponent } from '@app/layout/sidebar-user-area.component';
2424
import { SideBarNavComponent } from '@app/layout/sidebar-nav.component';
25+
import { SideBarFooterComponent } from '@app/layout/sidebar-footer.component';
2526

2627
@NgModule({
2728
declarations: [
@@ -34,7 +35,8 @@ import { SideBarNavComponent } from '@app/layout/sidebar-nav.component';
3435
CreateTenantModalComponent,
3536
TopBarLanguageSwitchComponent,
3637
SideBarUserAreaComponent,
37-
SideBarNavComponent
38+
SideBarNavComponent,
39+
SideBarFooterComponent
3840
],
3941
imports: [
4042
CommonModule,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="legal">
2+
<div class="copyright">
3+
&copy; {{currentYear}} <a href="javascript:void(0);">AbpProjectName</a>.
4+
</div>
5+
<div class="version">
6+
<b>Version </b> {{versionText}}
7+
</div>
8+
</div>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Component, Injector, ViewEncapsulation } from '@angular/core';
2+
import { AppComponentBase } from '@shared/app-component-base';
3+
4+
@Component({
5+
templateUrl: './sidebar-footer.component.html',
6+
selector: 'sidebar-footer',
7+
encapsulation: ViewEncapsulation.None
8+
})
9+
export class SideBarFooterComponent extends AppComponentBase {
10+
11+
versionText: string;
12+
currentYear: number;
13+
14+
constructor(
15+
injector: Injector
16+
) {
17+
super(injector);
18+
19+
this.currentYear = new Date().getFullYear();
20+
this.versionText = this.appSession.application.version + ' [' + this.appSession.application.releaseDate.format('YYYYDDMM') + ']';
21+
}
22+
}

angular/src/app/layout/sidebar-nav.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { MenuItem } from '@shared/layout/menu-item';
99
})
1010
export class SideBarNavComponent extends AppComponentBase {
1111

12-
shownLoginName: string = "";
13-
1412
menuItems: MenuItem[] = [
1513
new MenuItem("HomePage", "", "home", "/app/home", true),
1614
new MenuItem("Tenants", "Pages.Tenants", "business", "/app/tenants", true),

0 commit comments

Comments
 (0)