Skip to content

Commit

Permalink
make undefined valsi links red
Browse files Browse the repository at this point in the history
  • Loading branch information
durka committed Jun 21, 2015
1 parent 33654e4 commit d255218
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions autohandler.in
Expand Up @@ -39,6 +39,7 @@ what happened leading up to this. Just in case.
background-position:bottom right; }
-->
.form-notice { border: .1em solid red; background: #FCC; color: black; padding: .5em; }
a.undefined { color: red }
</style>
<meta name="keywords" content="jbovlaste lojban dictionary" />
<!-- Don't bitch about my XHTML, and I won't gnaw off your head.
Expand Down
4 changes: 2 additions & 2 deletions lib/Wiki.pm
Expand Up @@ -219,11 +219,11 @@ sub wordreferencegenerate {

if( $valsiid != 0 )
{
return sprintf( "<a href=\"../dict/%s?bg=1;langidarg=%s\">%s</a>",
return sprintf( "<a class=\"defined\" href=\"../dict/%s?bg=1;langidarg=%s\">%s</a>",
utils::armorurl($word), $langid, $alttxt
);
} else {
return sprintf( "<a href=\"../dict/%s?bg=1;langidarg=%s\">Word %s not found in database.</a>",
return sprintf( "<a class=\"undefined\" href=\"../dict/%s?bg=1;langidarg=%s\">%s</a>",
utils::armorurl($word), $langid, $alttxt
);
}
Expand Down

0 comments on commit d255218

Please sign in to comment.