From 68fc442fe5f19f36dff39fbf5db6ebec14da69b3 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Oct 19 2014 17:35:29 +0000 Subject: Username variable was not defined in render_repos macro --- diff --git a/progit/templates/index.html b/progit/templates/index.html index 0707060..10bbd65 100644 --- a/progit/templates/index.html +++ b/progit/templates/index.html @@ -21,10 +21,10 @@ {% endif %} {{ repos_switch() }} - {{ render_repos(user_repos, total_page_repos, repopage, 'My Projects', user_repos_length, 'myrepos') }} - {{ render_repos(user_forks, total_page_forks, forkpage, 'My Forks', user_forks_length, 'myforks') }} + {{ render_repos(user_repos, total_page_repos, repopage, 'My Projects', user_repos_length, 'myrepos', username) }} + {{ render_repos(user_forks, total_page_forks, forkpage, 'My Forks', user_forks_length, 'myforks', username) }} {% endif %} - {{ render_repos(repos, total_page, page, 'All Projects', repos_length, 'repos') }} + {{ render_repos(repos, total_page, page, 'All Projects', repos_length, 'repos', username) }} {% endblock %} {% block jscripts %} diff --git a/progit/templates/render_repo.html b/progit/templates/render_repo.html index 35b8188..33d8a88 100644 --- a/progit/templates/render_repo.html +++ b/progit/templates/render_repo.html @@ -24,10 +24,11 @@ {%- endmacro %} -{% macro render_repos(list, total, page, title, count, id) %} +{% macro render_repos(list, total, page, title, count, id, username=None) %}
- {{ title }} ({{ count }}) + {% set title_lvl = 3 if username else 2 %} + {{ title }} ({{ count }})
{% if total and total > 1 %}