diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html
index 13c3048..acf860b 100644
--- a/pagure/templates/repo_master.html
+++ b/pagure/templates/repo_master.html
@@ -139,6 +139,15 @@
{% endif %}
{% endif %}
+ {% if endpoint == 'view_docs' %}
+
+
+
+
+
+ {% endif %}
diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py
index 25e9020..00f039f 100644
--- a/pagure/ui/repo.py
+++ b/pagure/ui/repo.py
@@ -1535,4 +1535,5 @@ def view_docs(repo, username=None, filename=None):
repo=repo_obj,
username=username,
filename=filename,
+ endpoint='view_docs',
)