|
|
@@ -0,0 +1,71 @@
|
|
|
+<div class="header-wrap">
|
|
|
+ {% if not page.isDeleted() %}
|
|
|
+ <header id="page-header">
|
|
|
+ <p class="stopper"><a href="#" data-affix-disable="#page-header"><i class="fa fa-chevron-up"></i></a></p>
|
|
|
+
|
|
|
+ <div class="flex-title-line">
|
|
|
+ <div>
|
|
|
+ <h1 class="title flex-item-title" id="revision-path"></h1>
|
|
|
+ <div id="revision-url" class="url-line"></div>
|
|
|
+ </div>
|
|
|
+ {% if page %}
|
|
|
+ <div class="flex-item-action">
|
|
|
+ <span id="bookmark-button">
|
|
|
+ <p class="bookmark-link">
|
|
|
+ <i class="fa fa-star-o"></i>
|
|
|
+ </p>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="flex-item-action visible-xs visible-sm">
|
|
|
+ <button
|
|
|
+ data-csrftoken="{{ csrf() }}"
|
|
|
+ data-liked="{% if page.isLiked(user) %}1{% else %}0{% endif %}"
|
|
|
+ class="like-button btn btn-default btn-sm {% if page.isLiked(user) %}active{% endif %}"
|
|
|
+ ><i class="fa fa-thumbs-o-up"></i></button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <ul class="authors visible-md visible-lg">
|
|
|
+ <li>
|
|
|
+ <div class="creator-picture">
|
|
|
+ <a href="{{ userPageRoot(page.creator) }}">
|
|
|
+ <img src="{{ page.creator|default(author)|picture }}" class="picture picture-rounded"><br>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <div>Created by <a href="{{ userPageRoot(page.creator) }}">{{ page.creator.name|default(author.name) }}</a></div>
|
|
|
+ <div class="text-muted">{{ page.createdAt|datetz('Y/m/d H:i:s') }}</div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <div class="creator-picture">
|
|
|
+ <a href="{{ userPageRoot(page.lastUpdateUser) }}">
|
|
|
+ <img src="{{ page.lastUpdateUser|default(author)|picture }}" class="picture picture-rounded"><br>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <div>Updated by <a href="{{ userPageRoot(page.lastUpdateUser) }}">{{ page.lastUpdateUser.name|default(author.name) }}</a></div>
|
|
|
+ <div class="text-muted">{{ page.updatedAt|datetz('Y/m/d H:i:s') }}</div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </header>
|
|
|
+ {% else %}
|
|
|
+ {# trash/* #}
|
|
|
+ <header id="page-header">
|
|
|
+ <div class="flex-title-line">
|
|
|
+ <h1 class="title flex-item-title"></h1>
|
|
|
+ <div class="flex-item-action">
|
|
|
+ <span id="bookmark-button">
|
|
|
+ <p class="bookmark-link">
|
|
|
+ <i class="fa fa-star-o"></i>
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </header>
|
|
|
+ {% endif %}
|
|
|
+</div>
|