Labelhaus instead of Brother: brother_ql_web was renamed
deploy / deploy (push) Successful in 6s

The proxy and links are below /labelhaus, the old /brother addresses are
redirected there. The home page names all printers it prints on.
This commit is contained in:
randy committed 2026-11-09 20:14:28 +01:00
1 parent 06bfa6f537
commit b1cfe03fa1
4 files changed
+15 -7

No files matched your search

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