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

{% extends "soc/base.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}

{% block page_title %}
	{{ entity.title }}
{% endblock %}

{% block header_title %}
	{{ entity.title }}
	{% if edit_redirect %}
		<a href={{ edit_redirect }}> (Edit this {{entity_type}})</a>
	{% endif %}
{% endblock %}

{% block body %}
	<div id="created">Last modified on {{ entity.modified }} by {{ entity.modified_by.name }}</div>
	<div id="content">{{ entity.content|safe }}</div>
{% endblock %}