mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: allow for multiple source URLs to be entered and viewed
This commit is contained in:
@ -60,9 +60,8 @@
|
||||
|
||||
<% if (ctx.canEditPostSource) { %>
|
||||
<section class='post-source'>
|
||||
<%= ctx.makeTextInput({
|
||||
<%= ctx.makeTextarea({
|
||||
text: 'Source',
|
||||
name: 'source',
|
||||
value: ctx.post.source,
|
||||
}) %>
|
||||
</section>
|
||||
|
@ -42,9 +42,10 @@
|
||||
|
||||
<% if (ctx.post.source) { %>
|
||||
<section class='source'>
|
||||
Source: <a href='<%- ctx.post.source %>' title='<%- ctx.post.source %>'>
|
||||
<%- ctx.post.prettyPrintSource() %>
|
||||
</a>
|
||||
Source: <% for (let i = 0; i < ctx.post.sourceSplit.length; i++) { %>
|
||||
<% if (i != 0) { %>·<% } %>
|
||||
<a href='<%- ctx.post.sourceSplit[i] %>' title='<%- ctx.post.sourceSplit[i] %>'><%- ctx.extractRootDomain(ctx.post.sourceSplit[i]) %></a>
|
||||
<% } %>
|
||||
</section>
|
||||
<% } %>
|
||||
|
||||
|
Reference in New Issue
Block a user