$arr = explode(':', $issue->issue_cause); $arr[0] = '<b class="priority-critical-text-color" >' . $arr[0] . '</b>'; foreach ($arr as $i => $text) { echo $i == 0 ? '<b>' . $text . '</b>' : '<small>' . $text . '</small>', '<br/>'; } ?> </p></blockquote> </dd> </dl> </div> </div> <?php if ($issue->issue_milestone_id > 0) { $milesArr = DbHelper::fetchMilestones(MILE_ID . '=' . $issue->issue_milestone_id); $m = Milestone::createFromArr($milesArr[0]); } else { $m = null; } ?> <div class="row-fluid" > <div class="span12" > <dl class="dl-horizontal" > <dt>Milestone</dt> <?php if (!is_null($m)) { ?> <dd id="milestoneView" > <?php $m->printOverview(); ?>
<form id="milestoneForm" action="<?php echo $mNavCtl->buildActionURL('issues', 'delMilestone', null); ?> " method="post" > <input type="hidden" id="mId" name="mId" value="" /> </form> <table class="table "> <?php if (empty($milesArr)) { ?> <tr><td colspan="2" class="muted text-i" >No milestone found.</td></tr><?php } else { foreach ($milesArr as $m) { $milestone = Milestone::createFromArr($m); ?> <tr> <td style="width:45%; border-top:0px none;" > <h3 style="color:#4183C4; margin:0px 0px;" ><?php echo $m[APP_NAME] . ' ' . $m[MILE_NAME]; ?> </h3> <span class="muted" >Due in </span><span><?php $milestone->printRemainingTime(); ?> </span> </td> <td style="width:55%; border-top:0px none;" > <div class="pull-left" ><?php echo $milestone->count_closed;