mirror of
1
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 Display branch name in delete branch confirmation modal. (#5654) 2019-01-06 15:08:25 -05:00
diff Revert "Fix wrapping long code lines in UI" (#6074) 2019-02-15 02:23:20 -05:00
editor Fix file edit change preview functionality (#5300) 2018-11-09 14:05:43 +02:00
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 Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
activity.tmpl Restrict permission check on repositories and fix some problems (#5314) 2018-11-28 19:26:14 +08:00
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 2018-03-19 22:29:16 +08:00
commit_status.tmpl Add `noreferrer` to rel='noopener` for <a> tags (#4328) 2018-07-03 19:52:36 -04:00
commits.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
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 #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
graph.tmpl Fix issue link rendering in commit messages (#2897) 2017-11-13 09:35:55 +08:00
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 Fix typos in i18n variable names. (#4080) 2018-07-04 19:43:21 +08:00
search.tmpl Don't warn users about *every* dirty form (#3707) 2018-03-23 22:10:42 +08:00
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 Add `noreferrer` to rel='noopener` for <a> tags (#4328) 2018-07-03 19:52:36 -04:00
view_file.tmpl Serve audio files using HTML5 audio tag (#5221) 2018-10-30 10:17:26 +08:00
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 #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00