blob: 0bf081ba45511b6a52f29c9b105f3f6b86c63656 [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 accepted_orgs_link %}
<div id="participants" class="block block-participants">
<h4 id="title-section-participating-orgs">Mentoring Organizations</h4>
<div id="block-participants-content" class="block-content">
{% for org in participating_orgs %}
<a href="{{ org.link }}"><img src="{{ org.logo }}" class="particpating-orgs" alt="{{ org.name }}" title="{{ org.name }}" /></a>
{% endfor %}
</div>
<div id="block-participants-readmore" class="readmore">
<a href="{{ accepted_orgs_link }}">See all {{ nr_accepted_orgs }} mentoring organizations</a>
</div>
</div>
{% endif %}
{% if program_active %}
{% if org_signup %}
<div id="apply-orgs" class="block block-orgs">
<img src="/soc/content/{{ app_version }}/images/gsoc/students-apply-now.jpg" height="107" width="429" alt="" id="block-apply-image" class="img-responsive img-centered" />
<h3 id="title-section-apply">Organizations apply now!</h3>
{% if not login_link %}
{% if has_profile %}
<p id="block-apply-text-action" class="action">
<a href="{{ org_apply_link }}">Begin registration</a>
</p>
<strong>
{% if is_admin %}
<a href="{{ managed_orgs_link }}">Or edit your existing application from your dashboard</a>
{% endif %}
</strong>
{% else %}
<p id="block-apply-text-action" class="action">
In order to register your organization, you need to create <a href="{{ org_member_profile_link }}">a profile</a> first.
</p>
{% endif %}
{% else %}
<p id="block-apply-text-action" class="action">
<a href="{{ login_link }}">Log in</a>
</p>
with your Google account to begin registration.
{% endif %}
</div>
{% elif after_org_signup %}
<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-image" />
{% if before_student_signup %}
{% include 'modules/gsoc/homepage/_active_org_member_signup.html' %}
{% if not has_profile %}<hr>{% endif %}
{% include 'modules/gsoc/homepage/_before_student_signup.html' %}
{% elif active_student_signup %}
{% include 'modules/gsoc/homepage/_active_student_signup.html' %}
{% if not has_profile or no_role %}<hr>{% endif %}
{% include 'modules/gsoc/homepage/_active_org_member_signup.html' %}
{% else %}
{% include 'modules/gsoc/homepage/_after_student_signup.html' %}
{% if not has_profile %}<hr>{% endif %}
{% include 'modules/gsoc/homepage/_active_org_member_signup.html' %}
{% endif %}
</div>
{% endif %}
{% endif %}