Skip to content

Commit

Permalink
see #5: style topics and entities
Browse files Browse the repository at this point in the history
  • Loading branch information
ziodave committed Dec 18, 2016
1 parent 2169a3c commit 5cf731e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion src/admin/css/helixware-mico-admin.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
/**
* All of the CSS for your admin-specific functionality should be
* included in this file.
*/
*/

.attachment-details .setting span.topic, .attachment-details .setting span.entity {
background: #d3d3d3;
border: 1px solid #404040;
border-radius: 7px;
margin: 2px;
padding: 0 6px;
line-height: 22px;
text-align: center;
}
4 changes: 2 additions & 2 deletions src/admin/js/helixware-mico-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

$(selector, context).empty().append(
$.map(data, function (item) {
return $('<span class="' + className + '">' + item.label + '<a href="' + cleanReference(item.reference) + '" target="_tab">link</a></span>');
return $('<span class="' + className + '">' + item.label + ' <a href="' + cleanReference(item.reference) + '" target="_tab"><i class="fa fa-external-link" aria-hidden="true"></i></a></span>');
})
);

Expand All @@ -68,7 +68,7 @@
var $this = $(this);

// Add the entities row.
load('hx_entities', id, '[data-hx-mico-entities]', 'entities', $('<label class="setting" data-setting="entities">'
load('hx_entities', id, '[data-hx-mico-entities]', 'entity', $('<label class="setting" data-setting="entities">'
+ '<span class="name">Entities</span>'
+ '<span data-hx-mico-entities="hx-mico-entities">loading...</span>'
+ '</label>').insertAfter($this));
Expand Down

0 comments on commit 5cf731e

Please sign in to comment.