Rename /labels route to /repository
deploy / deploy (push) Successful in 9s

This commit is contained in:
randy committed 2026-09-15 22:29:10 +02:00
1 parent 61d190ed91
commit 7ea03e5bc5
6 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
<a class="nav-link <%= 'active' if request.path == '/epson' %>" href="/epson">Receipts</a>
</li>
<li class="nav-item">
<a class="nav-link border-start <%= 'active' if request.path.start_with?('/labels') %>" href="/labels">Labels</a>
<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') %>
+1 -1
View File
@@ -51,4 +51,4 @@ GS V 0x00 # Full cut</code></pre>
</div>
</form>
<p class="mt-4"><a href="/labels">See saved receipts &rarr;</a></p>
<p class="mt-4"><a href="/repository">See saved receipts &rarr;</a></p>
+2 -2
View File
@@ -6,7 +6,7 @@
<span class="badge bg-info text-dark">ESC/POS &middot; Epson</span>
<% end %>
<form action="/labels/<%= @label['id'] %>" method="POST" class="mt-3">
<form action="/repository/<%= @label['id'] %>" method="POST" class="mt-3">
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input name="name" class="form-control" type="text" id="name" value="<%= @label['name'] %>" />
@@ -16,5 +16,5 @@
<textarea name="content" class="form-control" id="content" rows="12" style="font-family: monospace;"><%= @label['content'] %></textarea>
</div>
<button class="btn btn-secondary" type="submit">Save</button>
<a href="/labels" class="btn btn-outline-secondary">Cancel</a>
<a href="/repository" class="btn btn-outline-secondary">Cancel</a>
</form>
+4 -4
View File
@@ -16,11 +16,11 @@
<strong class="ms-2"><%= label['name'] %></strong>
</div>
<div class="d-flex gap-2">
<form action="/labels/<%= label['id'] %>/print" method="POST">
<form action="/repository/<%= label['id'] %>/print" method="POST">
<button class="btn btn-sm btn-secondary" type="submit">Print</button>
</form>
<a href="/labels/<%= label['id'] %>/edit" class="btn btn-sm btn-outline-secondary">Edit</a>
<form action="/labels/<%= label['id'] %>/delete" method="POST">
<a href="/repository/<%= label['id'] %>/edit" class="btn btn-sm btn-outline-secondary">Edit</a>
<form action="/repository/<%= label['id'] %>/delete" method="POST">
<button class="btn btn-sm btn-outline-danger" type="submit">Delete</button>
</form>
</div>
@@ -28,7 +28,7 @@
<div class="mt-2">
<% if label['type'] == 'zpl' %>
<img src="/labels/<%= label['id'] %>/preview.png" alt="preview" style="max-height: 150px;" onerror="this.remove()" />
<img src="/repository/<%= label['id'] %>/preview.png" alt="preview" style="max-height: 150px;" onerror="this.remove()" />
<% else %>
<pre class="bg-light p-2 mb-0" style="max-height: 150px; overflow: auto;"><%= label['content'] %></pre>
<% end %>
+1 -1
View File
@@ -33,4 +33,4 @@
</div>
</form>
<p class="mt-4"><a href="/labels">See saved labels &rarr;</a></p>
<p class="mt-4"><a href="/repository">See saved labels &rarr;</a></p>