diff --git a/app/models/node.rb b/app/models/node.rb index 45cb9b263b..4dec7accd3 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -524,7 +524,7 @@ def icon icon = 'book' if type == 'page' icon = 'map-marker' if type == 'map' icon = 'flag' if has_tag('chapter') - icon = 'wrench' if type == 'tool' + # icon = 'wrench' if type == 'tool' icon = 'question-circle' if has_power_tag('question') icon end @@ -553,7 +553,7 @@ def tagnames_as_classes end def edit_path - path = if type == 'page' || type == 'tool' || type == 'place' + path = if type == 'page' '/wiki/edit/' + self.path.split('/').last else '/notes/edit/' + id.to_s diff --git a/app/services/search_service.rb b/app/services/search_service.rb index 186b8dd1c4..24494678fc 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -66,7 +66,7 @@ def search_notes(input, limit = 25, order = :natural, type = :boolean) def search_wikis(input, limit = 25, order = :natural, type = :boolean) Node.search(query: input, order: order, type: type, limit: limit) - .where("`node`.`type` = 'page' OR `node`.`type` = 'place' OR `node`.`type` = 'tool'") + .where("`node`.`type` = 'page'") end def search_maps(input, limit = 25, order = :natural, type = :boolean)