Skip to content

Commit

Permalink
show private only switch in browse page only for logged in users
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal committed Jan 2, 2025
1 parent 1bdd6c8 commit e15494d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/ontologies/browser/browse.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
%p.browse-filters-title= t("ontologies.filters")

%div.browse-filter
= switch_input(id:'filter-private', name:'private_only', checked: @show_private_only, label: t("ontologies.browser.show_private_ontology"))
- if session[:user]
= switch_input(id:'filter-private', name:'private_only', checked: @show_private_only, label: t("ontologies.browser.show_private_ontology"))
= switch_input(id:'filter-views', name:'views', checked: @show_views, label: t("ontologies.browser.show_ontology_views"))
= switch_input(id:'filter-retired', name:'retired',checked: @show_retired , label: t("ontologies.browser.show_retired_ontologies"))

Expand Down

0 comments on commit e15494d

Please sign in to comment.