1 <?php $this->layout("layout") ?>
3 <div class="page-header">
6 <small>Manage your pharext webhook</small>
10 <?php if (isset($exception)) : ?>
11 <?= $this->fetch("alert") ?>
12 <?php elseif (isset($repos)) : ?>
14 <table class="table table-hover">
18 <th class="text-center">Fork</th>
19 <th class="text-right">Last Pushed</th>
20 <th class="text-center">Hook</th>
24 <?php foreach ($repos as $repo) : ?>
25 <tr class="<?= $this->check($repo) ? "success" : "" ?>">
27 <a href="<?= $baseUrl->mod("./github/repo/".$repo->full_name) ?>">
28 <big class="text-primary" title="<?= $this->e($repo->description) ?>"><?= $this->e($repo->name) ?></big>
31 <small><?= $this->e($this->shorten($repo->description)) ?></small>
33 <td class="text-center"><?php if ($repo->fork) : ?>
34 <span title="fork" class="octicon octicon-repo-forked" aria-hidden="true"></span>
37 <td class="text-right"><time datetime="<?= $this->e($repo->pushed_at) ?>"><?= $this->e($this->utc($repo->pushed_at)->format("Y-m-d H:i T")) ?></time></td>
38 <td class="text-center">
39 <form class="form-inline" style="display: inline-block" method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/add") ?>">
40 <input type="hidden" name="returnback" value="1">
41 <button type="submit" class="btn btn-primary <?= $this->check($repo) ? "disabled":"" ?>">
42 <span class="glyphicon glyphicon-plus" title="Add pharext hook"></span>
45 <form class="form-inline" style="display: inline-block" method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/del") ?>">
46 <input type="hidden" name="returnback" value="1">
47 <button type="submit" class="btn btn-danger <?= $this->check($repo) ? "":"disabled" ?>">
48 <span class="glyphicon glyphicon-remove" title="Remove hook"></span>
61 $first= $this->link("first");
62 $prev = $this->link("prev");
63 $next = $this->link("next");
64 $last = $this->link("last");
66 <li class="<?= $first ?"":"disabled" ?>"><a href="?page=<?= $first ?>" title="First Page"><span class="glyphicon glyphicon-fast-backward"></span></a></li>
67 <li class="<?= $prev ?"":"disabled" ?>"><a href="?page=<?= $prev ?>" rel="prev" title="Previous Page"><span class="glyphicon glyphicon-chevron-left"></span> Previous</a></li>
68 <li class="<?= $next ?"":"disabled" ?>"><a href="?page=<?= $next ?>" rel="next" title="Next Page">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li>
69 <li class="<?= $last ?"":"disabled" ?>"><a href="?page=<?= $last ?>" title="Last Page"><span class="glyphicon glyphicon-fast-forward"></span></a></li>