<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <b>{{user.login}}</b> осматривает картинку... <a href="/">На главную</a>
    <hr>
    <img src="/images?type=full&filename={{image.filename}}" alt="{{image.filename}}" style="max-width: 100%">
    <hr>
    <a href="/images?type=thumb&filename={{image.filename}}">Миниатюра</a>
    <hr>
    <form action="/image/{{image.id}}" method="post">
        <input type="text" name="description" value="{{image.description}}">
        <br>
        Опубликовано?
        <input type="checkbox" name="published" value="1" {{image.published ? 'checked' : ''}}>
        <br>
        <input type="submit" value="Сохранить">
    </form>
    <a href="/image/{{image.id}}/delete">Удалить</a>
</body>
</html>