opengraph; proper max size labels
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
minibin is a simple file and paste hosting service written in Go
|
minibin is a simple file and paste hosting service written in Go
|
||||||
|
|
||||||
|
> it's not really that simple but whatever
|
||||||
|
|
||||||
i will try my best to make it easy to customize and deploy, but this is a personal project and made using my own preferences, so you may need to change the tos/privacy policy/faq etc to fit your needs
|
i will try my best to make it easy to customize and deploy, but this is a personal project and made using my own preferences, so you may need to change the tos/privacy policy/faq etc to fit your needs
|
||||||
|
|
||||||
goals:
|
goals:
|
||||||
|
|||||||
@@ -247,3 +247,10 @@ code {
|
|||||||
background-color: var(--surface-between);
|
background-color: var(--surface-between);
|
||||||
padding-inline: 4px;
|
padding-inline: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.submit-container {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
+22
-17
@@ -13,6 +13,9 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
<meta name="description" content="simple file and paste hosting service" />
|
||||||
|
<meta property="og:title" content="minibin" />
|
||||||
|
<meta property="og:description" content="simple file and paste hosting service" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="home-page" id="home-page">
|
<body class="home-page" id="home-page">
|
||||||
@@ -26,23 +29,22 @@
|
|||||||
<label for="type-paste">paste</label>
|
<label for="type-paste">paste</label>
|
||||||
<div class="file-panel">
|
<div class="file-panel">
|
||||||
<form action="/upload?return=html" method="post" enctype="multipart/form-data">
|
<form action="/upload?return=html" method="post" enctype="multipart/form-data">
|
||||||
<div>
|
<label class="muted" for="file-expiry">expiry</label>
|
||||||
<label class="muted" for="file-expiry">expiry</label>
|
<select id="file-expiry" name="expiry">
|
||||||
<select id="file-expiry" name="expiry">
|
{{range .Expiries}}
|
||||||
{{range .Expiries}}
|
<option value="{{.Label}}">{{.Label}}</option>
|
||||||
<option value="{{.Label}}">{{.Label}}</option>
|
{{end}}
|
||||||
{{end}}
|
</select>
|
||||||
</select>
|
<label class="muted" for="file-id-length">id length</label>
|
||||||
<label class="muted" for="file-id-length">id length</label>
|
<select id="file-id-length" name="idlength">
|
||||||
<select id="file-id-length" name="idlength">
|
<option value="long">16 characters</option>
|
||||||
<option value="long">16 characters</option>
|
<option value="short">10 characters</option>
|
||||||
<option value="short">10 characters</option>
|
</select>
|
||||||
</select>
|
|
||||||
<span style="margin-left: auto;">max {{.FileMaxSize}}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<input id="upload-file" type="file" required name="file" />
|
<input id="upload-file" type="file" required name="file" />
|
||||||
<button type="submit" class="btn">upload file</button>
|
<div class="submit-container">
|
||||||
|
<button type="submit" class="btn">upload file</button>
|
||||||
|
<span class="muted">max {{.FileMaxSize}}</span>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="paste-panel">
|
<div class="paste-panel">
|
||||||
@@ -59,7 +61,10 @@
|
|||||||
<option value="short">10 characters</option>
|
<option value="short">10 characters</option>
|
||||||
</select>
|
</select>
|
||||||
<textarea id="content" name="content" rows="10" required placeholder="{{.PastePlaceholder}}"></textarea>
|
<textarea id="content" name="content" rows="10" required placeholder="{{.PastePlaceholder}}"></textarea>
|
||||||
<button type="submit" class="btn">upload paste</button>
|
<div class="submit-container">
|
||||||
|
<button type="submit" class="btn">upload paste</button>
|
||||||
|
<span class="muted">max {{.PasteMaxSize}}</span>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user