Skip to content

Commit

Permalink
fix the new hasOntologyLanguage badge for the one that are nil
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 23, 2023
1 parent f72d5df commit b85f1b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/layouts/ontology_viewer/_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
- if @ontology.private?
= render ChipButtonComponent.new(class: 'chip_button_small mr-1') do
= private_ontology_icon(@ontology.private?)
= render ChipButtonComponent.new(class: 'chip_button_small mr-1', text: @submission_latest.hasOntologyLanguage)
- if @submission_latest.hasOntologyLanguage
= render ChipButtonComponent.new(class: 'chip_button_small mr-1', text: @submission_latest.hasOntologyLanguage)
= ontology_retired_badge(@submission_latest, small: true, clickable: false)
- unless sub.nil? || sub.creationDate.nil?
Expand Down

0 comments on commit b85f1b8

Please sign in to comment.