\App::abort(404); } }); Route::get('contact', function () { return \view('apigenci.contact'); }); Route::get('logout', function () { \Session::flush(); return \Redirect::away('/'); }); Route::get('login', function () { return \Redirect::away(\Apigenci\Model::githubApiLoginUrl()); }); Route::post('repo/{id}/enable', function ($id) { $id = \Apigenci\Model::repoDecodeWeb($id); $data = ['id' => $id, 'repo' => \Apigenci\Model::githubRepo($id)->name, 'queued' => 0, 'enabled' => 1, 'user_id' => \Apigenci\Model::githubId()]; \Eloquent::unguard(); try { \Apigenci\Model\Repo::insert($data); } catch (\exception $ex) { // Prevent updating the PK unset($data['id']); \Apigenci\Model\Repo::find($id)->update($data); } \Apigenci\Model\Repo::queueBuild($id); \Apigenci\Model\Github::webhookRegister($id); }); Route::post('repo/{id}/disable', function ($id) { $id = \Apigenci\Model::repoDecodeWeb($id); $repo = \Apigenci\Model\Repo::find($id); \Eloquent::unguard();
.glyphicon-refresh-animate { -animation: spin .7s infinite linear; -webkit-animation: spin2 .7s infinite linear; } @-webkit-keyframes spin2 { from { -webkit-transform: rotate(0deg);} to { -webkit-transform: rotate(360deg);} } @keyframes spin { from { transform: scale(1) rotate(0deg);} to { transform: scale(1) rotate(360deg);} } </style> <?php $localRepos = \Apigenci\Model::dbUserRepos(\Apigenci\Model::githubId()); ?> @foreach($repos as $repo) <?php $encrypted = \Apigenci\Model::repoEncodeWeb($repo->id); $localRepo = \Apigenci\Model::dbRepo($repo->id, $localRepos); ?> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="repolist panel panel-default"> <div class="panel-body"> <div class="floatLeft"> <a target="_blank" href="{{ $repo->html_url }}"><img src="/images/github32px.png" /></a>