From 08ed05a86c4c419c8579cc15e6967ee754cd101e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 17 2018 12:23:43 +0000 Subject: Add a page in the settings showing the last log of the last mirror run Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index ce0c691..4d4a3b3 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -72,6 +72,13 @@ href="#quickreplies-tab" role="tab" aria-controls="quickreplies">Quick Replies {% endif %} + {% if not config.get('DISABLE_MIRROR_IN', False) + and (repo.user.user == g.fas_user.username or pagure_admin) + and repo.mirrored_from %} + Mirror log + {% endif %} + Regenerate Repos @@ -761,7 +768,7 @@ {% else %} - {% endif %} @@ -976,6 +983,14 @@ {% endif %} + {% if not config.get('DISABLE_MIRROR_IN', False) + and (repo.user.user == g.fas_user.username or pagure_admin) + and repo.mirrored_from %} +
+ {% include 'settings_mirrorlog.html' %} +
+ {% endif %} +

Regenerate Repos diff --git a/pagure/templates/settings_mirrorlog.html b/pagure/templates/settings_mirrorlog.html new file mode 100644 index 0000000..6cc0dad --- /dev/null +++ b/pagure/templates/settings_mirrorlog.html @@ -0,0 +1,11 @@ + +

+ Mirrorring in log +

+

+ Here below is the log of the last attempt to mirror in this project. +

+ +
+  {{ repo.mirrored_from_last_log }}
+