Skip to content

Commit

Permalink
Also check if file has pod_lines to determine best link
Browse files Browse the repository at this point in the history
refs #1105.
  • Loading branch information
rwstauner committed Feb 15, 2014
1 parent bfbe8ed commit 77988a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/MetaCPAN/Web/Model/API/Module.pm
Expand Up @@ -371,6 +371,7 @@ sub search {
distribution
date
id
pod_lines
)],
}
);
Expand Down
2 changes: 1 addition & 1 deletion root/preprocess.html
Expand Up @@ -58,7 +58,7 @@
MACRO link_to_file(file, linktext) BLOCK;
title = file.documentation || file.path;
# If there is pod for this file...
IF file.documentation || file.module.grep(->(module){ module.associated_pod }).size;
IF file.documentation || file.pod_lines.size || file.module.grep(->(module){ module.associated_pod }).size;
IF file.status == "latest";
# If it's a PAUSE-indexed module (02packages)...
IF file.documentation
Expand Down

0 comments on commit 77988a4

Please sign in to comment.