Discord link via CDN now.

This commit is contained in:
Dane Everitt 2017-02-16 15:01:26 -05:00
parent 4e66ba078d
commit d4e1bc6cc0
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 7 additions and 1 deletions

View file

@ -52,6 +52,7 @@ class VersionService
return (object) [
'panel' => 'error',
'daemon' => 'error',
'discord' => 'https://pterodactyl.io',
];
}
});
@ -67,6 +68,11 @@ class VersionService
return self::$versions->daemon;
}
public static function getDiscord()
{
return self::$versions->discord;
}
public function getCurrentPanel()
{
return config('app.version');

View file

@ -41,7 +41,7 @@
</div>
<div class="row">
<div class="col-xs-4 text-center">
<a href="https://discord.gg/QRDZvVm"><button class="btn btn-sm btn-warning" style="width:100%;"><i class="fa fa-fw fa-support"></i> Get Help <small>(via Discord)</small></button></a>
<a href="{{ Version::getDiscord() }}"><button class="btn btn-sm btn-warning" style="width:100%;"><i class="fa fa-fw fa-support"></i> Get Help <small>(via Discord)</small></button></a>
</div>
<div class="col-xs-4 text-center">
<a href="https://docs.pterodactyl.io"><button class="btn btn-sm btn-default" style="width:100%;"><i class="fa fa-fw fa-link"></i> Documentation</button></a>