diff --git a/progit/templates/repo_info.html b/progit/templates/repo_info.html
index 5c8fe43..febb034 100644
--- a/progit/templates/repo_info.html
+++ b/progit/templates/repo_info.html
@@ -9,8 +9,25 @@
{{ repo.split('.git')[0] }}
+ {% if branchname %} ({{ branchname }}) {% endif %}
+
+
+
{% if total_page %}
{% endif %}
-
-
+ {% if origin != 'view_log' %}
Last 10 commits
+ {% else %}
+ Commits list
+ {% endif %}
{% for commit in last_commits %}
-
@@ -64,23 +72,25 @@
-
- Current tree
-
- {% for entry in tree %}
- -
- {% if entry.filemode == 16384 %}
- [ ]
- {% endif %}
-
- {{ entry.name }}
-
- {{ entry.hex }}
- {{ entry.id }}
-
- {% endfor %}
-
-
+{% if tree %}
+
+ Current tree
+
+ {% for entry in tree %}
+ -
+ {% if entry.filemode == 16384 %}
+ [ ]
+ {% endif %}
+
+ {{ entry.name }}
+
+ {{ entry.hex }}
+ {{ entry.id }}
+
+ {% endfor %}
+
+
+{% endif %}
{% endblock %}