mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Tactical commit: I'm fairly sure this is close to good.
This commit is contained in:
parent
ad5e41c23a
commit
40f4f13667
5 changed files with 88 additions and 69 deletions
|
|
@ -21,10 +21,10 @@
|
|||
<th>{{entry.base-name}}</th>
|
||||
<td>{{entry.modified}}</td>
|
||||
<td>
|
||||
{% if entry.is-image %}  {% else %} [{{entry.name|capitalize}}](uploads/{{entry.base-name}}) {% endif %}
|
||||
{% if entry.is-image %}  {% else %} [{{entry.name|capitalize}}](uploads/{{entry.resource}}) {% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if entry.is-image %} <img src="uploads/{{entry.base-name}}" alt="{{entry.name|capitalize}}"/> {% else %} <a href="uploads/{{entry.base-name}}">link</a> {% endif %}
|
||||
{% if entry.is-image %} <img src="{{entry.resource}}" alt="{{entry.name|capitalize}}"/> {% else %} <a href="{{entry.resource}}">link</a> {% endif %}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,22 +1,25 @@
|
|||
{% extends "templates/base.html" %}
|
||||
{% block content %}
|
||||
<div id="content" class="auth">
|
||||
{% if uploaded %}
|
||||
{% if is-image %}
|
||||
<p>
|
||||
<img id="uploaded-image" alt="Uploaded image" src="uploads/{{uploaded}}"/>
|
||||
{% if has-uploaded %}
|
||||
{% for upload in uploaded %}
|
||||
{{upload.filename}}
|
||||
{% if upload.is-image %)
|
||||
<p>
|
||||
<img id="uploaded-image" alt="Uploaded image" src="{{upload.resource}}"/>
|
||||
|
||||
{% i18n file-upload-link-text %}:
|
||||
{% i18n file-upload-link-text %}:
|
||||
|
||||
<code></code>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
{% i18n file-upload-link-text %}:
|
||||
<code></code>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
{% i18n file-upload-link-text %}:
|
||||
|
||||
<code>[Uploaded file](uploads/{{uploaded}})</code>
|
||||
</p>
|
||||
{% endif %}
|
||||
<code>[{{upload.filename}}]({{upload.resource}})</code>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<form action="{{servlet-context}}/upload" enctype="multipart/form-data" method="POST">
|
||||
{% csrf-field %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue