aboutsummaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Set user search base field optional in DLDAP edit page (#6779)ngourdon2019-04-281-1/+1
|
* fix new team 500 (#6749)Lunny Xiao2019-04-251-1/+1
| | | | | | | | * fix new team 500 * Update models/unit.go Co-Authored-By: lunny <xiaolunwen@gmail.com>
* fix template error (#6737)Lanre Adelowo2019-04-241-1/+1
|
* Order file actions equal to GitHub (#6706)Joel da Rosa2019-04-241-1/+1
|
* Show "delete branch" button on closed pull requests (#6570) (#6601)Mario Lubenka2019-04-201-1/+11
| | | | | | | | | | * Show button to delete a pull request branch after a pull request has been closed (#6570) Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com> * Update routers/repo/pull.go Co-Authored-By: saitho <mario.lubenka@googlemail.com>
* Unifies pagination template usage (#6531) (#6533)Mario Lubenka2019-04-208-135/+14
|
* Add option to blame files (#5721)Andrzej Ressel2019-04-193-1/+57
|
* Add support for MS Teams webhooks (#6632)Daniel Grier2019-04-195-0/+23
|
* Improve listing performance by using go-git (#6478)Filip Navara2019-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use go-git for tree reading and commit info lookup. Signed-off-by: Filip Navara <navara@emclient.com> * Use TreeEntry.IsRegular() instead of ObjectType that was removed. Signed-off-by: Filip Navara <navara@emclient.com> * Use the treePath to optimize commit info search. Signed-off-by: Filip Navara <navara@emclient.com> * Extract the latest commit at treePath along with the other commits. Signed-off-by: Filip Navara <navara@emclient.com> * Fix listing commit info for a directory that was created in one commit and never modified after. Signed-off-by: Filip Navara <navara@emclient.com> * Avoid nearly all external 'git' invocations when doing directory listing (.editorconfig code path is still hit). Signed-off-by: Filip Navara <navara@emclient.com> * Use go-git for reading blobs. Signed-off-by: Filip Navara <navara@emclient.com> * Make SHA1 type alias for plumbing.Hash in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Make Signature type alias for object.Signature in go-git. Signed-off-by: Filip Navara <navara@emclient.com> * Fix GetCommitsInfo for repository with only one commit. Signed-off-by: Filip Navara <navara@emclient.com> * Fix PGP signature verification. Signed-off-by: Filip Navara <navara@emclient.com> * Fix issues with walking commit graph across merges. Signed-off-by: Filip Navara <navara@emclient.com> * Fix typo in condition. Signed-off-by: Filip Navara <navara@emclient.com> * Speed up loading branch list by keeping the repository reference (and thus all the loaded packfile indexes). Signed-off-by: Filip Navara <navara@emclient.com> * Fix lising submodules. Signed-off-by: Filip Navara <navara@emclient.com> * Fix build Signed-off-by: Filip Navara <navara@emclient.com> * Add back commit cache because of name-rev Signed-off-by: Filip Navara <navara@emclient.com> * Fix tests Signed-off-by: Filip Navara <navara@emclient.com> * Fix code style * Fix spelling * Address PR feedback Signed-off-by: Filip Navara <navara@emclient.com> * Update vendor module list Signed-off-by: Filip Navara <navara@emclient.com> * Fix getting trees by commit id Signed-off-by: Filip Navara <navara@emclient.com> * Fix remaining unit test failures * Fix GetTreeBySHA * Avoid running `git name-rev` if not necessary Signed-off-by: Filip Navara <navara@emclient.com> * Move Branch code to git module * Clean up GPG signature verification and fix it for tagged commits * Address PR feedback (import formatting, copyright headers) * Make blob lookup by SHA working * Update tests to use public API * Allow getting content from any type of object through the blob interface * Change test to actually expect the object content that is in the GIT repository * Change one more test to actually expect the object content that is in the GIT repository * Add comments
* Telegram webhook (#4227)techknowlogick2019-04-184-0/+24
|
* UX + Security current user password reset (#5042)AJ ONeal2019-04-183-4/+20
| | | | | | | | | | | | | | * allow current user to reset their own password * handle reset password edge cases properly and consistently * remove dangling assignment * properly label account recovery instead of reset password * remove 'Click here' from button * update English-only account-recovery templates
* Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)Richard Mahn2019-04-173-3/+538
|
* Add more title attributes on shortened names (#6647)zeripath2019-04-175-13/+13
|
* OAuth2 Grant UI (#6625)Jonas Franz2019-04-172-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add oauth2 grants ui Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add delete functionality Add translations Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Signed-off-by: Jonas Franz <info@jonasfranz.software> * Refactor DeleteOAuth2Grant Use results.Close() Signed-off-by: Jonas Franz <info@jonasfranz.software> * Refactor DeleteOAuth2Grant (again) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if user ID is zero Signed-off-by: Jonas Franz <info@jonasfranz.software> * Check if grant ID is zero Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add API for manipulating Git hooks (#6436)Segev Finer2019-04-171-0/+210
| | | | | | | | | | | | | | | | | | | | | | | | * Add API for manipulating Git hooks Signed-off-by: Segev Finer <segev@codeocean.com> * Replace code.gitea.io/sdk with PR branch temporarily for CI * Switch back to code.gitea.io/sdk@master * Return 403 instead of 404 on no permission to edit hooks in API * Add tests for Git hooks API * Update models/repo_list_test.go Co-Authored-By: segevfiner <segev208@gmail.com> * Update models/repo_list_test.go Co-Authored-By: segevfiner <segev208@gmail.com> * empty line
* update swagger-ui (#6661)Antoine GIRARD2019-04-161-2/+2
|
* Fixes #6659 - Swagger schemes selection default to page's (#6660)Richard Mahn2019-04-161-15/+26
|
* Fix 6655 - there is no need to EscapePound .Link as it is already escaped ↵zeripath2019-04-161-1/+1
| | | | | (#6656) Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update UI for topics labels on projects (#6639)하윤2019-04-152-4/+4
|
* Remove trailing slash from twitter card (#6619)techknowlogick2019-04-141-1/+1
|
* fix Open Graph og:image link (#6612)Andreas Shimokawa2019-04-141-1/+1
|
* Correctly adjust mirror url (#6593)zeripath2019-04-121-1/+1
|
* Improve issue autolinks (#6273)mrsdizzie2019-04-126-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * Improve issue autolinks Update autolinks to match what github does here: Issue in same repo: #1 Issue in different repo: org/repo#1 Fixes #6264 * Use setting.AppURL when parsing URL Using setting.AppURL here is a more reliable way of parsing the current URL and what other functions in this file seem to use. * Make ComposeMetas always return a valid context * Add per repository markdown renderers for better context * Update for use of context metas Now that we include the user and repo name inside context metas, update various code and tests for this new logic
* Support search operators for commits search (#6479)Mura Li2019-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Allow admin users to set a repositoires visibility to public, even if ↵Matthias Beckert2019-04-111-0/+4
| | | | | FORCE_PRIVATE is to true (#6541) (#6572) Signed-off-by: Matthias Beckert <beckert.matthias@googlemail.com>
* Fixes #6514 - New Pull Request on files and pulls pages the same (#6515)Richard Mahn2019-04-091-1/+1
| | | * Fixes #6514 - New Pull Request on files and pulls pages the same
* Prevent server 500 on compare branches with no common history (#6555)zeripath2019-04-092-4/+11
| | | | | * Prevent 500 if there is no common mergebase * Prevent creation of PR with no history
* Fixes pagination width on mobile view (#5711) (#6532)Mario Lubenka2019-04-081-6/+6
| | | Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Properly escape release attachment URL (#6512)mrsdizzie2019-04-051-1/+1
| | | | | | Make sure file attachments on a release get a properly escaped URL when linking. Fixes #6506
* Make distinction between DisplayName and Username in email templates (#6495)mrsdizzie2019-04-044-8/+8
| | | | | | | | | | | | | | | | | | * Make distinction between DisplayName and Username in email templates Store the actual username in the variable named Username and store the separate DisplayName in another variable. This allows us to access the actual username when we need, which currently fails if a user has set a full name. Fixes #6161 * Use u.Name directly No need for extra function, also change use in all mail sending functions here * Don't include Username when not used
* Show last commit status in pull request lists (#6465)Elias Norberg2019-04-022-0/+12
|
* Better logging (#6038) (#6095)zeripath2019-04-021-2/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* Add ui class to sub_menu to fix style in arc-green (#6477)John Olheiser2019-04-021-2/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fies #6468 - Uses space match and adds newline for all sed flavors (#6473)Richard Mahn2019-04-011-1/+1
|
* fix: avoid multi-clicks when perform oauth2 login (#6467)BetaCat2019-03-311-4/+15
|
* Hacky fix for alignment of the create-organization dialog (#6455)zeripath2019-03-281-18/+17
| | | | | | * Hacky fix for alignment of the create-organization dialog * Mangle the post-scripted red-asterisk back in to follow the Visibility Header
* Make "Ghost" not link to 404 page (#6410)oscar.lofwenhamn2019-03-275-5/+22
| | | | | | | | | | | | | * Make Ghost not link to 404 page * Make correct localization label show * Create and use GetLastEventLabelFake for when a Ghost user has made the action, thus not linking to a user profile * Add corresponding _fake entries to locale_en-US * Make Ghost avatar not link to 404 page * Make Ghost on milestone_issues not link to 404 page
* Fix Hook & HookList in Swagger (#6432)Segev Finer2019-03-261-5/+46
| | | Signed-off-by: Segev Finer <segev@codeocean.com>
* Updates SDK dep (#6406)Richard Mahn2019-03-221-0/+1
|
* Include more variables on admin/config page (#6378)mrsdizzie2019-03-191-0/+11
| | | | | | | | | | Include the current CustomPath location in the admin section and also display GITEA_WORK_DIR and/or GITEA_CUSTOM env var if they are set. Right now there is no easy way to see this information, and if you try and help most users they won't be able to tell you anything about these values -- just that their custom template isn't working, files aren't in the right place, etc... Now you can see all paths and if they were set by ENV or not.
* fix bug manifest.json will not request with cookie so that session will ↵Lunny Xiao2019-03-191-1/+1
| | | | created every request (#6372)
* Implement Default Webhooks (#4299)Russell Aunger2019-03-1811-17/+67
| | | | | | | | Partially implement #770. Add "Default Webhooks" page in site admin UI. Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0. Upon repo creation, copy the set of default webhooks into the new repo.
* Add title attributes to all items in the repo list viewer (#6258)John Olheiser2019-03-181-2/+2
|
* Add bio field for user (#6113)techknowlogick2019-03-182-0/+10
| | | | Fix #4339
* Include repo name in page title tag (#6343)mrsdizzie2019-03-181-1/+1
| | | Fixes #6265
* Add lang specific font stacks for CJK (#6007)zeripath2019-03-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lang specific font stacks * Force font changes Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix icons Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix octicons and icons Signed-off-by: Andrew Thornton <art27@cantab.net> * Just override the semantic ui fonts only Signed-off-by: Andrew Thornton <art27@cantab.net> * Missed the headers... override them too * Missed some more semantic ui stuff * Fix PT Sans Signed-off-by: Andrew Thornton <art27@cantab.net> * More changes Signed-off-by: Andrew Thornton <art27@cantab.net> * Squashed commit of the following: commit 7d1679e9079541359869c9e677ba7412bfcc59f3 Author: Mike L <cl.jeremy@qq.com> Date: Wed Mar 13 13:53:49 2019 +0100 Remove missed YaHei leftover from _home.less commit 0079121ea91860a323ed4e5cc1a9c0d490d9cefd Author: Mike L <cl.jeremy@qq.com> Date: Wed Mar 13 12:03:54 2019 +0100 Fix overdone fixes (inherit, :lang) commit 62c919915928ec1db4731d547e95885f91a0618d Author: Mike L <cl.jeremy@qq.com> Date: Wed Mar 13 02:29:10 2019 +0100 Fix elements w/ explicit lang (language chooser) commit b3117587aa2eb8570d60bed583a11ee5565418be Author: Mike L <cl.jeremy@qq.com> Date: Tue Mar 12 20:17:26 2019 +0100 Fix textarea also (to match body) commit 81cedf2c3012c4dd05a7680782b4a98e1b947f67 Author: Mike L <cl.jeremy@qq.com> Date: Tue Mar 12 19:41:39 2019 +0100 Revert css temporarily to fix conflict commit 80ff82797f3203cbeaf866f22e961334e137df89 Author: Mike L <cl.jeremy@qq.com> Date: Tue Mar 12 19:15:30 2019 +0100 Tweak CJK, fix Yu Gothic, more monospace inherits commit 581dceb9a869646c2c486dabb925c88c2680d70c Author: Mike L <cl.jeremy@qq.com> Date: Mon Mar 11 13:09:26 2019 +0100 Add Lato for latin extd. & cyrillic, improve CJK * update stylesheet
* Add same changes from issues page to milestone->issues page (#6328)John Olheiser2019-03-152-10/+26
|
* Add regenerate secret feature for oauth2 (#6291)Jonas Franz2019-03-091-1/+4
| | | | | | * Add regenerate secret functionality * Fix lint
* Integrate OAuth2 Provider (#5378)Jonas Franz2019-03-085-0/+175
|
* Fix fork button (#6223)John Olheiser2019-03-051-1/+1
|