diff -r 211783aa20d5 -r 58e2a02e35b4 app/soc/templates/modules/ghop/task/public.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/templates/modules/ghop/task/public.html Fri Aug 28 13:14:16 2009 +0200 @@ -0,0 +1,202 @@ +{% 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 %} +{% load ghop_comments_helpers %} + +{% block scripts %} +{{ block.super }} + + +{% endblock %} + +{% block header_title %} +{% if account %} + +{% endif %} +Title: {{ entity.title }} + +{% if edit_link %} +(Edit this task) +{% else %}{% if suggest_link %} +(Edit this task) +{% endif %}{% endif %} + +{% endblock %} + +{% block body %} + +{% block task-show %} +{% if header_msg %} +

+

+

+{% endif %} + +
+ {% readonly_date_field_as_table_row "Last Modified on" entity.modified_on %} + by {{ entity.modified_by.name }} +
+ +

+ + {% readonly_safe_field_as_table_row entity.fields.description.label entity.description %} + {% readonly_field_as_table_row "Difficulty" difficulty_str %} + {% readonly_field_as_table_row "Task Type Tags" task_type_str %} + {% readonly_field_as_table_row entity.fields.time_to_complete.label time_to_complete %} + {% readonly_field_as_table_row "Mentor(s)" mentors_str %} + {% readonly_date_field_as_table_row entity.fields.deadline.label entity.deadline %} +
+

+
+{% endblock task-show %} + +{% if comment_disabled %} +

Comments are disabled

+{% else %} +{% block comment-form %} +

+{% if signin_comment_msg %} +

{{ signin_comment_msg|safe }}

+{% else %} +
+ + {% block form_table %} + {% as_table comment_form %} + {% endblock %} +
+ + + + + +
 
+ +
+
+{% endif %} +

+

+
+{% endblock comment-form %} +{% endif %} + +{% block list-work-submissions %} +{% if work_submissions %} +

Work Submission:

+{% for work_submission in work_submissions %} + {% as_ghop_task_ws work_submission %} +{% endfor %} +

+
+{% endif %} +{% endblock list-work-submissions %} +{% block list-comments %} +{% if comments %} +

Comments and Actions:

+{% for comment in comments %} + {% as_ghop_task_comment comment %} +{% endfor %} +{% endif %} +{% endblock list-comments %} + +{% endblock %} +