Skip to content

Commit

Permalink
make show private ontologies only filter on browse page displayed for…
Browse files Browse the repository at this point in the history
… all users (not only for admins)
  • Loading branch information
Bilelkihal committed Jan 2, 2025
1 parent 4ee4788 commit 1bdd6c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/ontologies/browser/browse.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@
= upload_ontology_button
%div{style:'margin-top: 30px'}
%p.browse-filters-title= t("ontologies.filters")
- if current_user_admin?
%div.browse-filter.admin-border
= switch_input(id:'filter-private', name:'private_only', checked: @show_private_only, label: t("ontologies.browser.show_private_ontology"))

%div.browse-filter
= 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 1bdd6c8

Please sign in to comment.