diff --git a/data/templates/tools.html b/data/templates/tools.html index a5ff421..88009d1 100644 --- a/data/templates/tools.html +++ b/data/templates/tools.html @@ -1,77 +1,77 @@ {% extends "base.html" %} {% import "inc/utils.html" as utils %} {% block title %}{{ 'tools-title'|message }} - {{ parent() }}{% endblock %} {% block nav_li_tools %}active{% endblock %} {% block content %}

{{ 'tools-header'|message }}

-
+
{% for tool in tools %} {% for info in tool.toolinfo %}

{% if info.url %} {{ info.title|default(tool.name) }} {% elseif tool.toolinfo|length == 1 and active[tool.name] %} {{ tool.name }} {% else %} {{ info.title|default(tool.name) }} {% endif %}

Tool: {{ tool.name }}
{{ info.description|purify }}
{% if info.keywords %}
{% for word in info.keywords %} {{ word }} {% endfor %}
{% endif %}
{% if info.author %}
Author
    {% for author in info.author %}
  • {{ author|purify }}
  • {% endfor %}
{% endif %} {% if info.repository %}
Source
{{ info.repository }}
{% endif %}
Maintainer
    {% for maintainer in tool.maintainers %} {% if users[maintainer] %} {% set wiki_user = users[maintainer].wikitech %}
  • {{ utils.ucfirst(wiki_user) }}
  • {% endif %} {% endfor %}
{% endfor %} {% endfor %}
{% endblock content %} diff --git a/public/assets/site.css b/public/assets/site.css index bbe3558..a242b0b 100644 --- a/public/assets/site.css +++ b/public/assets/site.css @@ -1,66 +1,67 @@ h2 { border-bottom: 2px solid #292b2c; } .seealso { border-bottom:1px solid #ccc; color:#555; font-style:italic; margin-bottom:.5em; padding:0 0 .5em 0; } -.card-group .toolinfo { +.card-deck .toolinfo { min-width:300px; + margin:5px; } .toolinfo .card-body { padding-top:0.25em; padding-bottom:0; } .toolinfo .list-inline { margin-bottom:0; } .keyword { background-color:#fdf3da; border-radius:3px; border:1px solid #e9dbcd; color:#726f56; font-size:75%; line-height:1; padding:.2em .6em; white-space:nowrap; } .tablesort th[role=columnheader]:not(.no-sort) { cursor: pointer; } .tablesort th[role=columnheader]:not(.no-sort):after { content: ''; float: right; margin-top: 7px; border-width: 0 4px 4px; border-style: solid; border-color: #404040 transparent; visibility: hidden; opacity: 0; -ms-user-select: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; } .tablesort th[aria-sort=ascending]:not(.no-sort):after { border-bottom: none; border-width: 4px 4px 0; } .tablesort th[aria-sort]:not(.no-sort):after { visibility: visible; opacity: 0.4; } .tablesort th[role=columnheader]:not(.no-sort):hover:after { visibility: visible; opacity: 1; }