{% set LAYOUT = 'full-width' %} {% extends "base.html" %} {% block extra_js %} {% endblock %} {% set ICONS = { 'github.com': 'fa-github-alt' , SITEURL: 'fa-bullhorn' , 'type_of_search=mlists': 'fa-envelope-o' , 'gmane.org': 'fa-envelope-o' , 'bitbucket.org': 'fa-bitbucket' , 'youtube.com': 'fa-play' , 'bugs.launchpad.net': 'fa-bug' , 'trac.wordpress.org': 'fa-bug' , 'sourceforge.net/apps/trac': 'fa-bug' , 'bugs.debian.org': 'fa-bug' , 'bugs.kde.org': 'fa-bug' , 'mantis': 'fa-bug' , 'ticket=on': 'fa-bug' , 'ohloh.net': 'fa-bar-chart-o' , 'stackoverflow.com': 'fa-stack-overflow' , 'stackexchange.com': 'fa-stack-exchange' , 'twitter.com': 'fa-twitter' } %} {% set LABELS = { 'fa-github-alt': 'Git repository' , 'fa-bullhorn': 'Announcement on this blog' , 'fa-envelope-o': 'Mailing-list participation' , 'fa-bitbucket': 'Mercurial repository' , 'fa-play': 'Play video' , 'fa-bug': 'Reported bugs' , 'fa-bar-chart-o': 'Contribution statistics' } %} {% macro render_project(all_tags, project) %}
{{ project.desc }}
{% endif %} {% if project.roles or project.tools %}{% for role in project.roles %} {{ role }} {% endfor %} {% for tag in all_tags|sort(reverse=True, attribute='articles') %} {% if tag.name in project.tools %} {{ m.render_tag(tag) }} {% endif %} {% endfor %} {% set tag_names = [] %} {% for tag in all_tags %} {% if tag_names.append(tag.name) %}{% endif %} {% endfor %} {% for tool in project.tools %} {% if tool not in tag_names %} {{ tool }} {% endif %} {% endfor %}
{% endif %} {% if project.links %}{% for link in project.links %} {% set link_icon = ['fa-home'] %} {% for (domain, icon) in ICONS.items() %} {% if link.find(domain) != -1 %} {% if link_icon.append(icon) %}{% endif %} {% endif %} {% endfor %} {% set link_icon = link_icon[-1] %} {% endfor %}
{% endif %}