new: [communities] Added Danish community and some fixes to the community system

pull/5639/head
iglocska 2020-02-18 09:29:06 +01:00
parent 88894fc2e5
commit c677183069
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
3 changed files with 21 additions and 5 deletions

View File

@ -4,6 +4,7 @@
$table_data[] = array('key' => __('Id'), 'value' => $community['id']);
$table_data[] = array('key' => __('UUID'), 'value' => $community['uuid']);
$table_data[] = array('key' => __('Name'), 'value' => $community['name']);
$table_data[] = array('key' => __('Url'), 'url' => $community['url']);
$table_data[] = array('key' => __('Host organisation'), 'value' => $community['org_name'] . ' (' . $community['org_uuid'] . ')');
$table_data[] = array(
'key' => __('Vetted by MISP-project'),
@ -28,13 +29,12 @@
'element_params' => array('key' => $community['pgp_key']),
);
}
//misp-project.org/org-logos/uuid.png
echo sprintf(
'<div class="row-fluid"><div class="span8" style="margin:0px;">%s</div></div>',
sprintf(
'%s<h2>%s</h2>%s',
sprintf(
'<img src="https://misp-project.org/org-logos/%s.png" title="%s" aria-label="%s"/>',
'<img src="https://misp-project.org/org-logos/%s.png" title="%s" aria-label="%s" style="max-height: 100px;"/>',
h($community['org_uuid']),
h($community['org_name']),
h($community['org_name'])

View File

@ -39,7 +39,7 @@
empty($row['value_class']) ? '' : h($row['value_class'])
),
sprintf(
'%s%s%s%s',
'%s%s%s%s%s',
!isset($row['boolean']) ? '' : sprintf(
'<span class="%s">%s</span>',
(empty($row['class']) && empty($row['value_class'])) ?
@ -48,6 +48,7 @@
),
empty($row['value']) ? '' : nl2br(h(trim($row['value']))),
empty($row['html']) ? '' : $row['html'],
empty($row['url']) ? '' : sprintf('<a href="%s">%s</a>', h($row['url']), h($row['url'])),
empty($element) ? '' : $element
)
);

File diff suppressed because one or more lines are too long