{% macro project_link_button(address, name) %} {# Optional button in jumbtron for project link #} {%- if address -%} {{ name }} {%- endif -%} {% endmacro %} {% macro dev_link_button(address, icon) %} {# Optional button in sidebar for developer link #} {%- if address -%} {%- endif -%} {% endmacro %} {% extends "base.html" %} {% block body %} {% set project_links = project_github or project_bitbucket or project_gitlab or project_sourceforge or project_website %} {% if summary or project_links or project_download %}
{{ summary }} {% if project_links %}

Find us on…

{{ project_link_button(project_github, "GitHub") }} {{ project_link_button(project_gitlab, "Gitlab") }} {{ project_link_button(project_bitbucket, "Bitbucket") }} {{ project_link_button(project_sourceforge, "Sourceforge") }} {{ project_link_button(project_website, "The Web") }} {% endif %} {% if project_download %} Download the Source {% endif %}

{% endif %}
{% set col = "col-md-8" if author else "col-md-12"%}

{{ project }}

{{ proj_docs }}
{% if author %}
{% if author_pic %} Developer picture {% endif %}

Developer Info

{{ author }}

{{ author_description }}

{% if github or bitbucket or facebook or twitter or google_plus or linkedin or email or website %}
{% if email %} {% endif %} {{ dev_link_button(website, "fa-globe") }} {{ dev_link_button(github, "fa-github") }} {{ dev_link_button(gitlab, "fa-gitlab") }} {{ dev_link_button(bitbucket, "fa-bitbucket") }} {{ dev_link_button(facebook, "fa-facebook") }} {{ dev_link_button(google_plus, "fa-google-plus") }} {{ dev_link_button(linkedin, "fa-linkedin") }} {{ dev_link_button(twitter, "fa-twitter") }}
{% endif %}
{% endif %}
{% set count=0 %} {% if incl_src %}{% set count = count + 1 %}{% endif %} {% if project.modules %}{% set count = count + 1 %}{% endif %} {% if project.procedures %}{% set count = count + 1 %}{% endif %} {% if project.types %}{% set count = count + 1 %}{% endif %} {% set max_length = max_frontpage_items|int %} {% if count and max_length %} {% set width = (12/count)|int %}

{% if incl_src %}

Source Files

    {%- for src in (project.allfiles|sort(attribute='name'))[:max_length] -%}
  • {{ src | relurl(page_url) }}
  • {%- endfor -%}
{% endif %} {% if project.modules %}

Modules

    {%- for mod in (project.modules|sort(attribute='name'))[:max_length] -%}
  • {{ mod | relurl(page_url) }}
  • {%- endfor -%}
{% endif %} {% if project.procedures %}

Procedures

    {%- for proc in (project.procedures|sort(attribute='name'))[:max_length] -%}
  • {{ proc | relurl(page_url) }}
  • {%- endfor -%}
{% endif %} {% if project.types %}

Derived Types

    {%- for dtype in (project.types|sort(attribute='name'))[:max_length] -%}
  • {{ dtype | relurl(page_url) }}
  • {%- endfor -%}
{% endif %}
{% endif %} {% endblock body %}