src/cm/templates/site/layout/base_text.html
author Simon Descarpentries <sid@sopinspace.com>
Mon, 21 Oct 2013 16:37:07 +0200
changeset 553 bf26fb47a14c
parent 541 4fd07dd80b25
permissions -rw-r--r--
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout. So the automated scrolling operations in c_sync.js must be adjustable to the right part to scroll. Also, if a comment have to be shown outside of the current viewport, we scroll the correct part to that viewport and then set the comment top Y offset to juste what it needs to avoid the "Add comment" button after scrolling operation. If not in Safari mobile, we add an offset here to avoid comment to display under the "Add comment" button.

{% extends "site/layout/base.html" %}
{% load com %}
{% load i18n %}

{% block title %}
{{ text.get_title }}
{% endblock %}

{% block head_base %}
<script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>
<link href="{% url text-feed text.key %}" title="{{ text.get_title }}" type="application/rss+xml" rel="alternate" />
{% endblock %}

{% block breadcrumbs %}
<span id="header_left">
<a class="breadcrumbs" href="{% url index %}" title="Home">&laquo; {% blocktrans %}back to workspace{% endblocktrans %}</a>
</span>
{% endblock %}

{% block content %}

{%  include "site/macros/text_actions.html" %}
<h1 class="main_title_text">
  {% if CONF.f_get_logo_url %}<div><a title="{% blocktrans %}back to workspace{% endblocktrans %}" alt="logo" class="title" href="{% url index %}"><img src="{{ CONF.f_get_logo_url }}" alt="logo" /></a></div>{% endif %}
  <a class="title" href="{% url text-view text.key %}">{{ text.get_title }}</a>
</h1>

{% include "site/macros/text_meta.html" %}   
{% include "site/macros/text_tabs.html" %}   

{% block main %}
{% endblock %}

{% endblock %}