forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Federation portal button link (#854)
* fix federated portal button opening in current portal in browse page * make internal federated portal button open in the current tab
- Loading branch information
1 parent
afff321
commit df623f0
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/components/federated_portal_button_component/federated_portal_button_component.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
%span{'data-controller': 'federation-portals-colors', | ||
'data-federation-portals-colors-color-value': color, | ||
'data-federation-portals-colors-portal-name-value': name.downcase} | ||
%a{ href: link, target: '_blank', 'data-controller' => 'tooltip', title: tooltip, class: 'federation-portal-button button icon-right', style: color ? "background-color: #{light_color} !important" : '' } | ||
%a{ href: link, target: internal? ? '_top' : '_blank', 'data-controller' => 'tooltip', title: tooltip, class: 'federation-portal-button button icon-right', style: color ? "background-color: #{light_color} !important" : '' } | ||
= inline_svg_tag('logos/ontoportal.svg', class: "federated-icon-#{name.downcase}") | ||
%div{ class: 'text', style: color ? "color: #{color} !important" : '' } | ||
= name.humanize.gsub("portal", "Portal") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters