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>
24 <div class="col-md-6">
26 <p><?= $this->e($repo->description) ?></p>
29 <div class="col-md-6">
30 <div class="row text-center">
31 <div class="col-md-4">
32 <span title="Number of watchers" class="mega-octicon octicon-eye" aria-hidden="true"></span>
34 <span class="label label-success">
35 <?= $repo->watchers_count ?> Watchers
38 <div class="col-md-4">
39 <span title="Number of stars" class="mega-octicon octicon-star" aria-hidden="true"></span>
41 <span class="label label-primary">
42 <?= $repo->stargazers_count ?> Stars
45 <div class="col-md-4">
46 <span title="Number of forks" class="mega-octicon octicon-repo-forked" aria-hidden="true"></span>
48 <span class="label label-default">
49 <?= $repo->forks_count ?> Forks
57 <div class="col-md-6">
59 <div class="col-md-8">
60 <p>Has a <code>config*.m4</code> file?</p>
62 <div class="col-md-4 text-center">
64 <?php if (!empty($repo->config_m4)) : ?>
65 <span class="label label-info">YES</span>
67 <span class="label label-warning">NO</span>
74 <div class="col-md-8">
75 <p>Has a <code>package*.xml</code> file?</p>
77 <div class="col-md-4 text-center">
79 <?php if (!empty($repo->package_xml)) : ?>
80 <span class="label label-info">YES</span>
82 <span class="label label-warning">NO</span>
89 <div class="col-md-8">
90 <p>Has a <code>pharext_package.php</code> file?</p>
92 <div class="col-md-4 text-center">
94 <?php if (!empty($repo->pharext_package_php)) : ?>
95 <span class="label label-info">YES</span>
97 <span class="label label-warning">NO</span>
104 <div class="col-md-8">
105 <p>Is the <code>pharext</code> hook enabled?</p>
107 <div class="col-md-4 text-center">
108 <?php if ($this->check($repo)) : ?>
109 <span class="label label-info">YES</span>
111 <span class="label label-warning">NO</span>
117 <div class="col-md-6">
119 <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/" . ($this->check($repo) ? "upd" : "add")) ?>">
120 <div class="col-md-12">
121 <div class="checkbox">
122 <label for="hook-tag">
123 <input id="hook-tag" type="checkbox" name="tag" value="1" <?= ($hook = $this->check($repo)) && in_array("create", $hook->events) ? "checked":"" ?>>
124 Automatically create a release when I push a tag.
127 <div class="checkbox">
128 <label for="hook-release">
129 <input id="hook-release" type="checkbox" name="release" value="1" <?= ($hook = $this->check($repo)) && in_array("release", $hook->events) ? "checked":"" ?>>
130 Automatically upload a PHARext package as an asset to a release.
134 <?php if ($this->check($repo)) : ?>
135 <div class="col-md-6">
136 <button type="submit" class="btn btn-lg btn-block btn-info">
137 <span class="glyphicon glyphicon-ok-circle"></span>
142 <div class="col-md-12">
143 <button type="submit" class="btn btn-lg btn-block btn-success">
144 <span class="octicon octicon-plug"></span>
150 <!-- column wrapping! -->
151 <?php if ($this->check($repo)) : ?>
152 <div class="col-md-6">
153 <form method="post" action="<?= $baseUrl->mod("./github/repo/". $repo->full_name ."/hook/del") ?>">
154 <button class="btn btn-lg btn-block btn-danger">
155 <span class="glyphicon glyphicon-remove-circle"></span>
165 <h2>Release History</h2>
166 <?php if (empty($repo->tags) || !count((array) $repo->tags)) : ?>
167 <div class="alert alert-warning" role="alert">
168 <p class="text-danger">No releases or tags found.</p>
172 <?php foreach ($repo->tags as $name => $v) : ?>
173 <div class="panel panel-<?= empty($v->release) ? "info": "primary" ?>">
174 <div class="panel-heading">
175 <h3 class="panel-title">
176 <?php if (empty($v->release)) : ?>
177 <?= $this->e($v->tag->name) ?>
178 <span class="label label-default pull-right">Tag</span>
180 <?= $this->e($v->release->name ?: $v->tag->name) ?>
181 <span class="label label-info pull-right">Release</span>
185 <div class="panel-body">
187 <div class="col-md-8">
188 <?php if (!empty($v->release)) : ?>
189 <p><?= $this->md($v->release->body) ?></p>
191 <ul class="list-inline">
193 <span class="octicon octicon-tag" title="Tag"></span>
194 <span class="label label-default"><?= $this->e($v->tag->name) ?></span>
197 <?php if (!empty($v->release)) : ?>
199 <span class="octicon octicon-git-branch" title="Branch"></span>
200 <span class="label label-default"><?= $this->e($v->release->target_commitish) ?></span>
203 <span class="octicon octicon-clock" title="Date"></span>
204 <span class="label label-default">
205 <time datetime="<?= $v->release->published_at ?>">
206 <?= $this->utc($v->release->published_at)->format("Y-m-d H:i T") ?>
212 <div class="col-md-4">
213 <?php if (!empty($v->release->assets)) : ?>
214 <ul class="list-inline pull-right">
215 <?php foreach ($v->release->assets as $asset) : ?>
216 <?php if (fnmatch("*.ext.phar", $asset->name)) : ?>
218 <a class="btn btn-success" href="<?= $this->e($asset->browser_download_url) ?>">
219 <span class="octicon octicon-package"></span>
220 <?= $this->e($asset->name) ?>