Commit 01231cdc authored by Piers Williams's avatar Piers Williams

Added the second tag spacer and the stochastic icon for those that are random

parent b95f2ace
Pipeline #896 passed with stages
in 20 seconds
......@@ -36,13 +36,19 @@ function makeRuleItem(list, index, value){
icon = "comment";
}
var stochastic = "null";
if(value.tags.indexOf("stochastic") != -1){
stochastic = "random";
}
/*
font awesome provides:
random, info, lightbulb-o, recycle, times, trash, arrow-right
*/
var html = '<li class="list-group-item clearfix ' + type + '" id="rule' + value.id + '">';
html = html + '<i class="fa-fw fa fa-' + icon + '"></i>';
html = html + '<i class="icon-fixed-width fa-fw fa fa-' + icon + '"></i>';
html = html + '<i class="icon-fixed-width fa-fw fa fa-' + stochastic + '"></i>';
html = html + '<span class="name">' + value.name + "</span>";
html = html + '<span style="display: none" class="ruleid">' + value.id + '</span>';
html = html + '<button type="button" class="btn btn-info btn-sm pull-right doc" data-toggle="modal" data-target="#docModal" data-src="http://iggi.fosslab.uk/hanabi/apidocs/' + value.doc + '">Info</button>'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment