LP#1775466 Ported About page
authorBill Erickson <berickxx@gmail.com>
Thu, 21 Jun 2018 22:06:58 +0000 (18:06 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 5 Sep 2018 14:05:23 +0000 (10:05 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/about.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/about.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/nav.component.html
Open-ILS/src/eg2/src/app/staff/routing.module.ts
Open-ILS/src/eg2/src/app/staff/staff.module.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 (file)
index 0000000..9e8e1c4
--- /dev/null
@@ -0,0 +1,57 @@
+<eg-staff-banner bannerText="About Evergreen" i18n-bannerText>
+</eg-staff-banner>
+
+<div class="row">
+  <div class="col-lg-4">
+    <div class="card">
+      <div class="card-header" i18n>Server Details</div>
+      <ul class="list-group list-group-flush">
+        <li class="list-group-item">
+          <div class="row pt-2">
+            <div class="col-lg-6" i18n>Evergreen Version</div>
+            <div class="col-lg-6">{{version}}</div>
+          </div>
+        </li>
+        <li class="list-group-item">
+          <div class="row pt-2">
+            <div class="col-lg-6" i18n>Hostname</div>
+            <div class="col-lg-6">{{server}}</div>
+          </div>
+        </li>
+      </ul>
+    </div><!-- card -->
+   </div>
+</div>
+<div class="row mt-4">
+  <div class="col-lg-8">
+    <h2 i18n>What is Evergreen?</h2>
+    <p i18n>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.
+    </p>
+    <p i18n>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.
+    </p>
+    <p i18n>
+      More information can be found at 
+      <a href="https://evergreen-ils.org">https://evergreen-ils.org</a>. 
+      For help in using Evergreen, see our documentation at 
+      <a href="http://docs.evergreen-ils.org">http://docs.evergreen-ils.org</a>.
+    </p>
+    <p i18n>
+      Evergreen is Copyright &#0169; Georgia Public Library Service - 
+      A Unit of the University System of Georgia, and others. The 
+      Evergreen software is distributed under the 
+      <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html">
+      GNU General Public License, Version 2.
+      </a>
+    </p>
+  </div>
+</div>
+
+
+
+
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 (file)
index 0000000..b88ba0e
--- /dev/null
@@ -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);
+    }
+}
+
index c4d9546..ad002a0 100644 (file)
             <span class="material-icons">lock_outline</span>
             <span i18n>Logout</span>
           </a>
-          <a class="dropdown-item" href="/eg/staff/about">
+          <a class="dropdown-item" routerLink="/staff/about">
             <span class="material-icons">info_outline</span>
             <span i18n>About</span>
           </a>
index 0138ad1..b515f38 100644 (file)
@@ -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
   }, {
index ff2fcb5..dd22f93 100644 (file)
@@ -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(),