1
0
Fork 0
forgejo/templates/repo
Mura Li 3186ef554c Support search operators for commits search (#6479)
* Support searching commits with prefix syntax

For now, support auther: committer:
When more than one prefix is supplied is presented, the result is the union.
When different prefixes are supplied, the result is the intersection.

For example,
"author:alice author:bob"
=> the result is all commits authored by Alice OR Bob

"hello committer:alice"
=> the result is all commits committed by Alice AND has the keyword
'hello' in the message.

Note that there should NOT have any space after the colon(:) of the prefix.
For example,
"author:bill" => correct
"author: bill" => wrong

* Remove unneeded logging

* Add missing files of test repository

* Add missing repo_unit entries to test fixtures

* Update test cases

* Add tooltip for commits search button

* Update tooltip text

I have no idea about how to format it with line breaks.

* Make the usage example more real

* Add a test case

* Add new options struct for SearchCommits

* Prefer len(s) > 0 over s != ""

* Add NewSearchCommitsOptions
2019-04-12 10:28:44 +08:00
..
branch
diff Revert "Fix wrapping long code lines in UI" (#6074) 2019-02-15 02:23:20 -05:00
editor
issue Fixes #6514 - New Pull Request on files and pulls pages the same (#6515) 2019-04-09 22:16:29 +01:00
pulls Prevent server 500 on compare branches with no common history (#6555) 2019-04-09 21:45:58 +01:00
release Properly escape release attachment URL (#6512) 2019-04-05 11:28:10 -04:00
settings Allow admin users to set a repositoires visibility to public, even if FORCE_PRIVATE is to true (#6541) (#6572) 2019-04-11 16:32:42 +08:00
wiki
activity.tmpl
branch_dropdown.tmpl
commit_status.tmpl
commits.tmpl
commits_table.tmpl Support search operators for commits search (#6479) 2019-04-12 10:28:44 +08:00
create.tmpl Minor UI tweaks (#5980) 2019-02-19 18:09:47 -05:00
empty.tmpl Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
forks.tmpl
graph.tmpl
header.tmpl Fix fork button (#6223) 2019-03-05 19:48:30 -05:00
home.tmpl Minor UI tweaks (#5980) 2019-02-19 18:09:47 -05:00
migrate.tmpl
search.tmpl
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 2019-04-02 08:41:19 +08:00
user_cards.tmpl
view_file.tmpl
view_list.tmpl Add title attributes to all items in the repo list viewer (#6258) 2019-03-18 22:28:39 -04:00
watchers.tmpl