| |
@@ -139,7 +139,10 @@
|
| |
if not repo_obj.is_empty:
|
| |
commit = repo_obj[repo_obj.head.target]
|
| |
else:
|
| |
- flask.abort(404, 'No content found is the repository')
|
| |
+ flask.abort(404, 'No content found in the repository, '
|
| |
+ 'you may want to read the '
|
| |
+ '<a href="https://docs.pagure.org/pagure/usage/using_doc.html">'
|
| |
+ 'Using the doc repository of your project</a> documentation.')
|
| |
branchname = 'master'
|
| |
|
| |
content = None
|
| |
@@ -169,7 +172,10 @@
|
| |
|
| |
if not content:
|
| |
if not tree or not len(tree):
|
| |
- flask.abort(404, 'No content found is the repository')
|
| |
+ flask.abort(404, 'No content found in the repository, '
|
| |
+ 'you may want to read the '
|
| |
+ '<a href="https://docs.pagure.org/pagure/usage/using_doc.html">'
|
| |
+ 'Using the doc repository of your project</a> documentation.')
|
| |
html = '<li>'
|
| |
for el in tree:
|
| |
name = el.name
|
| |
Apparently, the end user being new to pagure is unable to
configure his/her project documentation and does not know where
to look for it.
This patch provides a link that directs the user to pagure documentation
that shall help the users to configure thier projects documents.
Fixes: https://pagure.io/pagure/issue/1562