Skip to content

Commit

Permalink
Home page adjustments to display embedded OntoPortal link
Browse files Browse the repository at this point in the history
  • Loading branch information
galviset committed Nov 29, 2024
1 parent af27b59 commit 9741f0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/helpers/home_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def discover_ontologies_button
end

def home_ontoportal_description
ontoportal_link = link_to("(#{$ONTOPORTAL_WEBSITE_LINK})", $ONTOPORTAL_WEBSITE_LINK, target: '_blank')
github_link = link_to("(#{$ONTOPORTAL_GITHUB_REPO})", $ONTOPORTAL_GITHUB_REPO, target: '_blank')
ontoportal_link = link_to("#{$ONTOPORTAL_WEBSITE_LINK}", $ONTOPORTAL_WEBSITE_LINK, target: '_blank')
github_link = link_to("#{$ONTOPORTAL_GITHUB_REPO}", $ONTOPORTAL_GITHUB_REPO, target: '_blank')
content_tag(:div, t('home.ontoportal_description', ontoportal_link: ontoportal_link, github_link: github_link).html_safe, style: "margin-bottom: 20px")
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/home/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@

.home-section-description
.div
= home_ontoportal_description
= t('home.ontoportal_description').html_safe
.home-support-items
- $PORTALS_INSTANCES&.each do |portal|
= portal_config_tooltip(portal[:name]) do
Expand Down

0 comments on commit 9741f0d

Please sign in to comment.