Skip to content

Commit 7d721fc

Browse files
committedSep 5, 2024
Show "URLs" menu button when app is not protected by authentication [6.1.2]
1 parent 206645d commit 7d721fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎ShortenThis.bsdesign

29 Bytes
Binary file not shown.

‎templates/control-panel.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ <h1 class="fw-bold mb-4" style="font-family: 'Roboto';">{{ app_name }}</h1>
125125
<div class="container" style="background: #434343;border-radius: 1em;padding: 1em;">
126126
<div class="row">
127127
<div class="col">
128-
<p class="fw-lighter" style="margin-bottom: 0;"><span style="color: rgb(255, 255, 255);">Hello,</span> <strong>{{ username }}</strong><span style="color: rgb(255, 255, 255);">!</span></p>{% if not disable_authentication %}<a href="/control-panel?section=urls" style="color: rgba(13,110,253,0);">
128+
<p class="fw-lighter" style="margin-bottom: 0;"><span style="color: rgb(255, 255, 255);">Hello,</span> <strong>{{ username }}</strong><span style="color: rgb(255, 255, 255);">!</span></p><a href="/control-panel?section=urls" style="color: rgba(13,110,253,0);">
129129
<p style="color: rgb(255,255,255);margin-bottom: 0;">URLs</p>
130-
</a><a href="/control-panel?section=users" style="color: rgba(13,110,253,0);">
130+
</a>{% if not disable_authentication %}<a href="/control-panel?section=users" style="color: rgba(13,110,253,0);">
131131
<p style="color: rgb(255,255,255);margin-bottom: 0;">Users</p>
132132
</a><a href="/control-panel/action?action=download_backup" style="color: rgba(13,110,253,0);">
133133
<p style="color: rgb(255,255,255);margin-bottom: 0;">Download backup</p>
@@ -178,9 +178,9 @@ <h1 class="fw-bold mb-4" style="font-family: 'Roboto';">{{ app_name }}</h1>
178178
<div class="container" style="background: #434343;border-radius: 1em;padding: 1em;">
179179
<div class="row">
180180
<div class="col">
181-
<p class="fw-lighter" style="margin-bottom: 0;"><span style="color: rgb(255, 255, 255);">Hello,</span> <strong>{{ username }}</strong><span style="color: rgb(255, 255, 255);">!</span></p>{% if not disable_authentication %}<a href="/control-panel?section=urls" style="color: rgba(13,110,253,0);">
181+
<p class="fw-lighter" style="margin-bottom: 0;"><span style="color: rgb(255, 255, 255);">Hello,</span> <strong>{{ username }}</strong><span style="color: rgb(255, 255, 255);">!</span></p><a href="/control-panel?section=urls" style="color: rgba(13,110,253,0);">
182182
<p style="color: rgb(255,255,255);margin-bottom: 0;">URLs</p>
183-
</a><a href="/control-panel?section=settings" style="color: rgba(13,110,253,0);">
183+
</a>{% if not disable_authentication %}<a href="/control-panel?section=settings" style="color: rgba(13,110,253,0);">
184184
<p style="color: rgb(255,255,255);margin-bottom: 0;">Settings</p>
185185
</a><a href="/control-panel/action?action=download_backup" style="color: rgba(13,110,253,0);">
186186
<p style="color: rgb(255,255,255);margin-bottom: 0;">Download backup</p>
@@ -257,9 +257,9 @@ <h1 class="fw-bold mb-4" style="font-family: 'Roboto';">{{ app_name }}</h1>
257257
<div class="container" style="background: #434343;border-radius: 1em;padding: 1em;">
258258
<div class="row">
259259
<div class="col">
260-
<p class="fw-lighter" style="margin-bottom: 0;"><span style="color: rgb(255, 255, 255);">Hello,</span> <strong>{{ username }}</strong><span style="color: rgb(255, 255, 255);">!</span></p>{% if not disable_authentication %}<a href="/control-panel?section=urls" style="color: rgba(13,110,253,0);">
260+
<p class="fw-lighter" style="margin-bottom: 0;"><span style="color: rgb(255, 255, 255);">Hello,</span> <strong>{{ username }}</strong><span style="color: rgb(255, 255, 255);">!</span></p><a href="/control-panel?section=urls" style="color: rgba(13,110,253,0);">
261261
<p style="color: rgb(255,255,255);margin-bottom: 0;">URLs</p>
262-
</a><a href="/control-panel?section=settings" style="color: rgba(13,110,253,0);">
262+
</a>{% if not disable_authentication %}<a href="/control-panel?section=settings" style="color: rgba(13,110,253,0);">
263263
<p style="color: rgb(255,255,255);margin-bottom: 0;">Settings</p>
264264
</a><a href="/control-panel?section=users" style="color: rgba(13,110,253,0);">
265265
<p style="color: rgb(255,255,255);margin-bottom: 0;">Users</p>

0 commit comments

Comments
 (0)
Please sign in to comment.