diff options
author | Max Magorsch <max@magorsch.de> | 2019-10-18 21:13:39 +0200 |
---|---|---|
committer | Max Magorsch <max@magorsch.de> | 2019-10-18 21:16:54 +0200 |
commit | 0ba27a0f95fa49ecdc11b7599da66eb98d20ea4f (patch) | |
tree | b97f9509c3f430bc824e9f614d66e81b7598c75a /app/views | |
parent | Add atom feeds for package search results (diff) | |
download | packages-5-0ba27a0f95fa49ecdc11b7599da66eb98d20ea4f.tar.gz packages-5-0ba27a0f95fa49ecdc11b7599da66eb98d20ea4f.tar.bz2 packages-5-0ba27a0f95fa49ecdc11b7599da66eb98d20ea4f.zip |
Change the documentation link to the wiki page
So far the documentation link for each package points to a full-text
search in the wiki. Now the documentation link points to the respective
wiki page in case the page exists. Only in case, the page doesn't exist
the link points to the full-text search.
Additionally, if the page doesn't exist the link is labelled as
'Search for Documentation'. In case the page exists, it is still
labelled 'Documentation'.
Closes: https://bugs.gentoo.org/611262
Signed-off-by: Max Magorsch <max@magorsch.de>
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/packages/_resources.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/packages/_resources.html.erb b/app/views/packages/_resources.html.erb index 40a2547..34c8486 100644 --- a/app/views/packages/_resources.html.erb +++ b/app/views/packages/_resources.html.erb @@ -7,9 +7,9 @@ <span class="fa fa-fw fa-bug"></span> <%= t :res_bugs %> </a> - <a href="https://wiki.gentoo.org/index.php?title=Special%3ASearch&fulltext=Search&search=<%= u package.name %>" class="list-group-item" target="_blank"> + <a href="https://wiki.gentoo.org/wiki/Special:Search/<%= u package.name %>" class="list-group-item" target="_blank"> <span class="fa fa-fw fa-book"></span> - <%= t :res_docs %> + <%= documentation_label(package.name) %> </a> <a href="https://forums.gentoo.org/search.php?search_terms=all&show_results=topics&search_keywords=<%= u package.name %>&mode=results" class="list-group-item" target="_blank"> <span class="fa fa-fw fa-comments-o"></span> |