Skip to content

Commit

Permalink
Do not display the ore link in special pages
Browse files Browse the repository at this point in the history
  • Loading branch information
melmothx committed Sep 7, 2023
1 parent 3c689d2 commit 37c4da6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/AmuseWikiFarm/Role/Controller/Text.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ sub match :Chained('base') PathPart('') :CaptureArgs(1) {
}
$c->stash(page_title => HTML::Entities::decode_entities($text->title),
text_json_api => $c->uri_for($text->full_header_api),
ore_rdf_link => $c->uri_for($text->full_ore_rdf_uri),
show_preview_only => $show_preview_only);
if ($c->stash->{f_class} eq 'text') {
$c->stash(ore_rdf_link => $c->uri_for($text->full_ore_rdf_uri));
}

}
elsif (my $attach = $site->attachments->by_uri($canonical . $append_ext)) {
log_debug { "Found attachment $canonical$append_ext" };
Expand Down

0 comments on commit 37c4da6

Please sign in to comment.