diff --git a/PHPCI/Controller/SettingsController.php b/PHPCI/Controller/SettingsController.php index af3cf727..3589cd5e 100644 --- a/PHPCI/Controller/SettingsController.php +++ b/PHPCI/Controller/SettingsController.php @@ -41,7 +41,6 @@ class SettingsController extends Controller $this->view->settings = $this->settings; $emailSettings = array(); - if (isset($this->settings['phpci']['email_settings'])) { $emailSettings = $this->settings['phpci']['email_settings']; } diff --git a/PHPCI/View/Settings/index.phtml b/PHPCI/View/Settings/index.phtml index 322206c4..9724053a 100644 --- a/PHPCI/View/Settings/index.phtml +++ b/PHPCI/View/Settings/index.phtml @@ -28,76 +28,73 @@

-
-
-
-

Github Application

+
+

Github Application

+
- +
+ - -

- Before you can start using Github, you need to sign in and grant PHPCI access to your account. -

- + $returnTo = PHPCI_URL . 'settings/github-callback'; + $githubUri = 'https://github.com/login/oauth/authorize?client_id='.$id.'&scope=repo&redirect_uri=' . $returnTo; + ?> + +

+ Before you can start using Github, you need to sign in and grant PHPCI access to your account. +

+ - -

- PHPCI is successfully linked to Github account - - - -

- -
+ +

+ PHPCI is successfully linked to Github account + + + +

+ +
-
- -
+
+ +
-
-
-
-

Where to find these...

-
+
+
+
+

Where to find these...

+
-
-

If you own the application you would like to use, you can find this information within your - applications settings area.

+
+

If you own the application you would like to use, you can find this information within your + applications settings area.

+
+
-
-
-
-

Email Settings

+
+
+

Email Settings

+
- -

- Before PHPCI can send build status emails, you need to configure your SMTP settings below. -

- +
+ +

+ Before PHPCI can send build status emails, you need to configure your SMTP settings below. +

+ -
+ -
- -
- -
- -
\ No newline at end of file