forgejo/templates
David Svantesson c9546d4cdd Include description in repository search. (#7942)
* Add description in repository search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Refactor SearchRepositoryByName with a general function SearchRepository

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Allow to specify if description shall be included in API repo search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Add new app.ini setting for whether to search within repo description.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Search keyword in description (if setting enabled) on:
 - Explore page
 - Organization profile page
 - User profile page
 - Admin repo page

Do not search keyword in description on:
 - Any non-keyword search (not relevant)
 - Incremental search (uses API)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Put parameters related to keyword directly after it

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Add test cases for including (and not including) repository description in search.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Rename test function from TestSearchRepositoryByName to TestSearchRepository.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Make setting SEARCH_REPO_DESCRIPTION default to true

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
2019-08-25 20:06:36 +03:00
..
admin show lfs config on admin panel (#7220) 2019-06-16 19:24:49 +01:00
base jQuery 3 (#7425) 2019-07-12 08:21:44 +03:00
custom Templates for extra links in top navbar and repo tool tabs. (#3308) 2018-01-10 08:19:50 +02:00
explore Repository avatar fallback configuration (#7087) 2019-06-02 14:40:12 +08:00
mail UX + Security current user password reset (#5042) 2019-04-18 10:23:59 +03:00
org org/members: display 2FA members states + optimize sql requests (#7621) 2019-08-02 12:06:27 -04:00
pwa jQuery 3 (#7425) 2019-07-12 08:21:44 +03:00
repo Revert RenderCommitMessageLink part of #7659 (#7923) 2019-08-20 22:08:16 +01:00
status Minor UI tweaks (#5980) 2019-02-19 18:09:47 -05:00
swagger Include description in repository search. (#7942) 2019-08-25 20:06:36 +03:00
user gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid gpg key (#7846) 2019-08-14 09:39:44 +08:00
home.tmpl Fix typo in home.tmpl (#7452) 2019-07-15 19:26:23 -04:00
install.tmpl Add support of utf8mb4 for mysql (#6992) 2019-05-24 00:15:26 -04:00