Commit Graph

1686 Commits (780cb692d64edfadea6f79fbbad2ef033cdbe796)

Author SHA1 Message Date
Ethan Koenig 09fe4a2ae9 Batch updates for issues ()
Sandro Santilli 7d8f9d1c46 Rename /forget_password url to /forgot_password
Also renames `forgot_password` translation key to
`forgot_password_title` and `forget_password` to
`forgot_password`

Includes entry in CHANGELOG about the breaking change
(and some markdown fixes in there)
Sandro Santilli f0efb615c5 Add LibreJS support ()
See See https://www.gnu.org/software/librejs/

Closes 
Lunny Xiao 608bbedee1 fix 500 caused by branches settings introduced by ()
Sandro Santilli 8a98a25d8e Show a link to password reset from password change and delete account ()
It's helpful when you forgot your password thus cannot change it
(can happen if you log in via OAuth2 or OpenID)

Also make sure that both the delete-account and password-change
links to forgot-password will have the primary email pre-filled
Patrick G ccc15b9e1a Make strings translatable () ()
* Add strings to ini

* Make strings translatable ()
Lunny Xiao b40496533b fix leave team 404 ()
Jonas f3bf409082 Log config pretty printer ()
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
Bo-Yi Wu 19bc2b10ae fix: Add str2html on DisplayName of Org. ()
Jonas a201977590 Fix for : Embed build tags ()
* Fix for 
Add build tags to ldflags and print in version output

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>

* Reworked formatBuiltWith function

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>

* Add tags to version information in admin panel

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>

* Added new variable for use on admin page.

Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>

* Fixed incorrect indentation
Jonas 9ad3a07989 Fix for : Corrected process ID placeholder to PID from Pid ()
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
Lunny Xiao 12e71e5706 Removed footer copyright year ()
* change footer copyright year from 2016 to 2017

* add 2016 copyright back

* remove the copyright year
puffybsd 8de8e11487 Fixes 1019, install page SMTP user is required to ()
to be an email address.

Signed-off-by: P.B. <puffybsd@yahoo.com>
Lunny Xiao 0e6b9ea786 Take back control of hooks ()
* git: delegate all server-side Git hooks ()

* create hooks directories

* take control hooks back

* fix lint

* bug fixed and minor changes

* fix imports style

* fix migration scripts
Willem van Dreumel 01d957677f Oauth2 consumer ()
* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)

* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)

* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
Denis Denisov fd941db246 Protected branches system ()
* Protected branches system

* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
  - Admin does not restrict
  - Owner not to limit
  - To write permission restrictions

* reformat tmpl

* finished the UI and add/delete protected branch response

* remove unused comment

* indent all the template files and remove ru translations since we use crowdin

* fix the push bug
Lunny Xiao b8f70a27a5 Security: fix XSS attack on alert ()
Lunny Xiao 6076c95dd1 Security: fix XSS attack on milestone ()
Reported by Miguel Ángel Jimeno.
Lunny Xiao dbe6d2ff8e fix docker link on install page ()
Lunny Xiao 847527fd6d Fix all the bugs in issues and pulls on dashboard ()
* fix all the bugs in issues and pulls on dashboard

* small fix and refactor

* add method getRepoIDs for IssueList
Bo-Yi Wu 4c12e2a4b9 fix: fill in ssh key title on setting of repo ()
* fix: fill in ssh key title on setting of repo

* fix: Don't overwrite ssh key title if exist.
Unknwon 134f3e6e09 Security: prevent XSS attach on wiki page
Reported by Miguel Ángel Jimeno.
Lunny Xiao 7a9a5c8a69 Fix assigned issues dashboard ()
* Fix assigned/created issues in dashboard. ()

* Fix assigned/created issues in dashboard.

* Use GetUserIssueStats for getting all Dashboard stats.

* Use gofmt to format the file properly.

* Replace &Issue{} with new(Issue).

* Check if user has access to given repository.

* Remove unnecessary filtering of issues.

* Return 404 error if invalid repository is given.

* Use correct number of issues in paginater.

* fix issues on dashboard
Bo-Yi Wu d67b278a0d feat: Able to disable non-admin to create new organization ()
Bo-Yi Wu 23aba523b5 feat: support search bar on star tab of user profile. ()
* feat: support search bar on star tab of user profile.

* fix: update testing.

* fix: Using loadAttributes

* fix: remove empty line.

* remove LOWER

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Andrew Boyarshin dc8248f8a4 Markdown rendering overhaul ()
* Markdown rendering overhaul

Cleaned up and squashed commits into single one.

Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>

* Fix markdown API, add markdown module and API tests, improve code coverage

Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
Bo-Yi Wu 5cc275b1de feat: add git version on admin panel. ()
Andrew 3f67676059 Implement basic Open Graph support. ()
Lunny Xiao 8a0be5e9f0 Bug fixed for deleted label in issue comment ()
* bug fixed for deleted label in issue comment

* fix indent
Lunny Xiao cf0f451c37 Add delete branch track on pull request comments ()
* add delete branch track on pull request comments

* don't change vendor
Bo-Yi Wu 40f4377717 feat: fill in ssh key title automatically. ()
Sandro Santilli 23a7527e04 Allow rendering alerts in dashboard ()
NOTE: useful when logging in via OpenID and connecting to user
Lunny Xiao 02a881aa32 show tags on dashboard issues ()
Sandro Santilli ed096186a7 social_register_hepler_msg -> social_register_helper_msg ()
* social_register_hepler_msg -> social_register_helper_msg

* register_hepler_msg -> register_helper_msg
Bo-Yi Wu b13232f524 feat: support paginater on star tab of user profile. ()
Stephen Brown 94130da63a Fixes by moving emoji tag to the correct span ()
Signed-off-by: Stephen Brown <steve@evolvedlight.co.uk>
Zsombor e388db311b Add checkbox to search for all the branches by commit message ()
and updating the vendor directory
Lunny Xiao f35b20b042 track issue title changes ()
Ethan Koenig 027591a3a5 Redirects for renamed repos ()
* Redirects for renamed repos

* Remove unused phrase from locales
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository ()
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
Bo-Yi Wu a90a215662 feat: Add search bar on user profile page. ()
Lunny Xiao 3e0525b47d Track assignee for issue ()
* track assignee for issue

* fix lint

* use getUserByID instead Get
Lunny Xiao 081485ecfd add milestone changed traker on issue view ()
Lunny Xiao f94869d2d1 Track labels changed on issue view & resolved ()
* track labels changed on issue view & resolved 

* add missing head comment & sort & fix refresh
Bo-Yi Wu d078aa30d6 feat: add search repository on dashboard. ()
Andrey Nering aa591317e7 Small UI fixes
Andrey Nering 5348e8b71a Fix color: closed PR was showing as purple instead of red
Bwko e08421017c Add ability to fork your own repos ()
Bwko 067ae5d96e Fix to reflect selected branch for fork ()
PullRequestCtx.HeadInfo did not contain the current selected branch
causing issue 
Bo-Yi Wu 2831267db1 refactor: move js to bottom and move css to top. ()