From 86a69fac86761fa27fd59208ae918f19def44e0b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 21 Jun 2018 18:06:58 -0400 Subject: [PATCH] LP#1775466 Ported About page Signed-off-by: Bill Erickson --- .../src/eg2/src/app/staff/about.component.html | 57 ++++++++++++++++++++++ Open-ILS/src/eg2/src/app/staff/about.component.ts | 26 ++++++++++ Open-ILS/src/eg2/src/app/staff/nav.component.html | 2 +- Open-ILS/src/eg2/src/app/staff/routing.module.ts | 4 ++ Open-ILS/src/eg2/src/app/staff/staff.module.ts | 4 +- 5 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/staff/about.component.html create mode 100644 Open-ILS/src/eg2/src/app/staff/about.component.ts diff --git a/Open-ILS/src/eg2/src/app/staff/about.component.html b/Open-ILS/src/eg2/src/app/staff/about.component.html new file mode 100644 index 0000000000..9e8e1c41f4 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/about.component.html @@ -0,0 +1,57 @@ + + + +
+
+
+
Server Details
+
    +
  • +
    +
    Evergreen Version
    +
    {{version}}
    +
    +
  • +
  • +
    +
    Hostname
    +
    {{server}}
    +
    +
  • +
+
+
+
+
+
+

What is Evergreen?

+

Evergreen is library automation software that assists libraries + in day-to-day operations such as checking out materials, keeping + track of users, sharing resources among a group of libraries, + acquiring materials, and providing a web-based library catalog for + the public. +

+

The open-source community developing and supporting Evergreen is + marked by a high degree of participation from developers and from + the librarians who use the software. +

+

+ More information can be found at + https://evergreen-ils.org. + For help in using Evergreen, see our documentation at + http://docs.evergreen-ils.org. +

+

+ Evergreen is Copyright © Georgia Public Library Service - + A Unit of the University System of Georgia, and others. The + Evergreen software is distributed under the + + GNU General Public License, Version 2. + +

+
+
+ + + + diff --git a/Open-ILS/src/eg2/src/app/staff/about.component.ts b/Open-ILS/src/eg2/src/app/staff/about.component.ts new file mode 100644 index 0000000000..b88ba0e718 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/staff/about.component.ts @@ -0,0 +1,26 @@ +import {Component, OnInit} from '@angular/core'; +import {NetService} from '@eg/core/net.service'; + +@Component({ + selector: 'eg-about', + //styleUrls: ['about.component.css'], + templateUrl: 'about.component.html' +}) + +export class AboutComponent implements OnInit { + server: string; + version: string; + + constructor( + private net: NetService + ) {} + + ngOnInit() { + this.server = window.location.hostname; + this.net.request( + 'open-ils.actor', + 'opensrf.open-ils.system.ils_version' + ).subscribe(v => this.version = v); + } +} + diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index c4d9546fc5..ad002a08de 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -390,7 +390,7 @@ lock_outline Logout - + info_outline About diff --git a/Open-ILS/src/eg2/src/app/staff/routing.module.ts b/Open-ILS/src/eg2/src/app/staff/routing.module.ts index 0138ad1116..b515f389af 100644 --- a/Open-ILS/src/eg2/src/app/staff/routing.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/routing.module.ts @@ -4,6 +4,7 @@ import {StaffResolver} from './resolver.service'; import {StaffComponent} from './staff.component'; import {StaffLoginComponent} from './login.component'; import {StaffSplashComponent} from './splash.component'; +import {AboutComponent} from './about.component'; // Not using 'canActivate' because it's called before all resolvers, // even the parent resolver, but the resolvers parse the IDL, load settings, @@ -18,6 +19,9 @@ const routes: Routes = [{ redirectTo: 'splash', pathMatch: 'full', }, { + path: 'about', + component: AboutComponent + }, { path: 'login', component: StaffLoginComponent }, { diff --git a/Open-ILS/src/eg2/src/app/staff/staff.module.ts b/Open-ILS/src/eg2/src/app/staff/staff.module.ts index ff2fcb54c4..dd22f93e17 100644 --- a/Open-ILS/src/eg2/src/app/staff/staff.module.ts +++ b/Open-ILS/src/eg2/src/app/staff/staff.module.ts @@ -6,13 +6,15 @@ import {StaffRoutingModule} from './routing.module'; import {StaffNavComponent} from './nav.component'; import {StaffLoginComponent} from './login.component'; import {StaffSplashComponent} from './splash.component'; +import {AboutComponent} from './about.component'; @NgModule({ declarations: [ StaffComponent, StaffNavComponent, StaffSplashComponent, - StaffLoginComponent + StaffLoginComponent, + AboutComponent ], imports: [ StaffCommonModule.forRoot(), -- 2.11.0