diff --git a/frontend/app/scripts/controllers/AuthenticationCtrl.js b/frontend/app/scripts/controllers/AuthenticationCtrl.js index 30d0d2867b..d0257de7fe 100644 --- a/frontend/app/scripts/controllers/AuthenticationCtrl.js +++ b/frontend/app/scripts/controllers/AuthenticationCtrl.js @@ -5,6 +5,7 @@ 'use strict'; angular.module('theHiveControllers') .controller('AuthenticationCtrl', function($rootScope, $scope, $state, $location, $uibModalStack, $stateParams, AuthenticationSrv, NotificationSrv, UtilsSrv, UrlParser, appConfig) { + $scope.appConfig = appConfig; $scope.version = appConfig.versions.TheHive; $scope.params = { diff --git a/frontend/app/styles/main.css b/frontend/app/styles/main.css index 2184ddf994..0fa8ac1fa0 100644 --- a/frontend/app/styles/main.css +++ b/frontend/app/styles/main.css @@ -58,7 +58,7 @@ body { } .container-main { - padding-top: 100px; + padding-top: 60px; } .marked>table, .markdown>table { diff --git a/frontend/app/views/components/app-container.component.html b/frontend/app/views/components/app-container.component.html index fcc4481caf..f722376232 100644 --- a/frontend/app/views/components/app-container.component.html +++ b/frontend/app/views/components/app-container.component.html @@ -1,7 +1,17 @@
-
+
+ +
+
+

Error in {{schema.name}} schema: expected version {{schema.expectedVersion}}, got {{schema.currentVersion}}

+

Please contact the administrator

+
+
+ + +
- TheHive Project 2016-2020, AGPL-V3 + TheHive Project 2016-2021, AGPL-V3
diff --git a/frontend/app/views/login.html b/frontend/app/views/login.html index d4dfdd4229..c27a3b4977 100644 --- a/frontend/app/views/login.html +++ b/frontend/app/views/login.html @@ -1,3 +1,12 @@ +
+
+
+

Error in {{schema.name}} schema: expected version {{schema.expectedVersion}}, got {{schema.currentVersion}}

+

Please contact the administrator

+
+
+
+
+

Database Schema status

+
+
+
Status
+
Schema name
+
Schema version
+
+
+
+
+ {{schema.error === null ? 'OK' : 'ERROR'}} +
+
+

+ {{schema.name}} +

+
+

{{schema.error}}

+
+
+ +
+ {{schema.currentVersion}} +
+
+
+
+

Data index status Reload

Loading index status...
Status
Index name
-
Database Objects
-
Index Objects
+
# Entities
@@ -34,20 +63,12 @@

Data index status {{data.status}} + 'Error': 'label-danger'}[data.status]">{{data.status | uppercase}}

{{indexName}}

-
-
{{(data.mixedCount / data.compositeCount) * 100}}%
-
-
-
-
@@ -55,81 +76,30 @@

{{data.mixedCount}}

-
- - {{data.compositeCount}} - -
+
-

Data health status Reload

+

Database integrity check

Loading data health stats...
-
Status
Control name
-
Global Stats
-
Duplicate Stats
-
- {{data.needCheck ? 'Pending': 'OK'}} -

{{checkName}}

-
-
-
- Iterations: - {{data.globalStats.global.iteration}} - Duplicate: - {{data.globalStats.global.duplicate}} - Duration: - {{data.globalStats.global.duration}} -
-
-
-
- Last execution: {{data.globalStats.lastDate | shortDate}} -
-
-
- -
-
-
- Iterations: - {{data.duplicateStats.global.iteration}} - Duplicate: - {{data.duplicateStats.global.duplicate}} - Duration: - {{data.duplicateStats.global.duration}} -
-
-
-
- Last execution: {{data.duplicateStats.lastDate | shortDate}} -
-
-
-
Trigger @@ -138,40 +108,7 @@

-

Database Schema status

-
-
-
Status
-
Schema name
-
Current Version
-
Expected Version
-
-
-
-
- {{schema.error === null ? 'OK' : - 'Error'}} -
-
-

- {{schema.name}} -

-
- {{schema.error}} -
-
-
- {{schema.currentVersion}} -
-
- {{schema.expectedVersion}} -
-
-
-