mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Add tooltips to external links
This adds a tooptip for alert source url and all links detected in labels
This commit is contained in:
@@ -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
Reference in New Issue
Block a user