app/soc/templates/soc/student_project/public.html
author Mario Ferraro <fadinlight@gmail.com>
Tue, 25 Aug 2009 16:15:07 +0100
changeset 2801 0ee67cc9bd20
parent 2280 157f6b8de010
permissions -rw-r--r--
Renamed all JS files affected by former commit. And also changed templates accordingly.

{% 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 %}
{% load forms_helpers %}

{% block scripts %}
{{ block.super }}
{% if entity.feed_url %}
  <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  <script type="text/javascript" src="/soc/content/js/blog-090825.js"></script>
  <script type="text/javascript" >
  google.load("feeds", "1");

  function initialize() {
    var blog = new BlogPreview(document.getElementById("blog"));
    blog.show("{{ entity.feed_url }}", 3);
  }
  google.setOnLoadCallback(initialize);
  </script>
{% endif %}
{% endblock %}

{% block header_title %}
{{ page_name }} {{ entity.title }} for {{ entity.scope.name }}
{% endblock %}

{% block body %}
<p>
 <table>
  {% readonly_field_as_table_row "Student Name" entity.student.name %}
  {% readonly_field_as_table_row "Mentor Name" entity.mentor.name %}
  {% if additional_mentors %}
    {% readonly_field_as_table_row "Co-Mentors" additional_mentors %}
  {% endif %}
  {% readonly_field_as_table_row entity.fields.title.label entity.title %}
  {% readonly_field_as_table_row entity.fields.abstract.label entity.abstract %}
  {% readonly_safe_field_as_table_row entity.fields.public_info.label entity.public_info %}
  {% readonly_url_field_as_table_row entity.fields.additional_info.label entity.additional_info %}
 </table>
</p>
{% if entity.feed_url %}
  <div id="blog"></div>
{% endif %}
{% endblock %}