1 <?php $this->layout("layout") ?>
3 <div class="page-header">
5 <?php if (isset($repo)) : ?>
6 <?php if ($repo->fork) : ?>
7 <span title="fork" class="mega-octicon octicon-repo-forked" aria-hidden="true"></span>
8 <?php elseif ($repo->private) : ?>
9 <span title="fork" class="mega-octicon octicon-key" aria-hidden="true"></span>
11 <span title="repo" class="mega-octicon octicon-repo" aria-hidden="true"></span>
13 <?= $this->e($repo->name) ?>
14 <?php elseif (isset($name)) : ?>
15 <?= $this->e($name) ?>
19 - <small>Github</small>
23 <?php if (isset($exception)) : ?>
24 <?= $this->fetch("alert") ?>
25 <?php elseif (isset($repo)) : ?>
28 <div class="col-md-6">
30 <p><?= $this->e($repo->description) ?></p>
33 <div class="col-md-6">
34 <div class="row text-center">
35 <div class="col-md-4">
36 <span title="Number of watchers" class="mega-octicon octicon-eye" aria-hidden="true"></span>
38 <span class="label label-success">
39 <?= $repo->watchers_count ?> Watchers
42 <div class="col-md-4">
43 <span title="Number of stars" class="mega-octicon octicon-star" aria-hidden="true"></span>
45 <span class="label label-primary">
46 <?= $repo->stargazers_count ?> Stars
49 <div class="col-md-4">
50 <span title="Number of forks" class="mega-octicon octicon-repo-forked" aria-hidden="true"></span>
52 <span class="label label-default">
53 <?= $repo->forks_count ?> Forks
61 <div class="col-md-6">
63 <div class="col-md-8">
64 <p>Has a <code>config*.m4</code> file?</p>
66 <div class="col-md-4 text-center">
68 <?php if (!empty($repo->config_m4)) : ?>
69 <span class="label label-info">YES</span>
71 <span class="label label-warning">NO</span>
78 <div class="col-md-8">
79 <p>Has a <code>package*.xml</code> file?</p>
81 <div class="col-md-4 text-center">
83 <?php if (!empty($repo->package_xml)) : ?>
84 <span class="label label-info">YES</span>
86 <span class="label label-warning">NO</span>
93 <div class="col-md-8">
94 <p>Has a <code>pharext_package.php</code> file?</p>
96 <div class="col-md-4 text-center">
98 <?php if (!empty($repo->pharext_package_php)) : ?>
99 <span class="label label-info">YES</span>
101 <span class="label label-warning">NO</span>
108 <div class="col-md-8">
109 <p>Is the <code>pharext</code> hook enabled?</p>
111 <div class="col-md-4 text-center">
112 <?php if ($this->check($repo)) : ?>
113 <span class="label label-info">YES</span>
115 <span class="label label-warning">NO</span>
121 <div class="col-md-6">
123 <div class="row text-center">
124 <div class="col-md-6">
125 <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/add") ?>">
126 <button type="submit" class="btn btn-lg btn-block btn-success <?= $this->check($repo) ? "disabled":"" ?>">Enable Hook</button>
129 <div class="col-md-6">
130 <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/del") ?>">
131 <button class="btn btn-lg btn-block btn-danger <?= $this->check($repo) ? "":"disabled" ?>">Disable Hook</button>
139 <h2>Release History</h2>
140 <?php if (empty($repo->tags) || !count((array) $repo->tags)) : ?>
141 <div class="alert alert-warning" role="alert">
142 <p class="text-danger">No releases or tags found.</p>
146 <?php foreach ($repo->tags as $name => $v) : ?>
147 <div class="panel panel-<?= empty($v->release) ? "info": "primary" ?>">
148 <div class="panel-heading">
149 <h3 class="panel-title">
150 <?php if (empty($v->release)) : ?>
151 <?= $this->e($v->tag->name) ?>
152 <span class="label label-default pull-right">Tag</span>
154 <?= $this->e($v->release->name) ?>
155 <span class="label label-info pull-right">Release</span>
159 <div class="panel-body">
160 <?php if (!empty($v->release)) : ?>
161 <p><?= $this->md($v->release->body) ?></p>
163 <ul class="list-inline">
165 <span class="octicon octicon-tag" title="Tag"></span>
166 <span class="label label-default"><?= $this->e($v->tag->name) ?></span>
169 <?php if (!empty($v->release)) : ?>
171 <span class="octicon octicon-git-branch" title="Branch"></span>
172 <span class="label label-default"><?= $this->e($v->release->target_commitish) ?></span>
175 <span class="octicon octicon-clock" title="Date"></span>
176 <span class="label label-default">
177 <time datetime="<?= $v->release->published_at ?>">
178 <?= $this->utc($v->release->published_at)->format("Y-m-d H:i T") ?>