Skip to content

Commit d21e6b8

Browse files
authored
Merge pull request pterodactyl#267 from hammerdawn/ThemeFixes
Theme Changes
2 parents 5f1bfcf + 921c7b1 commit d21e6b8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/Models/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ public function getConfigurationAsJson($pretty = false)
132132
'listen' => $this->daemonListen,
133133
'ssl' => [
134134
'enabled' => $this->scheme === 'https',
135-
'certificate' => '/etc/letsencrypt/live/localhost/fullchain.pem',
136-
'key' => '/etc/letsencrypt/live/localhost/privkey.pem',
135+
'certificate' => '/etc/letsencrypt/live/' . $this->fqdn . '/fullchain.pem',
136+
'key' => '/etc/letsencrypt/live/' . $this->fqdn . '/privkey.pem',
137137
],
138138
],
139139
'docker' => [

resources/themes/pterodactyl/layouts/master.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@
5858
<ul class="nav navbar-nav">
5959
<li class="dropdown user-menu">
6060
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
61-
<img src="https://www.gravatar.com/avatar/{{ md5(Auth::user()->email) }}?s=160" class="user-image" alt="User Image">
61+
<img src="https://www.gravatar.com/avatar/{{ md5(strtolower(Auth::user()->email)) }}?s=160" class="user-image" alt="User Image">
6262
<span class="hidden-xs">{{ Auth::user()->name_first }} {{ Auth::user()->name_last }}</span> <span class="caret"></span>
6363
</a>
6464
<ul class="dropdown-menu" role="menu">
65-
<li><a href="{{ route('admin.index') }}">@lang('strings.admin_control')</a></li>
65+
@if(Auth::user()->isRootAdmin())
66+
<li><a href="{{ route('admin.index') }}">@lang('strings.admin_control')</a></li>
67+
@endif
6668
<li><a href="{{ route('auth.logout') }}">@lang('strings.sign_out')</a></li>
6769
</ul>
6870
{{-- <ul class="dropdown-menu">

resources/views/admin/nodes/view.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505
type: 'success',
506506
title: 'Token created.',
507507
text: 'Your token will expire at ' + data.expires_at + '<br /><br />' +
508-
'<p>To auto-configure your node run<br /><small><pre>npm run configure -- --panel-url '+window.location.protocol+'//{{ config('app.url') }} --token '+data.token+'</pre></small></p>',
508+
'<p>To auto-configure your node run<br /><small><pre>npm run configure -- --panel-url {{ config('app.url') }} --token '+data.token+'</pre></small></p>',
509509
html: true
510510
})
511511
})

0 commit comments

Comments
 (0)