{% extends "grid/base.html" %} {% load url from future %} {% load i18n %} {% load cache %} {% load grid_tags %} {% load package_tags %} {% block head_title %}{{ grid.title }}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block body %}
{% cache 2592000 detail_template_cache grid.pk %}{{ grid.description|urlize|linebreaksbr }}
{% if features %} {% if request.user.is_authenticated and profile.can_add_grid_package %}{% trans "Add package to the grid" %}
{% endif %} {% if request.user.is_authenticated and profile.can_add_grid_feature %}{% trans "Add new feature to the grid" %}
{% endif %} {% endif %} {% if request.user.is_authenticated and profile.can_edit_grid_element and features %}{% trans "Highlighted cells are editable. Click highlighted cells to change text." %}
{% endif %}{% trans "Description" %} | {% for grid_package in grid_packages %}{% with grid_package.package.repo_description|truncatewords:20 as short %} {% if grid_package.package.repo_description|length > short|length %} {{ short|wordwrap:30|linebreaksbr|slice:"-3" }}... {% else %} {{ short|wordwrap:30|linebreaksbr }} {% endif %} {% endwith %} | {% endfor %}
{% trans "Category" %} | {% for grid_package in grid_packages %}{{ grid_package.package.category }} | {% endfor %}
{% trans "# Using This" %} | {% for grid_package in grid_packages %}{% with grid_package.package as package %} {{ grid_package.usage_count }} {% usage_button %} {% endwith %} | {% endfor %}
{% trans "Python 3?" %} | {% for grid_package in grid_packages %}{% if grid_package.package.last_released.supports_python3 %}{% else %}{% endif %} | {% endfor %}
{% trans "Development Status" %} | {% for grid_package in grid_packages %}{% with pretty_status=grid_package.package.last_released.pretty_status %} {% if pretty_status %} {{ pretty_status|default:"n/a" }} {% else %} n/a {% endif %} {% endwith %} | {% endfor %}
{% trans "Last updated" %} | {% for grid_package in grid_packages %}{% with last_updated=grid_package.package.last_updated %} {% if last_updated %} {{ last_updated|date:"DATETIME_FORMAT" }} {% endif %} {% endwith %} | {% endfor %}
{% trans "Version" %} | {% for grid_package in grid_packages %}{{ grid_package.package.pypi_version|default:"n/a" }} | {% endfor %}
{% trans "Repo" %} | {% for grid_package in grid_packages %}{{ grid_package.package.repo }} | {% endfor %}
{% trans "Commits" %} | {% for grid_package in grid_packages %}|
{% trans "Repo Watchers" %} | {% for grid_package in grid_packages %}{{ grid_package.package.repo_watchers|default:"n/a" }} | {% endfor %}
{% trans "Repo Forks" %} | {% for grid_package in grid_packages %}{{ grid_package.package.repo_forks|default:"n/a" }} | {% endfor %}
{% trans "Participants" %} | {% for grid_package in grid_packages %}
{% for collaborator in grid_package.package.participant_list %}
{% if forloop.counter <= 10 %}
{{ collaborator }}
{% if not forloop.last %}
{% endif %} {% endif %} {% if forloop.counter == 11 %} {% trans "more..." %} {% endif %} {% endfor %} |
{% endfor %}
{% trans "Documentation" %} | {% for grid_package in grid_packages %}{% if grid_package.package.documentation_url.strip and grid_package.package.documentation_url.strip != None %} {% else %} N/A {% endif %} | {% endfor %}
{{ feature.title }} | {% for grid_package in grid_packages %} {% with elements|hash:feature.pk|hash:grid_package.pk as element %}{% if element %}{{ element.text|style_element|safe|urlize|linebreaksbr }}{% endif %} | {% endwith %} {% endfor %}
Remove from grid? | {% for grid_package in grid_packages %}{% endfor %} |