From 88aa7ea79eef553630a6d760c5015393fbc146af Mon Sep 17 00:00:00 2001
From: Ilya Shakhat <ishakhat@mirantis.com>
Date: Wed, 18 Dec 2013 16:27:39 +0400
Subject: [PATCH] Rename reviews report to contribution report

Part of blueprint extend-russell-report

Change-Id: Id4c607e571875390a4aa4fbd03c6d8dac101ed75
---
 dashboard/reports.py                                          | 4 ++--
 dashboard/templates/overview.html                             | 4 ++--
 .../templates/reports/{reviews.html => contribution.html}     | 0
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename dashboard/templates/reports/{reviews.html => contribution.html} (100%)

diff --git a/dashboard/reports.py b/dashboard/reports.py
index e7d24c65b..1b78490cf 100644
--- a/dashboard/reports.py
+++ b/dashboard/reports.py
@@ -115,10 +115,10 @@ def open_reviews(module):
     }
 
 
-@blueprint.route('/reviews/<module>/<days>')
+@blueprint.route('/contribution/<module>/<days>')
 @decorators.templated()
 @decorators.exception_handler()
-def reviews(module, days):
+def contribution(module, days):
     return {
         'module': module,
         'days': days,
diff --git a/dashboard/templates/overview.html b/dashboard/templates/overview.html
index 9c314ec43..185c7bd14 100644
--- a/dashboard/templates/overview.html
+++ b/dashboard/templates/overview.html
@@ -191,8 +191,8 @@
 <div>Emails: <b>${email_count}</b></div>
 {% if module %}
 <div><b><a href="/report/reviews/{{ module }}/open" target="_blank">Show open reviews for {{ module }}↗</a></b></div>
-<div><b><a href="/report/reviews/{{ module }}/30" target="_blank">Reviews for the last 30 days in {{ module }}↗</a></b></div>
-<div><b><a href="/report/reviews/{{ module }}/90" target="_blank">Reviews for the last 90 days in {{ module }}↗</a></b></div>
+<div><b><a href="/report/contribution/{{ module }}/30" target="_blank">Contribution for the last 30 days in {{ module }}↗</a></b></div>
+<div><b><a href="/report/contribution/{{ module }}/90" target="_blank">Contribution for the last 90 days in {{ module }}↗</a></b></div>
 {% endif %}
 {% if company %}
 <div><b><a href="/report/companies/{{ company }}" target="_blank">Show activity report for {{ company_original }}↗</a></b></div>
diff --git a/dashboard/templates/reports/reviews.html b/dashboard/templates/reports/contribution.html
similarity index 100%
rename from dashboard/templates/reports/reviews.html
rename to dashboard/templates/reports/contribution.html