Edgewall Software

Ticket #1135: timeline.cs.diff

File timeline.cs.diff, 2.4 KB (added by fog@…, 4 years ago)
  • timeline.

    old new  
    11<?cs set:html.stylesheet = 'css/timeline.css' ?> 
    22<?cs include "header.cs"?> 
     3<?cs include "macros.cs"?> 
    34 
    45<div id="ctxtnav" class="nav"></div> 
    56 
     
    3536      if:timeline.milestone ?>checked="checked"<?cs /if ?> /> 
    3637    <label for="milestone">Milestones</label> 
    3738   </div><?cs /if ?> 
     39   <div class="field"> 
     40    <input type="checkbox" id="component" name="component" <?cs 
     41      if:timeline.component ?>checked="checked"<?cs /if ?> /> 
     42    <label for="component">Component: </label><?cs 
     43    call:hdf_select(timeline.components, "cfilter", timeline.cfilter) ?> 
     44   </div> 
    3845  </fieldset> 
    3946  <div class="buttons"> 
    4047   <input type="submit" value="Update" /> 
     
    6067 
    6168<?cs each:item = timeline.items ?> 
    6269 <?cs call:day_separator(item.date) ?> 
     70  <?cs if:item.component ?> 
     71   <?cs set:component = ' (' + $item.component + ')' ?> 
     72  <?cs else ?> 
     73   <?cs set:component = '' ?> 
     74  <?cs /if ?> 
     75   
    6376 <?cs if:item.type == #1 ?><!-- Changeset --> 
    6477  <?cs call:tlitem(item.href, 'changeset', 
    65     'Changeset <em>['+$item.idata+']</em> by '+$item.author,$item.node_list+item.message) ?> 
     78    'Changeset <em>['+$item.idata+']</em>'+$component+' by '+$item.author,$item.node_list+item.message) ?> 
    6679 <?cs elif:item.type == #2 ?><!-- New ticket --> 
    6780  <?cs call:tlitem(item.href, 'newticket', 
    68     'Ticket <em>#'+$item.idata+'</em> created by '+$item.author, item.message) ?> 
     81    'Ticket <em>#'+$item.idata+'</em>'+$component+' created by '+$item.author, item.message) ?> 
    6982 <?cs elif:item.type == #3 ?><!-- Closed ticket --> 
    7083  <?cs if:item.message ?> 
    7184   <?cs set:imessage = ' - ' + $item.message ?> 
     
    7386   <?cs set:imessage = '' ?> 
    7487  <?cs /if ?> 
    7588  <?cs call:tlitem(item.href, 'closedticket', 
    76     'Ticket <em>#'+$item.idata+'</em> resolved by '+$item.author,  
     89    'Ticket <em>#'+$item.idata+'</em>'+$component+' resolved by '+$item.author,  
    7790    $item.tdata+$imessage) ?> 
    7891 <?cs elif:item.type == #4 ?><!-- Reopened ticket --> 
    7992  <?cs call:tlitem(item.href, 'newticket', 
    80     'Ticket <em>#'+$item.idata+'</em> reopened by '+$item.author, '') ?> 
     93    'Ticket <em>#'+$item.idata+'</em>'+$component+' reopened by '+$item.author, '') ?> 
    8194 <?cs elif:item.type == #5 ?><!-- Wiki change --> 
    8295  <?cs call:tlitem(item.href, 'wiki', 
    8396    '<em>'+$item.tdata+'</em> edited by '+$item.author, item.message) ?>