diff --git a/pagure/default_config.py b/pagure/default_config.py index e8f214f..b107fbf 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -21,6 +21,9 @@ SECRET_KEY = '' # url to the database server: DB_URL = 'sqlite:////var/tmp/pagure_dev.sqlite' +# url to datagrepper (optional): +#DATAGREPPER_URL = 'https://apps.fedoraproject.org/datagrepper' + # The FAS group in which the admin of pagure are ADMIN_GROUP = 'sysadmin-main' diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index a59d6ad..86e60ac 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -178,6 +178,10 @@ header h1 span { border-spacing: 1em; } +#user_graph { + min-height: 400px; +} + .project_link { border: 1px solid #CCCCCC; border-radius: 5px 5px 5px 5px; diff --git a/pagure/templates/user_info.html b/pagure/templates/user_info.html index 3af3552..3099f1b 100644 --- a/pagure/templates/user_info.html +++ b/pagure/templates/user_info.html @@ -27,6 +27,17 @@ Joined {{ user.created | humanize }}

+ {% if config.get('DATAGREPPER_URL') %} +
+
+

Contributions

+
+ + User activity graph + +
+ {% endif %} + {{ render_repos( repos, total_page_repos, 'repopage', repopage, 'Projects', repos_length, 'repos', hide=False) }}