Labelburg instead of Labelhaus: the project was renamed again
deploy / deploy (push) Successful in 7s

The proxy and links are below /labelburg, /labelhaus and /brother are
redirected there.
This commit is contained in:
randy committed 2026-11-09 20:24:11 +01:00
1 parent b1cfe03fa1
commit 320679cedd
4 files changed
+10 -10

No files matched your search

+7 -7
View File
@@ -499,20 +499,20 @@ post '/repository/:id/delete' do
redirect '/repository'
end
get '/labelhaus' do
redirect '/labelhaus/'
get '/labelburg' do
redirect '/labelburg/'
end
%w[get post put delete].each do |verb|
send(verb, '/labelhaus/*') do
proxy_to_brother('/labelhaus', '/' + params[:splat].first)
send(verb, '/labelburg/*') do
proxy_to_brother('/labelburg', '/' + params[:splat].first)
end
end
# Its old address, e.g. in bookmarks
# Its old addresses, e.g. in bookmarks
%w[get post put delete].each do |verb|
send(verb, %r{/brother(/.*)?}) do
path = '/labelhaus' + (params[:captures].first || '/')
send(verb, %r{/(?:brother|labelhaus)(/.*)?}) do
path = '/labelburg' + (params[:captures].first || '/')
redirect(request.query_string.empty? ? path : "#{path}?#{request.query_string}", 308)
end
end
+1 -1
View File
@@ -12,7 +12,7 @@
<nav class="lp-bar">
<a class="lp-brand" href="/"><i class="mdi mdi-printer"></i> Print server</a>
<a href="/">Home</a>
<a class="sep active" href="/labelhaus">Labelhaus</a>
<a class="sep active" href="/labelburg">Labelburg</a>
<a href="/upload">Shipping labels</a>
<a href="/epson">Receipts</a>
<a class="sep" href="/repository">Labels</a>
+1 -1
View File
@@ -10,7 +10,7 @@
<a class="nav-link <%= 'active' if request.path == '/' %>" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link border-start <%= 'active' if request.path.start_with?('/labelhaus') %>" href="/labelhaus">Labelhaus</a>
<a class="nav-link border-start <%= 'active' if request.path.start_with?('/labelburg') %>" href="/labelburg">Labelburg</a>
</li>
<li class="nav-item">
<a class="nav-link <%= 'active' if request.path == '/upload' %>" href="/upload">Shipping labels</a>
+1 -1
View File
@@ -5,7 +5,7 @@
<ul>
<li>Datamax-ONeil E4204B Mark III (ZPL, 100x150) -- <a href="/upload">Shipping labels</a></li>
<li>Epson TM-T20II (ESC/POS) -- <a href="/epson">Receipts</a></li>
<li>Brother QL-560, QL-700, QL-1100, PT-E550W, PUQU Q00, Reekon P1L, Niimbot D110, Epson TM-T20II -- <a href="/labelhaus">Labelhaus</a></li>
<li>Brother QL-560, QL-700, QL-1100, PT-E550W, PUQU Q00, Reekon P1L, Niimbot D110, Epson TM-T20II -- <a href="/labelburg">Labelburg</a></li>
</ul>
</div>
</div>