You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Bergholz f8ecb8591b add run_prod which uses bjoern to invoke __hug_wsgi__ from main.py 8 months ago
static #3 minify using koala 11 months ago
.gitignore Initial commit 11 months ago
Dockerfile test bjoern instead of uwsgi 8 months ago
LICENSE Initial commit 11 months ago
Makefile update makefile 11 months ago
README.md update README 11 months ago
main.py missing quotes around USERNAME 11 months ago
run_prod.py add run_prod which uses bjoern to invoke __hug_wsgi__ from main.py 8 months ago

README.md

gitea-user-heatmap

use make for build, run and deploy.

gitea integration

in templates/user/profile.tmpl

diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 6cac300..de755f4 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -82,6 +82,7 @@
                                </div>
                        </div>
                        <div class="ui eleven wide column">
+                                <iframe src="https://commits.git.osuv.de/index.html?user={{.Owner.Name}}" width="100%" height="225" frameborder="0"></iframe>
                                <div class="ui secondary stackable pointing menu">
                                        <a class='{{if and (ne .TabName "activity") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}">
                                                <i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}

sql setup

only tested with MariaDB 10.2 yet.

  1. create a read only user for this service like that
CREATE USER 'read_only_user'@'%' ;
UPDATE mysql.user SET Password=PASSWORD('some_password') WHERE User='read_only_user' AND Host='%' ;
GRANT Select ON gitea.`action` TO 'read_only_user'@'%' ;
GRANT Select ON gitea.`user` TO 'commit_stats'@'%' ;
FLUSH PRIVILEGES;