blob: b57b8de6f23c69bcd8469b69794ce935f4643c0d [file] [log] [blame]
{% 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 %}
{% if student_apply_block or mentor_apply_block%}
<div id="apply-students" class="block block-students">
<img src="/soc/content/{{ app_version }}/images/gsoc/students-apply-now.jpg" height="107" width="429" alt="" id="block-apply-students-image" />
{% if student_apply_block %}
<h3 id="title-section-apply-students">Students: Apply!</h3>
<p id="block-apply-students-text-action" class="action">
{% if student_profile_link %}
<a href="{{ student_profile_link }}">Register</a>
</p>
<p id="block-apply-students-text-small" class="small">with a Google Account to get started.</p>
{% endif %}
{% if submit_proposal_link %}
<a href="{{ submit_proposal_link }}">Submit proposal</a>
</p>
<p id="block-apply-students-text-small" class="small">to {{ organization.name }}.</p>
{% endif %}
{% if mentor_profile_link %}
<strong><a href="{{ mentor_profile_link }}">Or register as a mentor</a></strong>
{% endif %}
{% else %}
{% if mentor_profile_link %}
<h3 id="title-section-apply-mentors">Mentors: Apply!</h3>
<p id="block-apply-mentors-text-action" class="action">
<a href="{{ mentor_profile_link }}">Register</a>
</p>
<p id="block-apply-students-text-small" class="small">with a Google Account to get started.</p>
{% endif %}
{% endif %}
{% if mentor_apply_block %}
<h3 id="title-section-apply-mentors">Mentors: Apply!</h3>
<p id="block-apply-mentors-text-action" class="action">
{% if mentor_connect_link %}
<a href="{{ mentor_connect_link }}">Start a Connection</a>
{% endif %}
{% if role %}
<p>You are already {{ role }} for this organization</p>
{% endif %}
</p>
{% if mentor_connect_link %}
<p id="block-apply-mentors-text-small" class="small">to become mentor for {{ organization.name }}.</p>
{% endif %}
{% endif %}
</div>
{% endif %}