Brother: proxy one brother_ql_web for all QL printers, drop printer switcher
deploy / deploy (push) Successful in 10s

This commit is contained in:
randy committed 2026-10-30 23:52:36 +01:00
1 parent 66300c5278
commit 563772197d
4 files changed
+10 -37

No files matched your search

-8
View File
@@ -22,14 +22,6 @@
<a class="nav-link border-start <%= 'active' if request.path.start_with?('/repository') %>" href="/repository">Labels</a>
</li>
</ul>
<% if request.path.start_with?('/brother') %>
<span class="navbar-text me-2">Printer:</span>
<div class="d-flex gap-1">
<% BROTHER_PRINTERS.each do |key, info| %>
<a href="/brother/<%= key %>/" class="btn btn-sm <%= request.path.start_with?("/brother/#{key}/") ? 'btn-primary' : 'btn-outline-secondary' %>"><%= info[:label].sub('Brother ', '') %></a>
<% end %>
</div>
<% end %>
</div>
</div>
</nav>
-8
View File
@@ -1,8 +0,0 @@
<h1>Brother printers</h1>
<p>Choose a printer to open its label designer through this server.</p>
<div class="list-group" style="max-width: 400px;">
<% @printers.each do |key, info| %>
<a href="/brother/<%= key %>/" class="btn btn-outline-primary w-100 text-start mb-2"><%= info[:label] %></a>
<% end %>
</div>