RIFT-15899: Launchpad UI - Add reference/link from About page to RIFT.io open-source...
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Wed, 19 Apr 2017 04:49:32 +0000 (00:49 -0400)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Wed, 19 Apr 2017 04:49:32 +0000 (00:49 -0400)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/about/src/about.jsx

index 6458764..1a43aa4 100644 (file)
@@ -62,6 +62,23 @@ class About extends React.Component {
     // If in the mission control, create an uptime table;
     var uptime = this.state.createTime && this.state.createTime;
 
     // If in the mission control, create an uptime table;
     var uptime = this.state.createTime && this.state.createTime;
 
+    var fossInfoComponent = (
+      <div className="table-container">
+        <h2> FOSS Info </h2>
+        <table>
+          <thead>
+            <tr>
+              <th>
+                <a target="_blank" href='https://open.riftio.com/open-source-software-usage/'>
+                  Click here for FOSS Info (requires Internet connection)
+                </a>
+              </th>
+            </tr>
+          </thead>
+        </table>
+      </div>
+    );
+
     var uptimeComponent = (
       <div className="table-container">
                   <h2> Uptime Info </h2>
     var uptimeComponent = (
       <div className="table-container">
                   <h2> Uptime Info </h2>
@@ -103,6 +120,7 @@ class About extends React.Component {
     if (this.state != null) {
       var html = (
               <div className="table-container-wrapper">
     if (this.state != null) {
       var html = (
               <div className="table-container-wrapper">
+                {fossInfoComponent}
                 {uptimeComponent}
                 <div className="table-container">
                   <h2> Version Info </h2>
                 {uptimeComponent}
                 <div className="table-container">
                   <h2> Version Info </h2>