lib/mutx/view/results/results.mote in mutx-0.1.22 vs lib/mutx/view/results/results.mote in mutx-0.1.23

- old
+ new

@@ -18,21 +18,25 @@ % tasks_list["tasks"].select!{|task| task["name"]==args[:task_name]} if args[:task_name] % tasks_list["tasks"].each do |task| % results_list = Mutx::API::Result.results_list_for(task["_id"]) % if results_list.size > 0 % size = results_list.size - % if ((size > 200) && (size < 300)) + % if ((size > 300) && (size < 400)) + % results_list_size = "300+" + % elsif ((size > 400) && (size < 500)) + % results_list_size = "400+" + % elsif ((size > 200) && (size < 300)) % results_list_size = "200+" % elsif ((size > 100) && (size < 200)) % results_list_size = "100+" % else % results_list_size = size % end <div class="panel panel-primary"> <div class="panel-heading" data-toggle="collapse" data-target='#{{task["_id"]}}'> <h3 class="panel-title"> {{task["name"]}} - <div class="pull-right">{{results_list.size}} Results</div> + <div class="pull-right">{{results_list_size}} Results</div> </h3> <div></div> </div> <div class="panel-body collapse in" id='{{task["_id"]}}'> <table class="table"> \ No newline at end of file