parent
9261f24d25
commit
7f46b650dc
|
@ -59,20 +59,20 @@
|
||||||
$returnTo = PHPCI_URL . 'settings/github-callback';
|
$returnTo = PHPCI_URL . 'settings/github-callback';
|
||||||
$githubUri = 'https://github.com/login/oauth/authorize?client_id='.$id.'&scope=repo&redirect_uri=' . $returnTo;
|
$githubUri = 'https://github.com/login/oauth/authorize?client_id='.$id.'&scope=repo&redirect_uri=' . $returnTo;
|
||||||
?>
|
?>
|
||||||
<?php if (!empty($id) && empty($settings['phpci']['github']['token'])): ?>
|
<?php if (!empty($id)): ?>
|
||||||
<p class="alert alert-warning clearfix">
|
<?php if (empty($githubUser['name']) || empty($settings['phpci']['github']['token'])): ?>
|
||||||
<?php Lang::out('github_sign_in', $githubUri); ?>
|
<p class="alert alert-warning clearfix">
|
||||||
</p>
|
<?php Lang::out('github_sign_in', $githubUri); ?>
|
||||||
<?php endif; ?>
|
</p>
|
||||||
|
<?php else: ?>
|
||||||
|
<p class="alert alert-success">
|
||||||
|
<?php Lang::out('github_phpci_linked'); ?>
|
||||||
|
|
||||||
<?php if (!empty($id) && !empty($settings['phpci']['github']['token'])): ?>
|
<strong>
|
||||||
<p class="alert alert-success">
|
<a href="<?php echo $githubUser['html_url']; ?>"><?php echo $githubUser['name']; ?></a>
|
||||||
<?php Lang::out('github_phpci_linked'); ?>
|
</strong>
|
||||||
|
</p>
|
||||||
<strong>
|
<?php endif; ?>
|
||||||
<a href="<?php echo $githubUser['html_url']; ?>"><?php echo $githubUser['name']; ?></a>
|
|
||||||
</strong>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue