3
1

show.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <div class="page-header">
  2. <h2><?= t("Summary") ?></h2>
  3. </div>
  4. <ul class="panel">
  5.   <li><strong><?= $project["is_active"] ? t("This project is open") : t("This project is closed") ?></strong></li>
  6.   <?php if ($project["owner_id"] > 0): ?>
  7.    <li><?= t('Project owner: ') ?><strong><?= $this->text->e($project['owner_name'] ?: $project['owner_username']) ?></strong></li>
  8.   <?php endif ?>
  9.   <?php if ($project["is_private"]): ?>
  10.    <li><i class="fa fa-lock"></i> <?= t("This project is personal") ?></li>
  11.   <?php endif ?>
  12.   <?php if ($project['is_public']): ?>
  13.   <li><?= $this->url->icon("share-alt", t("Public link"), "BoardViewController", "readonly", array("token" => $project["token"]), false, "", "", true) ?></li>
  14.   <li><?= $this->url->icon("rss-square", t("RSS feed"), "FeedController", "project", array("token" => $project["token"]), false, "", "", true) ?></li>
  15.   <li><?= $this->url->icon("calendar", t("iCal feed"), "ICalendarController", "project", array("token" => $project["token"])) ?></li>
  16.   <?php else: ?>
  17.   <li><?= t("Public access disabled") ?></li>
  18.   <?php endif ?>
  19.   <?php if ($project["last_modified"]): ?>
  20.   <li><?= t("Modified:")." ".$this->dt->datetime($project["last_modified"]) ?></li>
  21.   <?php endif ?>
  22.   <?php if ($project["start_date"]): ?>
  23.   <li><?= t("Start date: ").$this->dt->date($project["start_date"]) ?></li>
  24.   <?php endif ?>
  25.   <?php if ($project["end_date"]): ?>
  26.   <li><?= t("End date: ").$this->dt->date($project["end_date"]) ?></li>
  27.   <?php endif ?>
  28.   <?php if ($project["per_swimlane_task_limits"]): ?>
  29.   <li><?= t("Column task limits are applied to each swimlane individually") ?></li>
  30.   <?php else: ?>
  31.   <li><?= t("Column task limits are applied across swimlanes") ?></li>
  32.   <?php endif ?>
  33.   <li><?= t("Task limit: ") ?><?= $project["task_limit"] ? $project["task_limit"] : "infinite" ?></li>
  34. </ul>
  35. <?php if (! empty($project["description"])): ?>
  36. <div class="page-header">
  37.   <h2><?= t("Description") ?></h2>
  38. </div>
  39. <?php if (isset($values) && isset($errors)): ?>
  40. <?= $this->hook->render("template:project:view:form", array("values" => $values, "errors" => $errors)) ?>
  41. <?php endif ?>
  42. <article class="markdown">
  43.   <?= $this->text->markdown($project["description"]) ?>
  44. </article>
  45. <?php endif ?>
  46. <div class="page-header">
  47.   <h2><?= t("Columns") ?></h2>
  48. </div>
  49. <?php if (empty($columns)): ?>
  50.   <p class="alert alert-error"><?= t("Your board doesn't have any columns!") ?></p>
  51. <?php else: ?>
  52. <table class="table-striped table-scrolling">
  53. <thead>
  54. <tr>
  55.   <th class="column-40"><?= t("Column") ?></th>
  56.   <th class="column-10"><?= t("Task limit") ?></th>
  57.   <th class="column-20"><?= t("Visible on dashboard") ?></th>
  58.   <th class="column-15"><?= t("Open tasks") ?></th>
  59.   <th class="column-15"><?= t("Closed tasks") ?></th>
  60. </tr>
  61. </thead>
  62. <tbody>
  63. <?php foreach ($columns as $column): ?>
  64.   <tr data-column-id="<?= $column["id"] ?>">
  65. <td>
  66.   <?= $this->text->e($column["title"]) ?>
  67.   <?php if (! empty($column["description"])): ?>
  68.       <?= $this->app->tooltipMarkdown($column["description"]) ?>
  69.   <?php endif ?>
  70. </td>
  71. <td>
  72.   <?= $column["task_limit"] ?: "infinite" ?>
  73. </td>
  74. <td>
  75.   <?= $column["hide_in_dashboard"] == 0 ? t("Yes") : t("No") ?>
  76. </td>
  77. <td>
  78.   <?= $column["nb_open_tasks"] ?>
  79. </td>
  80. <td>
  81.   <?= $column["nb_closed_tasks"] ?>
  82. </td>
  83.   </tr>
  84. <?php endforeach ?>
  85. </tbody>
  86. </table>
  87. <?php endif ?>