1. Ronny Pfannschmidt
  2. moin-2.0

Commits

Thomas Waldmann  committed e5b51d4

global history: render the bookmark in same way as the day headers

  • Participants
  • Parent commits a4ec2c6
  • Branches pytest2

Comments (0)

Files changed (1)

File MoinMoin/templates/global_history.html

View file
  • Ignore whitespace
 </div>
 <h1>{{ _("Global History") }}</h1>
 <div class='moin-clr'></div>
-    {% if user.valid  %}
-    <div id="moin-set-bookmark">
-        {% if bookmark_time %}
-            {{ _("Bookmark (currently set to %(bookmark)s). ", bookmark=bookmark_time|datetimeformat) }} 
-            <a href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
-        {% else %}
-            {{ _("Bookmark (not set). ") }}<a href="{{ url_for('frontend.bookmark', time=current_timestamp) }}">{{ _("Set bookmark") }}</a> 
-        {% endif %}
-    </div>
-    {% endif %}
     <div id="moin-global-history">
         {% for rev_date, revs in history %}
            {% set  latest_rev = revs[0] %}
                 </div>
             </div>
         {% endfor %}
+        {% if user.valid and bookmark_time %}
+        <div class="moin-history-container"> 
+            <div class="moin-history-container-header">
+                <span>
+                    <h2>{{ bookmark_time|datetimeformat }}</h2>
+                    <a href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
+               </span>
+            </div>
+        </div>
+        {% endif %}
     </div>
-   {% if bookmark_time and not offset %}
-       <div id="moin-bookmark-reached">{{ _("Bookmark reached") }}</div>
-   {% endif %}
 {% endblock %}