forked from TheHive-Project/TheHive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started working on Case Reporting TheHive-Project#305
- Loading branch information
Showing
8 changed files
with
185 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
rm -rf /opt/thehive/ | ||
|
||
~/TheHive/bin/activator clean stage | ||
|
||
cp -r ~/TheHive/target/universal/stage /opt/thehive | ||
|
||
chown -R thehive /opt/thehive | ||
|
||
service thehive restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(function() { | ||
'use strict'; | ||
angular.module('theHiveControllers') | ||
.controller('CaseReportCtrl', CaseReportCtrl); | ||
|
||
function CaseReportCtrl($uibModalInstance, caze, tasks, observables) { | ||
var self = this; | ||
|
||
this.caze = caze; | ||
console.log("CASE"); | ||
console.log(caze); | ||
this.tasks = tasks; | ||
console.log("TASKS"); | ||
console.log(tasks); | ||
this.observables = observables; | ||
console.log("OBSERVABLES"); | ||
console.log(observables); | ||
|
||
this.download = function() { | ||
$uibModalInstance.close(); | ||
}; | ||
|
||
this.cancel = function() { | ||
$uibModalInstance.dismiss(); | ||
}; | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<div class="modal-header bg-primary"> | ||
<h3 class="modal-titlpe">Case Report</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="container"> | ||
<h1 class="jumbotron-heading">Case #{{report.caze.caseId}}: {{ report.caze.title }}</h1> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<span> | ||
<i class="glyphicon glyphicon-user"></i> | ||
{{ report.caze.owner }} | ||
</span> | ||
</div> | ||
<div class="col-sm"> | ||
<span> | ||
<i class="glyphicon glyphicon-adjust"></i> | ||
{{ report.caze.status }} | ||
</span> | ||
</div> | ||
<div class="col-sm"> | ||
<span> | ||
<i class="glyphicon glyphicon-asterisk"></i> | ||
{{ report.caze.severity }} | ||
</span> | ||
</div> | ||
<div class="col-sm"> | ||
<span> | ||
<i class="glyphicon glyphicon-warning-sign"></i> | ||
{{ report.caze.tlp }} | ||
</span> | ||
</div> | ||
<div ng-if="report.caze.flag" class="col-sm"> | ||
<span> | ||
<i class="glyphicon glyphicon-flag"></i> | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<h3>Description</h3> | ||
<p>{{ report.caze.description }}</p> | ||
</div> | ||
|
||
<div> | ||
<h3>Audit Trail</h3> | ||
<p>Created By: {{ report.caze.createdBy }}</p> | ||
<p>Created On: {{ report.caze.createdAt }}</p> | ||
<p>Assigned To: {{ report.caze.owner }}</p> | ||
<p>Last Updated: {{ report.caze.updatedAt }}</p> | ||
<p>Last Updated By: {{ report.caze.updatedBy}}</p> | ||
<p ng-if="report.caze.endDate">Closed On: {{ report.caze.endDate }}</p> | ||
</div> | ||
</div> | ||
|
||
<div class="container"> | ||
<h1 class="jumbotron-heading">Tasks</h1> | ||
<p>Tasks: {{ report.tasks.length }}</p> | ||
<div ng-repeat="task in report.tasks"> | ||
<p>Title: {{ task.title }}</p> | ||
<p>Author: {{ task.createdBy }}</p> | ||
<p>Status: {{ task.status }}</p> | ||
</div> | ||
<h3>Details</h3> | ||
<h3>Logs</h3> | ||
<h3>Attachments</h3> | ||
<h3>Audit Trail</h3> | ||
</div> | ||
|
||
<div class="container"> | ||
<h1 class="jumbotron-heading">Observables</h1> | ||
<h3>Details</h3> | ||
<h3>Report Findings</h3> | ||
<h3>Audit Trail</h3> | ||
</div> | ||
|
||
</div> | ||
<div class="modal-footer text-left"> | ||
<button class="btn btn-default" ng-click="report.cancel()">Cancel</button> | ||
<button class="btn btn-primary pull-right" ng-click="report.download()">Download</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters