anchor.diff:          var datequery;
           switch ($.deparam.fragment().period) {
               case 'day':
  +                $('#day').button('toggle');
                   var today = new Date();
                   datequery = "&startDate=" + today.getFullYear() + "-" + ("0" + (today.getMonth() + 1)).slice(-2) + "-"
                           + ("0" + today.getDate()).slice(-2);
                   break;
               case 'week':
  +                $('#week').button('toggle');
                   var thisweek = new Date();
                   thisweek.setDate(thisweek.getDate() - 7);
                   datequery = "&startDate=" + thisweek.getFullYear() + "-" + ("0" + (thisweek.getMonth() + 1)).slice(-2)
  
positive.code: 
              <div class="navbar-form pull-left btn-toolbar">
                  <div class="btn-group" data-toggle="buttons-radio">
                      <button class="btn" id="inprogress">In Progress</button>
                      <button class="btn" id="failed">Failed</button>
                      <button class="btn" id="stopped">Stopped</button>
                      <button class="btn" id="restarted">Restarted</button>
                      <button class="btn" id="done">Done</button>
                  </div>
  
                  <div class="btn-group" data-toggle="buttons-radio">
                      <button class="btn" id="day">Today</button>
                      <button class="btn" id="week">Last 7 days</button>
                      <button class="btn" id="all">All</button>
                  </div>
  
                  <div class="btn-group">
  
negative.code:             if ($.deparam.fragment().mode != 'details' && content.stateName != "<%= RESTARTED_STATE %>") {
                  item += restartLink;
              }
              item += "</div></td>";
              item += "</tr>";
              items.push(item);
          });
  