Private pastes, systemd unit file, design updates.
It is now possible to create private pastes, just check approriate checkbox. Added systemd unit file. Don't forget to fix it for your needs! Updated design for pastes viewing, now paste information shows in table. Improves mobile experience at least :).
This commit is contained in:
1
assets/css/bulma-tooltip-1.0.4.min.css
vendored
Normal file
1
assets/css/bulma-tooltip-1.0.4.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Fast Paste Bin</title>
|
||||
<link rel="stylesheet" href="/static/css/bulma-0.7.0.min.css">
|
||||
<link rel="stylesheet" href="/static/css/bulma-tooltip-1.0.4.min.css">
|
||||
<script defer src="/static/js/fontawesome-5.0.7.js"></script>
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
</head>
|
||||
@@ -72,6 +73,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field tooltip is-tooltip-bottom is-tooltip-multiline" data-tooltip="Should this paste be accessible only with special URL and not shown in pastes list?">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="paste-private" id="paste-private"> Private paste with unique URL?
|
||||
</label>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="paste-language">Language:</label>
|
||||
<div class="control">
|
||||
|
@@ -32,16 +32,31 @@
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<section class="section paste-header">
|
||||
<div class="columns content">
|
||||
<div class="column is-10">
|
||||
<h2>#{pasteID}, titled '{pasteTitle}'</h2>
|
||||
<p>Pasted on
|
||||
<strong>{pasteDate}</strong>, language: {pasteLanguage}</p>
|
||||
</div>
|
||||
<div class="column is-2">
|
||||
<a class="button" href="/paste/{pasteID}/raw">View raw</a>
|
||||
</div>
|
||||
<section class="section">
|
||||
<div class="content">
|
||||
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Title</th>
|
||||
<th>Language</th>
|
||||
<th>Pasted on</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{pasteID}</td>
|
||||
<td>{pasteTitle}</td>
|
||||
<td>{pasteLanguage}</td>
|
||||
<td>{pasteDate}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<a class="button" href="/paste/{pasteID}/raw">View raw</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<div class="paste-data">
|
||||
|
Reference in New Issue
Block a user