summaryrefslogtreecommitdiff
path: root/chimere/templates/chimere/blocks/welcome.html
blob: 7cd7159bce56c1cf2762eea15908cf76b9c9912a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% load i18n %}
{% load sanitize %}
<button class='ui-widget ui-button ui-state-default' id='welcome_button' onclick=''>
    {% trans "Welcome message"%}</button>
<script type='text/javascript'>
    function display_welcome(){$("#welcome").dialog({title:"{% trans "News"%}"});}
    $("#welcome_button").bind('click', display_welcome);
    {% if display %}display_welcome();{%endif%}
</script>
<div id='welcome' style='display:none'>
    <div id='detail_content'>
        {% include "chimere/blocks/welcome_message.html" %}
        <div class='news'>
            {% if news_lst %}
                {% for news in news_lst %}
                    <div class='info'>
                        {% if news.title %}
                            <h3>{{news.title}} &ndash; {{ news.date }}</h3>
                            <p>{{news.content|safe}}</p>
                       {% else %}
                            <h3>{{news.name}} &ndash; {{ news.start_date }}{% if news.end_date %} - {{ news.end_date }}{% endif %}</h3>
                            {% for property in news.getProperties %}
                                <p id='{{news.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}</p>
                            {% endfor %}
                            <p class='marker_link'><a href='{{ news.get_absolute_url }}'>{% trans "See it on the map"%}</a></p>
                        {% endif %}
                    </div>
                {%endfor%}
            {% endif %}
            <div class='info'>
            </div>
        </div>
    </div>
</div>