Add tooltips to external links

This adds a tooptip for alert source url and all links detected in labels
This commit is contained in:
Łukasz Mierzwa
2017-04-03 17:25:00 -07:00
parent 613c0cd927
commit 1226b32603
2 changed files with 3 additions and 3 deletions

View File

@@ -75,11 +75,11 @@
%div
-if (alert.generatorURL) {
%a.label.label-list.label-default{href: alert.generatorURL, target: '_blank'}
%a.label.label-list.label-default{href: alert.generatorURL, target: '_blank', title: "Go to the alert source", 'data-toggle': 'tooltip', 'data-placement': 'top'}
%i.fa.fa-external-link
source
-$.each(alert.links, function(k, url) {
%a.label.label-list.label-default{href: url, target: '_blank'}
%a.label.label-list.label-default{href: url, target: '_blank', title: url, 'data-toggle': 'tooltip', 'data-placement': 'top'}
%i.fa.fa-external-link
=k
-if (alert.silenced > 0) {

File diff suppressed because one or more lines are too long