~linuxgoose/bocpress

ref: 998269312d17fad056e8960a12a1a33f49aeff70 bocpress/main/templates/main/image_detail.html -rw-r--r-- 1.4 KiB
99826931Jordan Robinson update post detail page for tag query param on url 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends 'main/layout.html' %}

{% block title %}{{ image.name }}{{ request.user.username }}{% endblock %}

{% block content %}
<main>
    <h1>{{ image.name }}</h1>

    <div class="images-item-byline">
        <a class="images-item-back" href="{% url 'image_list' %}">« all assets</a>
        — Uploaded on <time datetime="{{ image.uploaded_at|date:'Y-m-d' }}">{{ image.uploaded_at|date:'F j, Y' }}</time>
        | <a href="{% url 'image_update' image.slug %}">Edit asset</a>
        | <a href="{% url 'image_delete' image.slug %}">Delete</a>
    </div>

    <p>
        Use markdown syntax to add this asset in a post as an image:
    </p>
    <code>
        ![{{ image.name }}]({{ request.scheme }}:{{ image.raw_url_absolute }})
    </code>

    <p>
        Markdown syntax for linkified image to full size version:
    </p>
    <code>
        [![{{ image.name }}]({{ request.scheme }}:{{ image.raw_url_absolute }})]({{ request.scheme }}:{{ image.raw_url_absolute }})
    </code>

    {% if used_by_posts %}
    <p>Used by posts:</p>
    <ul>
        {% for post in used_by_posts %}
        <li><a href="{% url 'post_detail' post.slug %}">{{ post.title }}</a></li>
        {% endfor %}
    </ul>
    {% endif %}
</main>

<section class="images-item">
    <img src="{% url 'image_raw' image.slug image.extension %}" alt="{{ image.name }}">
</section>
{% endblock content %}