mirror of https://gitee.com/bigwinds/arangodb
added different collections icon
This commit is contained in:
parent
8cd22d04c6
commit
12bb5c20bf
Binary file not shown.
|
@ -26,16 +26,16 @@ window.arangoCollections = Backbone.Collection.extend({
|
|||
},
|
||||
translateTypePicture : function (type) {
|
||||
if (type === 'document') {
|
||||
return "documentPicture.png";
|
||||
return "img/icon_document.png";
|
||||
}
|
||||
else if (type === 'edge') {
|
||||
return "edgePicture.png";
|
||||
return "img/icon_node.png";
|
||||
}
|
||||
else if (type === 'unknown') {
|
||||
return "unknownPicture.png";
|
||||
return "img/icon_unknown.png";
|
||||
}
|
||||
else {
|
||||
return "systemPicture.png";
|
||||
return "img/icon_arango.png";
|
||||
}
|
||||
},
|
||||
parse: function(response) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<a href="#collection/<%= attributes.name %>/documents/1" class="thumbnail plain">
|
||||
<img src="img/icon_arango.png" height="60" width="60" alt="" class="icon">
|
||||
<img src="<%= attributes.picture %>" height="60" width="60" alt="" class="icon">
|
||||
<span class="badge badge-success <%= attributes.status %>"><div class="cornered"><%= attributes.status %></div></span>
|
||||
|
||||
<h5 class="collectionName">
|
||||
|
|
Loading…
Reference in New Issue