blob: af45cbc21ea94a7b74aec912a95d3a1d0bf65f01 [file] [log] [blame]
{% 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/buttons.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/uniform.default.css" />
{% endblock stylesheets %}
{% block usermenu %}
{{ host_actions.render }}
{% endblock usermenu %}
{% block page_content %}
<div id="organization-name" class="block full home-block-1">
{% if organization.logo_url %}
<img src="{{ organization.logo_url }}" class="alignleft" alt="{{ organization.short_name }}" title ="{{ organization.short_name }}" />
{% endif %}
<h2 id="title-section-organization-name">
{{ organization.name }}
</h2>
<div id="edit-page" class="org-page-link">
{% if edit_link %}
<a href="{{ edit_link }}">Edit</a>
{% endif %}
{% if start_connection_link %}
| <a href="{{ start_connection_link }}">Start Connection</a>
{% endif %}
{% if slot_transfer_link %}
| <a href="{{ slot_transfer_link }}">Transfer slots to pool</a>
{% endif %}
</div>
</div>
<!-- begin block -->
{% if project_list %}
{{ project_list.render }}
{% endif %}
<!-- end block -->
<div id="organization-home" class="content_column_1">
<!-- begin block -->
<div id="organization-description" class="block block-organization-description">
<h4 title="title-section-organization-description">Description</h4>
<div id="block-organization-description-content" class="block-content">
<p>{{ organization.description|safe }}</p>
</div>
<div id="block-organization-description-readmore" class="org-home-readmore">
{% if organization.ideas_page %}
<a href="{{ organization.ideas_page|safe }}">Ideas page &raquo;</a>
{% else %}
No ideas page URL given
{% endif %}&nbsp;&nbsp;
<a href="{{ organization.contact.web_page|safe }}">Homepage &raquo;</a>
</div>
</div>
<!-- end block -->
<!-- begin block -->
{{ apply.render }}
<!-- end block -->
<!-- begin block -->
{% if organization.contrib_template and not students_announced %}
<div id="organization-application-template" class="block block-organization-application-template">
<h4 title="title-section-organization-application-template">Application template</h4>
<div id="block-organization-application-template-content" class="block-content">
<p>{{ organization.contrib_template|safe }}</p>
</div>
</div>
{% endif %}
<!-- end block -->
</div>
<div class="content_column_2">
<!-- begin block -->
{% if organization.tags %}
<div id="tags" class="block block-tags">
<h4 id="title-section-connect-with-us">Tags</h4>
<div id="block-tags" class="block-content">
{{ organization.tags|join:", " }}
</div>
</div>
{% endif %}
<!-- end block -->
<!-- begin block -->
{{ contact.render }}
<!-- end block -->
<!-- begin block -->
{% if organization.feed_url %}
<div id="blog-feed" class="block block-blog-feed"></div>
{% endif %}
<!-- end block -->
</div>
{% endblock page_content %}
{% block dependencies %}
[
dep.melange.list,
dep.uniform,
dep.melange.action,
null,
{% if organization.feed_url %}
dep.melange.blog,
{% endif %}
css("/soc/content/{{ app_version }}/css/gsoc/user-messages.css"),
tc(
"/soc/content/{{ app_version }}/js/templates/modules/gsoc/org_home/base.js",
{
{% if host_actions.toggle_buttons %}
host_toggle_buttons: [
{% for button in host_actions.toggle_buttons %}
{
id: "{{ button.id }}",
type: "{{ button.type }}",
post_url: "{{ button.post_url }}",
state: "{{ button.state }}",
checked_label: "{{ button.labels.checked }}",
unchecked_label: "{{ button.labels.unchecked }}"
},
{% endfor %}
],
{% endif %}
{% if organization.feed_url %}
feed_url: "{{ organization.feed_url|safe }}"
{% endif %}
}
)
]
{% endblock dependencies %}