mirror of https://github.com/gophish/gophish
Better UI Color consistency
parent
497fce25df
commit
59b6aa16c1
|
@ -54,7 +54,7 @@ body {
|
||||||
}
|
}
|
||||||
.nav-sidebar > .active > a {
|
.nav-sidebar > .active > a {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #428bca;
|
background-color: #34495e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ app.controller('DashboardCtrl', function($scope, $filter, $location, CampaignSer
|
||||||
$scope.$apply()
|
$scope.$apply()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
@ -61,7 +61,15 @@ app.controller('DashboardCtrl', function($scope, $filter, $location, CampaignSer
|
||||||
},
|
},
|
||||||
series: [{
|
series: [{
|
||||||
name: "Campaigns",
|
name: "Campaigns",
|
||||||
data: $scope.campaigns
|
data: $scope.campaigns,
|
||||||
|
marker: {
|
||||||
|
enabled: true,
|
||||||
|
radius: 3,
|
||||||
|
symbol: "circle",
|
||||||
|
fillColor: "#e74c3c"
|
||||||
|
},
|
||||||
|
lineColor:"rgba(231,76,60,.8)",
|
||||||
|
fillColor:"rgba(231,76,60,.8)"
|
||||||
}],
|
}],
|
||||||
title: {
|
title: {
|
||||||
text: 'Phishing Success Overview'
|
text: 'Phishing Success Overview'
|
||||||
|
@ -107,7 +115,7 @@ app.controller('DashboardCtrl', function($scope, $filter, $location, CampaignSer
|
||||||
y: avg
|
y: avg
|
||||||
}, {
|
}, {
|
||||||
name: "Unsuccessful Phishes",
|
name: "Unsuccessful Phishes",
|
||||||
color: "#7cb5ec",
|
color: "#1abc9c",
|
||||||
y: 100 - avg
|
y: 100 - avg
|
||||||
}]
|
}]
|
||||||
}],
|
}],
|
||||||
|
@ -150,7 +158,7 @@ app.controller('CampaignCtrl', function($scope, $modal, CampaignService, GroupSe
|
||||||
page: 1, // show first page
|
page: 1, // show first page
|
||||||
count: 10, // count per page
|
count: 10, // count per page
|
||||||
sorting: {
|
sorting: {
|
||||||
name: 'asc' // initial sorting
|
modified_date: 'desc' // initial sorting
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
total: 0, // length of data
|
total: 0, // length of data
|
||||||
|
@ -259,7 +267,7 @@ var CampaignModalCtrl = function($scope, CampaignService, $modalInstance) {
|
||||||
$scope.ok = function(campaign) {
|
$scope.ok = function(campaign) {
|
||||||
var newCampaign = new CampaignService(campaign);
|
var newCampaign = new CampaignService(campaign);
|
||||||
newCampaign.$save({}, function() {
|
newCampaign.$save({}, function() {
|
||||||
$modalInstance.close("Campaign added successfully")
|
$modalInstance.close("Campaign launched successfully")
|
||||||
$scope.campaigns.push(newCampaign);
|
$scope.campaigns.push(newCampaign);
|
||||||
$scope.mainTableParams.reload()
|
$scope.mainTableParams.reload()
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
|
@ -296,10 +304,11 @@ app.controller('CampaignResultsCtrl', function($scope, $filter, $interval, Campa
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
$scope.successFlash(response.message)
|
$scope.successFlash(response.message)
|
||||||
|
$location.path("/campaigns/")
|
||||||
|
$scope.$apply()
|
||||||
} else {
|
} else {
|
||||||
$scope.errorFlash(response.message)
|
$scope.errorFlash(response.message)
|
||||||
}
|
}
|
||||||
$scope.mainTableParams.reload();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -434,7 +443,7 @@ app.controller('CampaignResultsCtrl', function($scope, $filter, $interval, Campa
|
||||||
enabled: true,
|
enabled: true,
|
||||||
radius: 3,
|
radius: 3,
|
||||||
symbol: "circle",
|
symbol: "circle",
|
||||||
fillColor: "#7cb5ec"
|
fillColor: "#34495e"
|
||||||
},
|
},
|
||||||
animation: false
|
animation: false
|
||||||
}],
|
}],
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3 col-md-2 sidebar">
|
<div class="col-sm-3 col-md-2 sidebar">
|
||||||
<ul class="nav nav-sidebar">
|
<ul class="nav nav-sidebar">
|
||||||
<li class="active"><a href="#">Dashboard</a>
|
<li><a href="#">Dashboard</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#/campaigns">Campaigns</a>
|
<li class="active"><a href="#/campaigns">Campaigns</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#/users">Users & Groups</a>
|
<li><a href="#/users">Users & Groups</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<div ng-show="campaigns.length" class="row">
|
<div ng-show="campaigns.length" class="row">
|
||||||
<table ng-table="mainTableParams" class="table table-hover table-striped table-bordered">
|
<table ng-table="mainTableParams" class="table table-hover table-striped table-bordered">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr ng-repeat="campaign in $data | orderBy: '-modified_date'" class="editable-row">
|
<tr ng-repeat="campaign in $data | orderBy:modified_date:true" class="editable-row">
|
||||||
<td data-title="'Created Date'" class="col-sm-1">{{campaign.created_date | date:'medium'}}</td>
|
<td data-title="'Created Date'" class="col-sm-1">{{campaign.created_date | date:'medium'}}</td>
|
||||||
<td data-title="'Name'" class="col-sm-2">{{campaign.name}}
|
<td data-title="'Name'" class="col-sm-2">{{campaign.name}}
|
||||||
<div class="btn-group" style="float: right;">
|
<div class="btn-group" style="float: right;">
|
||||||
|
|
Loading…
Reference in New Issue