src/cm/templates/site/non_authenticated_index.html
author Yves-Marie Haussonne <ymh.work+github@gmail.com>
Fri, 09 May 2014 18:35:26 +0200
changeset 656 a84519031134
parent 551 723261fb23fb
permissions -rw-r--r--
add link to "privacy policy" in the header test

{% extends "site/layout/base_workspace.html" %}
{% load com %}
{% load i18n %}
{% load local_perms %}
{% load activity %}

{% block head %}
{% endblock %}

{% block title %}{% blocktrans %}Home{% endblocktrans %}{% endblock %}

{% block content %}

<h1 class="main_title">
{% 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 }}" /></a></div>
{% endif %}

{% if CONF.workspace_name %}
<a title="{% blocktrans %}back to workspace{% endblocktrans %}" class="title" href="{% url index %}">{{ CONF.workspace_name }}</a>
{% endif %}
</h1>

{% if public_texts %}
<table class="home-table">
<tr>
<td width="70%" style="vertical-align:text-top;">
<h2>{% blocktrans count public_texts|length as counter %}One public text{% plural %}{{ counter }} public texts{% endblocktrans %}</h2>
<ul>
{% for text in public_texts %}
<li style="padding-bottom:10px;"><a title="{{ text.title }}" href="{% url text-view text.key %}">{{ text.title }}</a>
<br/>
{% include "site/macros/text_meta.html" %}   
</li>
{% endfor %}
</ul>
</td>
<td width="29%">
{% include "site/login_form.html" %}
</td>
</tr>
</table>
{% else %}
{% include "site/login_form.html" %}
{% endif %}


{% endblock %}