stroucki
d664d3dc02
Handle ssh key import better ( #224 )
...
* Handle user ssh key input better
ssh_key: when user submitted keys had a newline at the end, strings.Split
would have created a slice with an empty last element, and the key type
check would be incorrect. Perhaps a better way is to look for 'ssh-rsa' or
'ssh-dsa' at the beginning of the string, but this is simple.
* ssh_key: correct indentation
2016-11-24 08:52:55 +08:00
Sandro Santilli
391858563b
Lint webhook.go, unexports simpleMarshalJSON ( #198 )
2016-11-22 14:42:52 +08:00
Ethan Koenig
875d9751aa
API endpoints for stars
2016-11-16 22:51:54 -05:00
Bo-Yi Wu
8c94965a88
fix variable assigned and not used.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com >
2016-11-15 14:16:27 +08:00
Sandro Santilli
3e2566b25d
Fix lint errors in models/wiki (just add methods docs)
...
See #70
2016-11-14 18:01:46 +01:00
Andrey Nering
c8faf267df
Remember diff view style ( #163 )
2016-11-13 10:54:04 +08:00
LefsFlare
3049160a97
Fixes possible vulnerabilities with keyword hijacking ( #20 )
...
- Added public entries to reserved keywords list
- Rename variables
- Derped comment
2016-11-12 13:26:45 +01:00
Lunny Xiao
b77d834565
Bug fixed for issues ( #156 )
2016-11-12 13:06:33 +01:00
Lunny Xiao
77d949dd16
bug fixed caused by #153 ( #154 )
2016-11-12 09:30:46 +01:00
Lunny Xiao
f28309e510
use in instead string join ( #155 )
2016-11-12 09:29:18 +01:00
Lunny Xiao
e0447d8fc1
fixed bug #151 caused Find should be Get ( #153 )
2016-11-12 00:01:09 +01:00
Lunny Xiao
9343297ec9
optimization on database IN
2016-11-12 01:31:37 +08:00
Lunny Xiao
6512754a79
bug fixed for 500 caused by get org users ( #149 )
2016-11-12 00:55:06 +08:00
Thibault Meyer
43e3c1d1cc
Normalize files with gofmt
2016-11-11 13:11:45 +01:00
Sandro Santilli
d246d7acb7
Fix import path of go-sdk ( #141 )
...
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
Thibault Meyer
bb0bf29164
Remove unused import
2016-11-10 21:10:25 +01:00
Thibault Meyer
0971249a03
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
...
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
2016-11-10 21:05:52 +01:00
Thibault Meyer
50df9768f3
Rewrite XORM queries
2016-11-10 20:59:51 +01:00
Sandro Santilli
acb138c244
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
...
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
2016-11-10 17:24:48 +01:00
Matthias Loibl
3569ed71ba
Remove go version from build tags ( #133 )
2016-11-10 08:43:49 -02:00
Lunny Xiao
4b632bb41b
Merge pull request #121 from joubertredrat/feature-last-login
...
Last Login for admin manage your users
2016-11-10 17:20:55 +08:00
Lunny Xiao
f4517ba470
Merge pull request #129 from lunny/lunny/SQL_instead_Sql
...
use x.SQL instead of x.Sql
2016-11-10 17:12:14 +08:00
Thibault Meyer
f88090a2fe
Ordering organizations and users by name
2016-11-10 09:18:54 +01:00
Lunny Xiao
ce784fdfad
use x.SQL instead of x.Sql
2016-11-10 15:20:48 +08:00
Joubert RedRat
8c1f9a1283
Support to last login feature
2016-11-09 08:53:45 -02:00
Lunny Xiao
f5823a41e1
Merge pull request #18 from LefsFlarey/issue/3675
...
Fix 500 error caused by deleted users on issues (#3675 )
2016-11-09 15:14:18 +08:00
Flare
39fceb6e35
Fix err not being nil
2016-11-09 13:07:01 +08:00
Lunny Xiao
6b7f59948a
Merge pull request #73 from bkcsoft/gt/2164-release-pagination
...
Add Pagination to Releases-page (and de-duplicate pagination templates)
2016-11-08 10:39:03 +08:00
Sandro Santilli
5b2f4f227b
Fix type in unused constant name ( #111 )
...
* Write LDAP, SMTP, PAM, DLDAP back to all uppercase
* Fix type in unused constant name
* Other MixCased fixes
* Complete MixerCasing of template constants
* Re uppercase LTS and LDAPS suffixes
* Uppercase JSON suffix in constant names
* Proper case LoginNoType
* Prefix unexported template path constants with "tpl"
2016-11-07 18:58:22 -02:00
Sandro Santilli
740e0514cf
And others
2016-11-07 17:53:22 +01:00
Sandro Santilli
b7a714126b
more
2016-11-07 17:41:28 +01:00
Sandro Santilli
8a7847982a
Security protocols
2016-11-07 17:38:43 +01:00
Sandro Santilli
8719a7d27a
More mixage
2016-11-07 17:37:28 +01:00
Sandro Santilli
679f39b5ef
More overlooks
2016-11-07 17:35:34 +01:00
Sandro Santilli
33bd2e4f90
This one I overlooked before
2016-11-07 17:33:03 +01:00
Sandro Santilli
fefdd3bbaf
More...
2016-11-07 17:30:04 +01:00
Sandro Santilli
353e6c4cfc
More MixedCase consts
2016-11-07 17:24:59 +01:00
Sandro Santilli
78d721a905
ACCESS_MODE_* -> AccessMode*
2016-11-07 17:20:37 +01:00
Sandro Santilli
d02733c669
More MixedCase consts
2016-11-07 17:08:21 +01:00
Sandro Santilli
f368ff5d88
Use MixedCase constant names
...
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
2016-11-07 17:05:08 +01:00
Thomas Boerger
0407d5f9cb
Merge pull request #108 from go-gitea/go-sdk
...
Replaced gogits go-gogs-client with go-sdk
2016-11-07 16:31:17 +01:00
Sandro Santilli
430bed3235
Merge pull request #103 from strk/GOGS_drop
...
Replace GOGS with GITEA in variable names
2016-11-07 16:30:48 +01:00
Joubert RedRat
630c0bbda5
Replace Gogs to Gitea in installation options
2016-11-07 13:26:19 -02:00
Thomas Boerger
8370af17f2
Replaced go-gogs-client with go-sdk imports
2016-11-07 16:10:32 +01:00
Sandro Santilli
9c9b7166cd
Fix typo in unused constant name
2016-11-07 16:06:21 +01:00
Sandro Santilli
d90e33d6df
Replace GOGS with GITEA in variable names
...
Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables
as a fallback if the equivalent GITEA_* are not set,
warning user about the need for change.
Does not change "gogs" to "gitea" in webhook type name
Because "gogs" hook type is part of the API (routes) and used
in templates...
Closes #87
2016-11-07 16:05:18 +01:00
Kim "BKC" Carlbäcker
229cfdcf43
Add Pagination to Releases-page
2016-11-07 11:41:09 +01:00
Sandro Santilli
2cc11efdcf
Replace gogits/git-module dependency with go-gitea/git ( #94 )
...
* Replace gogits/git-module dependency with go-gitea/git
Fixes #92
* Remove git alias for git module import (not needed)
2016-11-06 11:18:34 -02:00
LefsFlare
961087062c
Adds checking of reserved keywords against team names ( #22 )
2016-11-06 10:07:03 +01:00
Thibault Meyer
cbc7172f50
Ordering team by name ascending except for 'Owners' ( #48 )
2016-11-06 09:59:21 +01:00