Esempio n. 1
0
    </tr>
  </thead>
  <tbody>
    <?php 
    foreach ($tasks as $i => $task) {
        ?>
    <tr class="<?php 
        echo fmod($i, 2) ? 'even' : 'odd';
        ?>
">
      <td><?php 
        echo link_to($task, 'backlogtask_show', $task);
        ?>
</td>
      <td class="center"><?php 
        echo format_priority($task->getPriority());
        ?>
</td>
      <td class="center"><?php 
        echo format_timestamp($task->getEstimate());
        ?>
</td>
      <td class="center">
        <?php 
        echo edit_link_to('backlogtask_edit', $task);
        ?>
        <?php 
        echo delete_link_to('backlogtask_delete', $task);
        ?>
      </td>
    </tr>
Esempio n. 2
0
    </tr>
  </thead>
  <tbody>
    <?php 
    foreach ($stories as $i => $story) {
        ?>
      <tr class="<?php 
        echo $story->countAvailableTasks() == 0 ? 'done' : '';
        ?>
">
        <td class="left"><?php 
        echo link_to($story->formatName(isset($showCompleteName) && $showCompleteName), 'story_show', $story);
        ?>
</td>
        <td class="center"><?php 
        echo format_priority($story->getPriority());
        ?>
</td>
        <td class="center">
          <span class="progressbar" id="pb<?php 
        echo $story->getId();
        ?>
">
            <?php 
        $total = $story->countTasks();
        $available = $story->countAvailableTasks();
        echo ($total - $available) / $total * 100;
        ?>
          </span>
        </td>
        <td class="center"><?php