diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html
index 27d3f27..13c21fb 100644
--- a/pagure/templates/repo_master.html
+++ b/pagure/templates/repo_master.html
@@ -301,25 +301,6 @@
- {% if repo and repo.forks %}
-
-
-
- Forks
-
- {{ repo.forks |length }}
-
-
-
- {% endif %}
-
{% if authenticated %}
{% if g.repo_admin %}
diff --git a/pagure/templates/repo_stats.html b/pagure/templates/repo_stats.html
index a9c01c5..e18f9b2 100644
--- a/pagure/templates/repo_stats.html
+++ b/pagure/templates/repo_stats.html
@@ -22,6 +22,12 @@
@@ -36,6 +42,43 @@
+
+ Forks list
+ {% if repo.forks %}
+
+ {% for fork in repo.forks %}
+
+
+ {% endfor %}
+
+ {% else %}
+
+ This project has not been forked.
+
+ {% endif %}
+
{% endblock %}
@@ -112,23 +155,27 @@ commits_history_call = function() {
commits_history(_stats_url, data);
};
+toggle_forks = function() {
+ $("#forks_list").show();
+}
$(document).ready(function() {
$('.stats_btn').click(function(ev){
var _b = $("#data_stats");
_b.hide();
+ $("#forks_list").hide();
if ($(this).attr('name') == 'issues') {
issues_history_stats_plot_call();
} else if ($(this).attr('name') == 'authors') {
commits_authors_call();
} else if ($(this).attr('name') == 'commits') {
commits_history_call();
+ } else if ($(this).attr('name') == 'forks') {
+ toggle_forks();
}
});
- commits_history_call();
-
});
{% endblock %}
diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py
index 9b4b514..6a0168f 100644
--- a/pagure/ui/repo.py
+++ b/pagure/ui/repo.py
@@ -898,27 +898,6 @@ def view_tree(repo, identifier=None, username=None, namespace=None):
)
-@APP.route('//forks/')
-@APP.route('//forks')
-@APP.route('///forks/')
-@APP.route('///forks')
-@APP.route('/fork///forks/')
-@APP.route('/fork///forks')
-@APP.route('/fork////forks/')
-@APP.route('/fork////forks')
-def view_forks(repo, username=None, namespace=None):
- """ Presents all the forks of the project.
- """
- repo = flask.g.repo
-
- return flask.render_template(
- 'forks.html',
- select='forks',
- username=username,
- repo=repo,
- )
-
-
@APP.route('//releases/')
@APP.route('//releases')
@APP.route('///releases/')