{#- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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. -#} {# Each macro is wrapped with an 'if' clause so that a custom theme may extend this file and override individual macros http://stackoverflow.com/questions/26582731/redefining-imported-jinja-macros #} {% if not header %} {%- macro header(login_url, logout_url) %} {%- endmacro %} {% endif %} {% if not all_content_wrapper %} {% macro all_content_wrapper(login_url, logout_url) -%} {{- caller(**kwargs) -}} {%- endmacro %} {% endif %} {% if not footer %} {%- macro footer(year, path_to_static='') %} {%- endmacro %} {% endif %} {% if not custom_js %} {%- macro custom_js(path_to_static) %} {%- endmacro %} {% endif %} {% if not custom_tracking_js %} {%- macro custom_tracking_js(accounts, user, project) %} {# This should be overridden in your custom theme (e.g., sftheme) to implement custom tracking code. #} var _gaq = _gaq || []; function _add_tracking(prefix, tracking_id) { _gaq.push( [prefix+'._setAccount', tracking_id], [prefix+'._trackPageview'] ); } {%- for account in accounts %} _add_tracking('acct{{ loop.index }}', '{{account}}'); {%- endfor %} {% if project and project.neighborhood.features['google_analytics'] -%} {% if project.neighborhood.tracking_id -%} _add_tracking('nbhd', '{{project.neighborhood.tracking_id}}'); {%- endif %} {% if project.tracking_id -%} _add_tracking('proj', '{{project.tracking_id}}'); {%- endif %} {%- endif %} (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' === document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); {%- endmacro %} {% endif %} {% if not extra_header %} {%- macro extra_header(path_to_static) %} {%- endmacro %} {% endif %} {% if not breadcrumbs %} {%- macro breadcrumbs(project, app) %} {%- endmacro %} {% endif %} {% if not project_header_right %} {%- macro project_header_right(project, app) %} {% if project.neighborhood.icon %}
Return to {{project.neighborhood.name}}

{{project.neighborhood.name}}

{% if project.neighborhood.project_list_url %} {% endif %}
{% endif %} {%- endmacro %} {% endif %} {% if not login_overlay %} {%- macro login_overlay() %} {% do g.register_js('js/jquery.lightbox_me.js') %} {% do g.register_forge_js('js/jquery-ui.min.js') %} {% do g.register_js('js/login_overlay.js') %}

Login Required

{%- endmacro %} {% endif %} {% if not site_notification %} {%- macro site_notification() %} {% set note = g.theme.get_site_notification() %} {% if note %}
{{note.content|safe}} Close
{% endif %} {%- endmacro %} {% endif %} {% if not placeholder_project_icon %} {%- macro placeholder_project_icon() %}
{%- endmacro %} {% endif %}