app/soc/templates/soc/presence/public.html
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 11 Apr 2009 22:57:23 +0000
changeset 2159 a1f1eaaf458b
parent 1587 7a61eff82b9d
permissions -rw-r--r--
Use key.id_or_name in templates rather than key.name This is to allow for usage of auto-id's. Patch by: Sverre Rabbelier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
921
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
     1
{% extends "soc/base.html" %}
81
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     2
{% comment %}
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     6
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     8
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
    13
limitations under the License.
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
921
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    15
{% load forms_helpers %}
81
b03b1ec17727 Moved soc/site/home.html to soc/site/home/public.html and updated default template for public() in home.py
Pawel Solyga <Pawel.Solyga@gmail.com>
parents:
diff changeset
    16
921
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    17
{% block header_title %}
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    18
{{ page_name }} for {{ entity.link_id }}
141
e120c24b89e2 Added Melange front page edit view where you can change title, content, feed url. Created SiteSettings and Document models and some logic for them. Added isFeedURLValid function in soc/logic/feed.py. Created some functions for handling datastore updates of different kinds of Models (soc/logic/model.py). Fixed some typos and too long lines of code.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 81
diff changeset
    19
{% endblock %}
921
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    20
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    21
{% block body %}
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    22
<p>
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    23
 <table>
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    24
  {% readonly_field_as_table_row entity.fields.link_id.label entity.link_id %}
1109
a83d8c5e6650 Edited the access check for show in site settings.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 921
diff changeset
    25
  {% if entity.home %}
2159
a1f1eaaf458b Use key.id_or_name in templates rather than key.name
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1587
diff changeset
    26
  {% readonly_field_as_table_row entity.fields.home.label entity.home.key.id_or_name %}
1109
a83d8c5e6650 Edited the access check for show in site settings.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 921
diff changeset
    27
  {% endif %}
1587
7a61eff82b9d Make use of readonly_url_field where appropriate
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1109
diff changeset
    28
  {% readonly_url_field_as_table_row entity.fields.feed_url.label entity.feed_url %}
1109
a83d8c5e6650 Edited the access check for show in site settings.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 921
diff changeset
    29
  {% if entity.tos %}
2159
a1f1eaaf458b Use key.id_or_name in templates rather than key.name
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1587
diff changeset
    30
    {% readonly_field_as_table_row entity.fields.tos.label entity.tos.key.id_or_name %}
1109
a83d8c5e6650 Edited the access check for show in site settings.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 921
diff changeset
    31
  {% endif %}
921
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    32
  <!-- TODO(pawel.solyga) make this generic -->
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    33
 </table>
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    34
</p>
e499cc2641f6 Create a new 'home' view for Presences
Sverre Rabbelier <srabbelier@gmail.com>
parents: 903
diff changeset
    35
{% endblock %}