From 0ad5a762212ac60c6d1cd44e5171dad518ccb4a9 Mon Sep 17 00:00:00 2001
From: Usman Nasir
Date: Sat, 7 Mar 2020 23:25:58 +0500
Subject: [PATCH] fetch git branches
---
.../websiteFunctions/websiteFunctions.js | 2 +
.../templates/websiteFunctions/manageGIT.html | 53 +++++++++++++++----
.../templates/websiteFunctions/setupGit.html | 10 ++--
websiteFunctions/website.py | 38 +++++++++++--
4 files changed, 85 insertions(+), 18 deletions(-)
diff --git a/websiteFunctions/static/websiteFunctions/websiteFunctions.js b/websiteFunctions/static/websiteFunctions/websiteFunctions.js
index 9db2d27e9..c2d8ad3a1 100755
--- a/websiteFunctions/static/websiteFunctions/websiteFunctions.js
+++ b/websiteFunctions/static/websiteFunctions/websiteFunctions.js
@@ -5823,6 +5823,8 @@ app.controller('manageGIT', function ($scope, $http, $timeout, $window) {
if (response.data.repo === 1) {
$scope.gitTracking = true;
$scope.gitEnable = false;
+ $scope.branches = response.data.finalBranches;
+ $scope.deploymentKey = response.data.deploymentKey;
} else {
$scope.gitTracking = false;
$scope.gitEnable = true;
diff --git a/websiteFunctions/templates/websiteFunctions/manageGIT.html b/websiteFunctions/templates/websiteFunctions/manageGIT.html
index c4220583f..e83db9cc8 100755
--- a/websiteFunctions/templates/websiteFunctions/manageGIT.html
+++ b/websiteFunctions/templates/websiteFunctions/manageGIT.html
@@ -33,28 +33,61 @@
- {% trans "This folder does not have Git tracking, click below to initiate a repository and start tracking files." %}
-
+
+
+
+
- | Folder |
- Remote |
Branch |
+ Remote |
Status |
Manage |
-
- |
- |
- |
- |
- |
+
+ |
+ |
+ |
+ |
+ |
diff --git a/websiteFunctions/templates/websiteFunctions/setupGit.html b/websiteFunctions/templates/websiteFunctions/setupGit.html
index 56075ba1e..55edf971a 100755
--- a/websiteFunctions/templates/websiteFunctions/setupGit.html
+++ b/websiteFunctions/templates/websiteFunctions/setupGit.html
@@ -147,13 +147,13 @@