Make sure functions work in the description map as well

This commit is contained in:
Joseph Schorr 2013-12-02 14:05:19 -05:00
parent 45bc0d8dd8
commit 64c9081587
2 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,7 @@
<thead>
<th>Description</th>
<th>Date/Time</th>
<th>User</th>
<th>User/Token</th>
</thead>
<tbody>

View file

@ -788,8 +788,13 @@ quayApp.directive('logsView', function () {
};
$scope.getDescription = function(log) {
var description = logDescriptions[log.kind] || logTitles[log.kind] || log.kind;
log.metadata['_ip'] = log.ip;
var description = logDescriptions[log.kind] || logTitles[log.kind] || log.kind;
if (typeof description != 'string') {
description = description(log.metadata);
}
for (var key in log.metadata) {
if (log.metadata.hasOwnProperty(key)) {
var markedDown = getMarkedDown(log.metadata[key].toString());