From bd7a0ec2cbba94d872bc9b6c317a749c657e07a7 Mon Sep 17 00:00:00 2001
From: JOE XMG <thunyathep.s@outlook.com>
Date: Mon, 21 Feb 2022 14:56:35 +0100
Subject: [PATCH] update

---
 public/content/content.json | 3 ++-
 public/js/add_content.js    | 6 ++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/public/content/content.json b/public/content/content.json
index 1d32824..a8c5faf 100644
--- a/public/content/content.json
+++ b/public/content/content.json
@@ -231,7 +231,8 @@
     "links": {
       "demo": "https://steinbeis-3dps.eu/3DGeoVolumes/",
       "publication":"https://docs.ogc.org/per/20-030.html",
-      "project":"https://www.hft-stuttgart.de/forschung/i-city"
+      "project":"https://www.hft-stuttgart.de/forschung/i-city",
+      "repo":"https://transfer.hft-stuttgart.de/gitlab/ogc/3dgeovolumesapi"
     },
     "refIndex": 5
   },
diff --git a/public/js/add_content.js b/public/js/add_content.js
index e98bf1e..1f76814 100644
--- a/public/js/add_content.js
+++ b/public/js/add_content.js
@@ -53,6 +53,11 @@ function addcontent(item) {
       var presentationLink = item.links.presentation 
       presentationHTML = `<a class="btn btn-sm btn-outline-warning mt-1" href="${presentationLink}" target="_blank"> <i class="fas fa-file-powerpoint"></i> Presentation</a>`
     }
+    var repoHTML = ''
+    if ('repo' in item.links) {
+      var repoLink = item.links.repo 
+      repoHTML = `<a class="btn btn-sm btn-outline-info mt-1" href="${repoLink}" target="_blank"> <i class="fa fa-gitlab"></i> Git/Repository </a>`
+    }
 
     new_row.innerHTML = new_row.innerHTML + '<div class="col-lg-4">' +
       '<div class="card mb-4 shadow-sm extension overflow-auto">' +
@@ -71,6 +76,7 @@ function addcontent(item) {
       publicationHTML + '&nbsp;' +
       projectHTML + '&nbsp;' +
       presentationHTML + '&nbsp;' +
+      repoHTML + '&nbsp;' +
       '</p>' +
       '</div>' +
       '</div>' +
-- 
GitLab