Skip to content

Commit

Permalink
#1627 Add report-template link to admin section
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Nov 6, 2020
1 parent f961fe1 commit 295e3e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
.controller('AdminAnalyzerTemplateDeleteCtrl', AdminAnalyzerTemplateDeleteCtrl);


function AdminAnalyzerTemplatesCtrl($q, $uibModal, AnalyzerSrv, AnalyzerTemplateSrv, NotificationSrv) {
function AdminAnalyzerTemplatesCtrl($q, $uibModal, AnalyzerSrv, AnalyzerTemplateSrv, NotificationSrv, appConfig) {
var self = this;

this.appConfig = appConfig;
this.templates = [];
this.analyzers = [];
this.analyzerIds = [];
Expand Down
4 changes: 4 additions & 0 deletions frontend/app/views/partials/admin/analyzer-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ <h3 class="box-title">Analyzer template management</h3>
</div>
</div>
</div>
<div class="filter-panel mb-xs">
<h4>Download the official templates archive</h4>
<p>You can download the latest archive of the official analyzer templates <a target="_blank" href="http://download.thehive-project.org/report-templates.zip?version={{vm.appConfig.versions.TheHive}}">from here</a></p>
</div>
<div class="row mv-s" ng-show="vm.analyzerCount === 0">
<div class="col-md-12">
<div class="empty-message">No analyzer templates found.</div>
Expand Down

0 comments on commit 295e3e7

Please sign in to comment.