diff --git a/web/src/main/webapp/WEB-INF/views/genes.jsp b/web/src/main/webapp/WEB-INF/views/genes.jsp
index 1ed886902..da72df297 100644
--- a/web/src/main/webapp/WEB-INF/views/genes.jsp
+++ b/web/src/main/webapp/WEB-INF/views/genes.jsp
@@ -34,6 +34,7 @@
+
<%-- Phenogrid requirements --%>
@@ -288,6 +289,14 @@
font-size: 150%;
vertical-align: middle;
}
+ #external-links-content ul {
+ margin-bottom: 0;
+ }
+ #external-links-content .link-wrapper {
+ display: flex;
+ align-items: center;
+ gap: 0.3rem;
+ }
@@ -1377,6 +1386,23 @@
+ <%-- EXTERNAL LINKS SECTION --%>
+
<%-- ORDER SECTION --%>
diff --git a/web/src/main/webapp/resources/js/general/genePage.js b/web/src/main/webapp/resources/js/general/genePage.js
new file mode 100644
index 000000000..05fd521f0
--- /dev/null
+++ b/web/src/main/webapp/resources/js/general/genePage.js
@@ -0,0 +1,36 @@
+/**
+ * Copyright © 2011-2024 EMBL - European Bioinformatics Institute
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * toggle: used for the image dropdown.
+ *
+ */
+jQuery(document).ready(function () {
+ $.ajax({
+ url: 'https://nginx.mousephenotype-dev.org/data/api/v1/genes/' + gene_id + '/gene_external_links',
+ type: "GET",
+ success: function (results) {
+ $('.container#external-links').removeClass('hidden');
+ results.forEach(function (r) {
+ var linkDiv = $("
");
+ var linkWithProvider = "
";
+ linkDiv.append(linkWithProvider);
+ var list = $("
");
+ list.append("
" + !!r.description ? r.description : "" + "");
+ linkDiv.append(list);
+ $('#external-links-content').append(linkDiv);
+ });
+ }
+ });
+});
\ No newline at end of file