forked from ontoportal-lirmm/bioportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding subtab "Details" and API cotextual button to
Collections
- Loading branch information
1 parent
dc0fd3f
commit 4a802ff
Showing
4 changed files
with
19 additions
and
3 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
= render TurboFrameComponent.new(id: 'collection_show', data: {"turbo-frame-target": "frame"}) do | ||
- if @collection | ||
- if @collection.errors | ||
= render Display::AlertComponent.new(type:'info', message: @collection.errors.join) | ||
- else | ||
|
||
= render TabsContainerComponent.new(type:'outline') do |c| | ||
- apikey = "#{get_apikey}" | ||
- c.pinned_right do | ||
%div{'data-concepts-json-target': 'button'} | ||
.concepts_json_button | ||
= render RoundedButtonComponent.new(link: "#{@ontology.id}/collections/#{escape(@collection.id)}?display=all&apikey=#{apikey}", target:'_blank') | ||
|
||
- c.item(title: t('concepts.details'), path: '#details', selected: true, json_link: "#{@ontology.id}/collections/#{escape(@collection.id)}?display=all&apikey=#{apikey}") | ||
|
||
- c.item_content do | ||
= render :partial =>'/collections/collection', locals: {collection: @collection} |
This file was deleted.
Oops, something went wrong.
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