| {% extends "modules/gsoc/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 stylesheets %} |
| {{ block.super }} |
| <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/tables.css" /> |
| <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/buttons.css" /> |
| <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/forms.css" /> |
| <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/uniform.default.css" /> |
| {% endblock stylesheets %} |
| |
| {% block usermenu %} |
| {% if manage_actions %}{{ manage_actions.render }}{% endif %} |
| {% endblock usermenu %} |
| |
| {% block page_content %} |
| |
| <h1 id="project-page-title"> |
| {{ title }} |
| </h1> |
| <h2 id="project-page-student-name"> |
| {{ student_name }} |
| {% if edit_url or code_samples_url %} |
| <div id="manage-links" class="project-edit-link"> |
| {% if edit_url %} |
| <a href="{{ edit_url }}">Edit project</a> |
| {% endif %} |
| {% if code_samples_url %} |
| <a href="{{ code_samples_url }}">Code samples</a> |
| {% endif %} |
| </div> |
| {% endif %} |
| </h2> |
| |
| <div class="project-short"> |
| {% if student_email %} |
| <p class="project-mentor"><strong>Email:</strong> {{ student_email }}</p> |
| {% endif %} |
| {% if mentor_only_data_visible %} |
| <p class="project-possible-mentor"><strong>Possible mentors: </strong>{{ possible_mentors|default:"None" }}</p> |
| <p class="status"><strong>Status:</strong> {{ proposal_status }}</p> |
| {% endif %} |
| |
| <p class="description"><strong>Organization:</strong> {{ org_name }}</p> |
| <p class="project-mentor"><strong>Assigned mentors:</strong> {{ mentors|default:"No mentor assigned" }}</p> |
| <p class="description"><strong>Short description:</strong> {{ abstract }}</p> |
| {% if additional_info %} |
| <p class="description"> |
| <strong>Additional info:</strong> |
| <a href="{{ additional_info }}">{{ additional_info|truncatechars:75 }}</a> |
| </p> |
| {% endif %} |
| {% if public_url %} |
| <p class="description"> |
| <strong>Public URL:</strong> |
| <a href="{{ public_url }}">{{ public_url|truncatechars:75 }}</a> |
| {% endif %} |
| </div> |
| |
| {% if content %} |
| <div class="project-long"> |
| {{ content|safe }} |
| </div> |
| {% endif %} |
| |
| {% if code_samples_list %} |
| <br> |
| {{ code_samples_list.render }} |
| {% endif %} |
| |
| {% endblock %} |
| |
| {% block dependencies %} |
| [ |
| dep.uniform, |
| dep.jqueryui.dialog, |
| dep.melange.action, |
| tc( |
| "/soc/content/{{ app_version }}/js/templates/modules/gsoc/proposal/review.js", |
| { |
| {% if manage_actions and manage_actions.toggle_buttons %} |
| manage_toggle_buttons: [ |
| {% for toggle_button in manage_actions.toggle_buttons %} |
| { |
| id: "{{ toggle_button.button_id }}", |
| type: "{{ toggle_button.button_type }}", |
| on_check_url: "{{ toggle_button.on_check_url }}", |
| on_uncheck_url: "{{ toggle_button.on_uncheck_url }}", |
| state: "{{ toggle_button.state }}", |
| checked_label: "{{ toggle_button.labels.checked }}", |
| unchecked_label: "{{ toggle_button.labels.unchecked }}" |
| }, |
| {% endfor %} |
| ], |
| {% endif %} |
| })] |
| {% endblock dependencies %} |