Many small bugfixes.
diff --git a/.gitignore b/.gitignore
index 366c13d..c9e4520 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,5 +3,6 @@
.*.swp
*.swp
*.pyc
+*.log
mgmt/hms
media/charts
diff --git a/pygit/pygit.py b/pygit/pygit.py
index ce2a1c5..561da65 100644
--- a/pygit/pygit.py
+++ b/pygit/pygit.py
@@ -12,8 +12,8 @@ curr_path = None
def open_repo(rid):
global curr_path,rp
path = settings.REPOS[int(rid)]
- if rp and curr_path==path:
- return rp
+# if rp and curr_path==path:
+# return rp
curr_path = path
rp = Repo(path)
return rp
diff --git a/run-fastcgi b/run-fastcgi
index 2f4e1ab..60b9c50 100755
--- a/run-fastcgi
+++ b/run-fastcgi
@@ -13,5 +13,5 @@ fi
exec /usr/bin/env - \
PYTHONPATH="../python:.." \
- ./manage.py runfcgi method=threaded socket=$SOCKET pidfile=$PIDFILE
+ ./manage.py runfcgi maxrequests=1 outlog="$PROJDIR/fcgi-out.log" errlog="$PROJDIR/fcgi-err.log" method=prefork socket=$SOCKET pidfile=$PIDFILE
diff --git a/templates/bug_body.html b/templates/bug_body.html
index 21afe73..f37b503 100644
--- a/templates/bug_body.html
+++ b/templates/bug_body.html
@@ -1,6 +1,8 @@
{% load prj_filters %}
<div class='bug bug-state-{{bug.status.id}}'>
- <div class='project-link'>{{project|link|safe}}</div>
+ <div class='project-link'>
+ <a href='{% url mgmt.views.project_bugs project.id %}'>{{project.name}}</a>
+ </div>
<h3><a href='{% url mgmt.views.one_bug bug.id %}'>Баг #{{bug.id}}: {{bug.name}}</a></h3>
{% if edit_link %}
<div class='links'><a href='{{edit_link}}'>Изменить</a></div>
diff --git a/templates/commits_table.html b/templates/commits_table.html
new file mode 100644
index 0000000..6263ed9
--- /dev/null
+++ b/templates/commits_table.html
@@ -0,0 +1,8 @@
+<table>
+ {% for id,dt,author,message in commits %}
+ <tr>
+ <td><a href='{% url pygit.views.diff_all rid,current_branch,id %}'>{{id}}</a></td>
+ <td>{{dt}}</td><td>{{author}}</td><td>{{message}}</td>
+ </tr>
+ {% endfor %}
+</table>
diff --git a/templates/git_commits.html b/templates/git_commits.html
new file mode 100644
index 0000000..ffe7b57
--- /dev/null
+++ b/templates/git_commits.html
@@ -0,0 +1,8 @@
+{% extends "git.html" %}
+
+{% block title %}Последние коммиты в репозитории {{repo.description}}{% endblock %}
+
+{% block git %}
+<h1>Последние коммиты в репозитории {{repo.description}}</h1>
+{% include "commits_table.html" %}
+{% endblock %}