Commit Graph

89 Commits (98ae013e901927bc2ce4fffd6d10b4b964c49cd6)

Author SHA1 Message Date
Patrick G de39d09caa Improve grammar ()
Rémy Boulanouar 25d6e2a660 Add button to admin ui ()
* Add button to admin ui

* Update according to review

* Update locale_fr-FR.ini

* Rollback to locale french file
Lunny Xiao fd6034aaf2 Add units to team ()
* add units to team

* fix lint

* finish team setting backend

* finished permission controll on routes

* fix import blank line

* add unit check on ssh/http pull and push and fix test failed

* fix fixtures data

* remove unused code
Patrick G c4b5b121a5 Fix bad grammar and wordiness ()
* Fix bad grammar and wordiness

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini

* Update locale_en-US.ini
Jonas Östanbäck e214728725 Add new text for reset password flash ()
* Forgot password should use ResetPwdCodeLives, not ActiveCodeLives
 * Improve documentation for different send mail functions related to password reset
 * Improve documentation in conf/app.ini regarding xxx_CODE_LIVE_MINUTES settings
Jonas Östanbäck ddb63a7897 Correct spelling mistakes ()
* Nitpicking
Lauris BH 524885dd65 LDAP user synchronization ()
Lauris BH 51d0becb42 Add configuration option for default permission to create Organizations ()
Jorrit Klein Bramel 87efc8c6d4 Sort on repo size in admin panel ()
* fix  sort on repo size

* fix minor mistake in en-us locale
Lauris BH 0144817971 Do not allow commiting to protected branch from online editor ()
* Do not allow commiting to protected branch from online editor

* Add editor integration tests for adding new file and not allowing to add new file to protected branch
Willem van Dreumel 950f2e2074 Additional OAuth2 providers ()
* add google+

* sort signin oauth2 providers based on the name so order is always the same

* update auth tip for google+

* add gitlab provider

* add bitbucket provider (and some go fmt)

* add twitter provider

* add facebook provider

* add dropbox provider

* add openid connect provider incl. new format of tips section in "Add New Source"

* lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow)

* imports according to goimport and code style

* make it possible to set custom urls to gitlab and github provider (only these could have a different host)

* split up oauth2 into multiple files

* small typo in comment

* fix indention

* fix indentation

* fix new line before external import

* fix layout of signin part

* update "broken" dependency
Antoine GIRARD 431b26f6d7 Handle display of GPG key without end date ()
Antoine GIRARD 8371f94d06 Rework SSH key management UI to add GPG ()
* Rework SSH key management UI to add GPG

* Add more detail to gpg key display

* Update CHANGELOG.md

* Implement deletion UI

* Implement adding gpg UI

* Various fixes

- Fix duplicate entry in locale
- Re-generate hash before verification since they are consumed

* Add missing translation

* Split template

* Catch not found/verified email error
Lauris BH f42ec6120e Better URL validation ()
* Add correct git branch name validation

* Change git refname validation error constant name

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add git reference name validation unit tests

* Remove unused variable in unit test

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add url validation unit tests
Jonas be6edaddcb Repo size in admin panel ()
* Implementation of the feature to view repository size in admin panel
 * Move GetRepoSize to git module
 * Repository.RepoSize -> Repository.Size
 * RepoSize -> Size in template
 * Redo a few bits and pieces
 * Update size when syncing mirror or forking
 * Remove GetRepoSize
 * Changed fatal errors to error message

* Copy migration code from Gogs

* make fmt
Jonas 54f0293f0a Mirror sync interval specified as duration string ()
* Sync interval specifed as duration string

* Changed mirror interval text

* make fmt

* Add MinInterval for mirror sync

* Use duration internally

* Changed min default to 10m

* make fmt

* Incorrect default

* Removed defaults in MustDuration()

* Add Mirror interval migration

* Default values corrected

* Use transaction during migration

* Change http 500 to page with error message

* Cleanup session.commit()
Patrick G d800305b34 Commit search appearence fixes ()
* Fix button text to be consisstent with rest of UI

* Make all commits checkbox look nicer
Andrey Nering 4b284f814c UI and translation improvements
Andrey Nering b674460748 Add watch button on issue
Sandro Santilli 129b0d6a4b Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION ()
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION

Omit the configuration variable (the default) to be dependent.
Fixes 

* Move OpenID settings under Service object

* Show OpenID SignUp and SignIn status in admin panel / configuration
Andrey Nering 6a451a2b59 Minor improvements on commit graph UI ()
* Make "Commit Graph" link a button and translate it

* Add title on Commit Graph page
Jonas bbbd08edc1 Changed text when password reset disabled. ()
Fixes 
Antoine GIRARD 14fe9010ae GPG commit validation ()
* GPG commit validation

* Add translation

+ some little fix

* Move hash calc after retrieving of potential key + missing translation

* Add some little test
Sandro Santilli 9182a35f18 Show user OpenID URIs in their profile ()
Bo-Yi Wu 1c3bd436cc feat: Only use issue and wiki on repo. ()
Sandro Santilli 71d16f69ff Login via OpenID-2.0 ()
Patrick G 1476bf909e Make wording of commit search more clear
Fabian Zaremba f1d2f16b54 Add notice that LFS mirroring is not supported ()
* Add notice that LFS mirroring is not supported

* Drop German translation
Thomas Boerger 42032fdecf Synced licenses with github repo ()
* Added script to download licenses from github

* Synced licenses with github repo
Thomas Boerger a06c3ad2c0 Synced gitignores with github repo ()
* Renamed scripts directory into contrib

* Added script to download gitignores from github

* Synced gitignores with github repo
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)
Patrick G 79ec33fd60 Update locale_en-US.ini ()
Lunny Xiao be5738243c fix repo settings external tracker failed and check external urls ()
Patrick G ccc15b9e1a Make strings translatable () ()
* Add strings to ini

* Make strings translatable ()
Lunny Xiao 656efdc1c7 fix ini format incomiptable with crowdin ()
mcheng89 dbcd452758 rename OSX to macOS ()
Lunny Xiao 374f1ba41f update locale files to 2017-03-10 00:07 +08 ()
Patrick G c1c4609e4e Grammar fixes and small wording adjustments ()
* Grammar fixes and small wording adjustments

* More grammar fixes
Lunny Xiao 626bcf0547 merge locale files from crowdin, updated to 2017-03-09 19:28 +08 ()
puffybsd a30797425f Implements 1071, .gitignore support for FSharp and Clojure. ()
Sandro Santilli 44827698e2 Reword the reinit_missing_repos message to be clear about what it does ()
I was confused by current wording, which seemed to imply that
*records* would be initialized, while instead the function initializes
the *git repositories* instead, where missing but referenced.
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
Bo-Yi Wu 5cc275b1de feat: add git version on admin panel. ()
Lunny Xiao cf0f451c37 Add delete branch track on pull request comments ()
* add delete branch track on pull request comments

* don't change vendor
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
José Olivio M. Pedrosa 78544f827b Update pt-BR translations ()
* Update pt-BR translations

* Minor updates to translations

* Change "Pull Request" to "pull request".
* Change "Problemas" to "Issues" to keep consistency.
* Change "Propriedade" to "propriedade".
* Change "Wiki" to "wiki".
* Rename "questão" to "issue".
* Update almost all the strings from "[action]" section.

* Added new pt-BR translations