mirror of https://github.com/apache/cloudstack.git
UI Detail view: support external links
If externalLink is specified in detail view field attributes, then render its value as <a> hyperlink.
This commit is contained in:
parent
806105f9a1
commit
b18bca651f
|
|
@ -823,7 +823,16 @@
|
|||
*/
|
||||
|
||||
$name.html(_l(value.label));
|
||||
$value.html(_s(content));
|
||||
|
||||
if (!value.isExternalLink) {
|
||||
$value.html(_s(content));
|
||||
} else {
|
||||
$value.html('').append(
|
||||
$('<a>').attr({
|
||||
href: _s(content)
|
||||
}).html(_s(content))
|
||||
);
|
||||
}
|
||||
|
||||
// Set up validation metadata
|
||||
$value.data('validation-rules', value.validation);
|
||||
|
|
|
|||
Loading…
Reference in New Issue