src/cm/templates/site/layout/base_workspace.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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
{% extends "site/layout/base.html" %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
{% load com %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
{% load i18n %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
{% load local_perms %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
{% block head_base %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
{% endblock %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
{% block content %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
{% get_local_perm request can_manage_workspace as can_manage_workspace %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
{% nb_texts as nb_texts %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
{% nb_users as nb_users %}
160
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    14
<h1 class="main_title">
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    15
{% if CONF.f_get_logo_url %}
541
4fd07dd80b25 Diplay workspace logo on text pages.
gibus
parents: 160
diff changeset
    16
<div><a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}"><img src="{{ CONF.f_get_logo_url }}" alt="logo" /></a></div>
160
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    17
{% endif %}
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    18
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    19
{% if CONF.workspace_name %}
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    20
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a>
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    21
{% endif %}
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    22
</h1>
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    23
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    24
{% if CONF.workspace_tagline %}
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    25
<div>
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    26
{{ CONF.workspace_tagline }}</div>
0c01050f9717 add logo in settings / fix static file settings
raph
parents: 0
diff changeset
    27
{% endif %}
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    28
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    29
<span class="metadata">
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    30
{% blocktrans count nb_texts as nb_texts %}{{ nb_texts }} text{% plural %}{{ nb_texts }} texts{% endblocktrans %}{% if can_manage_workspace %}, {% blocktrans count nb_users as nb_users %}{{ nb_users }} user{% plural %}{{ nb_users }} users{% endblocktrans %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    31
{% endif %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    32
</span>
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    33
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    34
{% include "site/macros/main_tabs.html" %}    
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    35
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    36
{% block main %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    37
{% endblock %}
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    38
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    39
{% endblock %}