app/soc/templates/soc/document/public.html
author Lennard de Rijk <ljvderijk@gmail.com>
Thu, 04 Jun 2009 20:21:15 +0200
changeset 2382 3a6302dd346b
parent 584 ba8a624506e5
permissions -rw-r--r--
Added link to edit the Document on the Document's public page. This link will only show if the user is allowed to edit the document. Fixes issue 271. Update issue 271 Owner: ljvderijk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
238
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
{% comment %}
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     8
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    13
limitations under the License.
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    14
{% endcomment %}
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    15
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    16
{% block page_title %}
2382
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    17
	{{ entity.title }}
238
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    18
{% endblock %}
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    19
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    20
{% block header_title %}
2382
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    21
	{{ entity.title }}
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    22
	{% if edit_redirect %}
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    23
		<a href={{ edit_redirect }}> (Edit this {{entity_type}})</a>
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    24
	{% endif %}
238
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    25
{% endblock %}
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    26
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    27
{% block body %}
2382
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    28
	<div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>
3a6302dd346b Added link to edit the Document on the Document's public page.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 584
diff changeset
    29
	<div id="content">{{ entity.content|safe }}</div>
238
d6b533f99a45 A very simplistic Document viewer.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    30
{% endblock %}