Learn more about these different git repos.
Other Git URLs
ffc9112
cd6a75f
3f69f8b
aabacde
e151b11
5a2117b
@@ -21,6 +21,10 @@
# url to the database server:
DB_URL = 'sqlite:////var/tmp/pagure_dev.sqlite'
+ # url to datagrepper (optional):
+ #DATAGREPPER_URL = 'https://apps.fedoraproject.org/datagrepper'
+ #DATAGREPPER_CATEGORY = 'pagure'
+
# The FAS group in which the admin of pagure are
ADMIN_GROUP = 'sysadmin-main'
@@ -178,6 +178,13 @@
border-spacing: 1em;
}
+ #user_graph {
+ min-height: 150px;
+ background-image: url('images/spinner.gif');
+ background-position: center;
+ background-repeat: no-repeat;
+ }
.project_link {
border: 1px solid #CCCCCC;
border-radius: 5px 5px 5px 5px;
@@ -56,6 +56,18 @@
<p>No group found</p>
{% endfor %}
</section>
+ {% if config.get('DATAGREPPER_URL') %}
+ <section class="project_list" id="user_graph">
+ <header>
+ <h2>Contributions</h2>
+ </header>
+ <a href="{{config.get('DATAGREPPER_URL')}}/raw?category={{config.get('DATAGREPPER_CATEGORY', 'pagure')}}&user={{username}}" target="_blank">
+ <img src="{{config.get('DATAGREPPER_URL')}}/charts/line?category={{config.get('DATAGREPPER_CATEGORY', 'pagure')}}&user={{username}}&split_on=users&delta=31536000&N=12&title=&width=600&height=200&style=light&fill=True" alt="User activity graph"/>
+ </a>
+ </section>
+ {% endif %}
{% endblock %}
{% block jscripts %}
This is one approach to fixing #488.
It looks like this:
<img alt="" src="http://threebean.org/img/pagure-chart.png" />
Er, here's a screenshot: http://threebean.org/img/pagure-chart.png
grmbl for the upload, why did it not work!
It looks great but it takes a while to load, would there be a way to show something while it loads?
With the idea of running pagure one day on the top of pkgs.fp.o, should we make the category a configuration key?
Should be updated with respect to your comments now. :)
The cubic interpolation looks a little odd, it gives me a negative value for some months ago.
Cubic interpolation removed.
:thumbsup: for me, thanks for the PR!