Commits

WAKAYAMA shirou committed 1a5c5b8

add color label to index title.

Comments (0)

Files changed (1)

src/dipus/_static/js/search_dipus.js

 		  success: function(json){
 			  for(var i = 0; i < json.hits.length; i++){
 				  var hit = json.hits[i];
-				  var listItem = $('<li style="display:none">' + hit._index + ' : </li>');
+				  var index = '<span class="label label-info">' + hit._index + '</span>';
+				  var listItem = $('<li style="display:none">' + index + ' </li>');
 				  var msgbody = hit._source.message;
 				  listItem.append($('<a/>').attr('href',
 												 hit._source.doc_url + "/" +