Skip to content
Snippets Groups Projects
Commit a61c788a authored by gogepp's avatar gogepp
Browse files

improve links

parent b8d712f9
Branches
No related tags found
No related merge requests found
......@@ -80,6 +80,10 @@
margin: 0px;
}
.feat_nav {
font-style: italic;
font-size: 1.5em;
}
......
......@@ -88,10 +88,10 @@
$feat_nav = "";
if ($node->type == "chado_feature") {
if ($node->feature->type_id->name == "mRNA") {
$feat_nav = "<p><a href=\"\">View corresponding polypeptide</a></p>";
$feat_nav = "You are viewing an mRNA, more information available on the corresponding ".l("polypeptide page", "node/".$node->feature->all_relationships['object']['derives from']['polypeptide'][0]->record->subject_id->nid);
}
else if ($node->feature->type_id->name == "polypeptide") {
$feat_nav = "<p><a href=\"\">View corresponding mRNA</a></p>";
$feat_nav = "You are viewing a polypeptide, more information available on the corresponding ".l("mRNA page", "node/".$node->feature->all_relationships['subject']['derives from']['mRNA'][0]->record->object_id->nid);
}
}
?>
......@@ -202,9 +202,9 @@ if ($node->type == "chado_feature") {
</h1>
<?php endif; ?>
<?php if (!empty($feat_nav)): ?>
<h2 class="feat_nav" id="feat_nav">
<p class="feat_nav" id="feat_nav">
<?php print $feat_nav; ?>
</h2>
</p>
<?php endif; ?>
<?php print render($title_suffix); ?>
</header>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment