This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
labelprint/views/layout.erb
T
randy 0f7c18141b
deploy / deploy (push) Successful in 9s
Serve Bootstrap, MDI and Dropzone locally, self-contained 502 page
The print server has to work without internet. The stylesheets, scripts
and icon fonts came from jsdelivr and unpkg, offline the pages had no
styles, icons or drag and drop. They are now in public/vendor, the same
versions. The 502 page of nginx has its styles and the icon inline, as
the app's files are not there while it is down. The proxied brother_ql_web
pages get the MDI stylesheet for the navbar's printer icon, which was
missing there.
2026-11-01 18:11:59 +01:00

40 lines
1.8 KiB
ERB

<!doctype html>
<html lang="en">
<head>
<title>Print server</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAD9/f0AAAAAAOzs7ADl5eUA/Pz8ACsZBgD+/v4AAwMDAPv7+wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEWZmZmZmIxERZmZmZmZmERFmZmZmZmYREWZmZoZmZhERZmYUVmZmERFmYREWZmYREWYRERFmZhERZhYREXZmERFmZmYRZmYREWZmZhFmZhERZmZmERFmERFmZmYHEWYREWZmZmZmZhERZmZmZmZmERFmZmZmZmYREWZmZmZmZhHAAwAAwAMAAMADAADAAwAAwAMAAMADAADAAwAAwAMAAMADAADAAwAAwAMAAMADAADAAwAAwAMAAMADAADAAwAA" rel="icon" type="image/x-icon" />
<link href="/vendor/bootstrap-5.3.8/bootstrap.min.css" rel="stylesheet">
<link href="/vendor/mdi-7.4.47/css/materialdesignicons.min.css" rel="stylesheet">
<link href="/vendor/dropzone-6.0.0-beta.1/dropzone.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%= erb :_navbar, layout: false %>
<main class="container-fluid px-4">
<div class="row">
<% if @alert_success then %>
<div class="alert alert-success"><%=@alert_success%></div>
<% end %>
<% if @alert_danger then %>
<div class="alert alert-danger"><%=@alert_danger%></div>
<% end %>
<% if @alert_warning then %>
<div class="alert alert-warning"><%=@alert_warning%></div>
<% end %>
<%= yield %>
</div>
</main>
<script src="/vendor/bootstrap-5.3.8/bootstrap.bundle.min.js"></script>
<script src="/vendor/dropzone-6.0.0-beta.1/dropzone-min.js"></script>
<script>
Dropzone.options.UploadForm = {
paramFile: "file",
accept: function(file, done) {
done ();
}
};
</script>
</body>
</html>