diff --git a/progit/static/progit.css b/progit/static/progit.css index 15f09d4..88404c5 100644 --- a/progit/static/progit.css +++ b/progit/static/progit.css @@ -354,12 +354,12 @@ th.month .ui-button-text { border: 1px solid #DDDDDD; } -.calendar_list { +.project_list { display: table; border-spacing: 1em; } -.calendar_link { +.project_link { border: 1px solid #CCCCCC; border-radius: 5px 5px 5px 5px; color: black; @@ -367,23 +367,23 @@ th.month .ui-button-text { /*margin: 1em auto;*/ overflow: hidden; padding: 2em; - width: 15em; + /*width: 15em;*/ } -.calendar_link img, .calendar_link span { +.project_link img, .project_link span { display: block; } -.calendar_name { +.project_name { font-weight: bold; margin: .5em 0; } -.calendar_row { +.project_row { display: table-row; } -.calendar_row[a] { +.project_row[a] { display: block; } diff --git a/progit/templates/index.html b/progit/templates/index.html index efe31ca..586e9af 100644 --- a/progit/templates/index.html +++ b/progit/templates/index.html @@ -4,6 +4,23 @@ {%block tag %}home{% endblock %} +{% macro render_row(items) -%} + {% for row in items %} +
+ {% for repo in row %} + + + {{ repo.name }} + {{ repo.description | wraps(20) }} + + {% endfor %} +
+ {% else %} +

No project found

+ {% endfor %} +{%- endmacro %} + {% block content %}

Projects

@@ -34,16 +51,8 @@ {% endif %} -
- +
+ {{ render_row(repos) }}
{% endblock %}