Skip to content
Snippets Groups Projects
Commit 47c514bd authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

readd hint if an empty key is setup

parent a637829a
No related branches found
No related tags found
2 merge requests!2246Translated using Weblate (German),!2244Resolve "Rework Startpage"
...@@ -35,7 +35,16 @@ ...@@ -35,7 +35,16 @@
@if(Request::filled('key')) @if(Request::filled('key'))
<input type="hidden" name="key" value="{{ Request::input('key', '') }}" form="searchForm"> <input type="hidden" name="key" value="{{ Request::input('key', '') }}" form="searchForm">
@endif @endif
@if(app(\App\Models\Authorization\Authorization::class)->availableTokens >= 0 && !app(\App\Models\Authorization\Authorization::class)->canDoAuthenticatedSearch(false))
<div id="startpage-quicklinks">
<a class="metager-key" href="{{ app(\App\Models\Authorization\Authorization::class)->getAdfreeLink() }}">
<img src="/img/svg-icons/key-empty.svg" alt="Key Icon" />
<span>
@lang("index.key.tooltip.empty")
</span>
</a>
</div>
@endif
</div> </div>
<div id="tiles-container"> <div id="tiles-container">
<div id="tiles"> <div id="tiles">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment