Commit Graph

420 Commits (36b68fdb0187a1db8711f093cdfa6b6b620082b4)

Author SHA1 Message Date
Unknwon 042d350762 Fix only user has repo write access can comment
Thibault Meyer 6a81632e36 Fix typo CacheInternal -> CacheInterval ()
Unknwon c5d4a9e046 Add commit timestamp to webhook
Unknwon 15b0cbe318 update git-module require version
Unknwon bbe866122d fix regression of MustEnableIssues check
Unknwon b73318bc62 Fix 404 when comment on pulls and not using interal issue tracker
Sandro Santilli 90dd0657b5 Add support for federated avatars ()
* Add support for federated avatars

Fixes 

Removes avatar fetching duplication code
Adds an "Enable Federated Avatar" checkbox in user settings
(defaults to unchecked)

Moves avatar settings all in the same form, making
local and remote avatars mutually exclusive

Renames UploadAvatarForm to AvatarForm
as it's not anymore only for uploading

* Run gofmt on all modified files

* Move Avatar form in its own page

* Add go-libravatar dependency to vendor/ dir

Hopefully helps with accepting the contribution.
See also 

* Revert "Add go-libravatar dependency to vendor/ dir"

This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82.

* Make federated avatar setting a global configuration

Removes the per-user setting

* Move avatar handling back to base tool, disable federated avatar in offline mode

* Format, handle error

* Properly set fallback host

* Use unsupported github.com mirror for importing go-libravatar

* Remove comment showing life exists outside of github.com

... pity, but contribution would not be accepted otherwise

* Use Combo for Get and Post methods over /avatar

* FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR

* Fix persistance of federated avatar lookup checkbox at install time

* Federated Avatars -> Enable Federated Avatars

* Use len(string) == 0 instead of string == ""

* Move import line where it belong

See
https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md

Pity the import url is still the unofficial one, but oh well...

* Save a line (and waste much more expensive time)

* Remove redundant parens

* Remove an empty line

* Remove empty lines

* Reorder lines to make diff smaller

* Remove another newline

Unknwon review got me start a fight against newlines

* Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE

On re-reading the diff I figured what Unknwon meant here:
https://github.com/gogits/gogs/pull/3320/files#r73741106

* Remove newlines that weren't there before my intervention
Unknwon ab9c5fb5e7 allow render raw content
Use URL query parameter render=1 to render content in raw mode.
Unknwon 2f105f3979 completely disable builtin issue tracker when enable external tracker
Unknwon e7fd65f0cf better code structure and batch minor improvements
Unknwon 899e799459 support delete issue comment
Unknwon ae88d76032 Bump version
Unknwon f1b8d52eb3 fix no mail notification when issue is closed/reopened
Unknwon a752f09055 validate username attribute fetched from LDAP
Unknwon de10387f41 bump git-module requirement
Unknwon 1faaaeb3d9 Update glide.lock
Unknwon 7938506e07 update git-module require version
Unknwon 73b4acbb63 Update glide.yaml
Unknwon a4eaddff81 Update dep version
Unknwon 7826eae452 fix DEPRECATED Action signature erorr
Unknwon 60ae8ac3d2 Add route for
Unknwon 9bd9ad4205 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to 
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext
Unknwon b4f47a7623 attempt to fix invalid csrf token
Unknwon d733efc1cc Alpha support for custom templates
No guarantee for compatibility with future changes
Unknwon f76d821bda fix
Unknwon 2bf8494332 finish user and repository search
Both are possible on explore and admin panel
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon 58f0c68151 Some minor changes
Unknwon 12b5a76b0d Minor fix for
Tamás Molnár 9c91e27933 Added: Ability to delete org avatar.
Unknwon a5b0400be7 finish new access rights for collaborators
Unknwon 045f14fbd0 finsih UI work for access mode of collaborators
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
Unknwon a2f13eae55 some avatar setting changes
- Allow to delete current avatar
Unknwon 2d2d85bba4 support pull requests in same repository
Unknwon 9df6ce48c5 Minor fixes for
Josh Frye 2f228ddf31 Update delete wiki page route
Josh Frye 1ca171dbe9 Add ability to delete single wiki pages.
Unknwon 9e89584cb4 Allow setting git operations timeouts
- Migrate:  
- Clone: 
- Mirror, Pull
Unknwon baaf6046a1 Minor fix for
Josh Frye c27038e392 Test mailer button. Addresses
Unknwon 72ce06eab8 fix missing slash for go-get meta
Unknwon 912f7b51e9 add actions for close and reopen issues
Unknwon 7140dbac95 Fix
Download-Fritz a1b28fc33c Rename MustEnablePulls() to MustAllowPulls() and simplify the contained check to AllowsPulls().
Unknwon 58e004f7da Remove cache avatar support and add its tests
Unknwon 9adfe453d5 delete repo local copy when transfer
Remote repository path is renamed but does not delete
outdated local copy which still has old repository path
as remote.
Josh Frye 8662990746 Add default branch to repo payload
Josh Frye 47adc0e8f7 Bump git-module. Fixes
Unknwon 739d5aa1d3 Merge pull request from fnkr/hide-other-teams-repos-from-org-page
Hide other teams & repos from organization page
Florian Kaiser 71bb7f6053 Escape unescaped periods in route regular expression
Florian Kaiser e35791b2b2 Only show teams the user has access to
Unknwon ee814bf8d6 minor fix for sr on dashboard
Unknwon db719abff2 stop compile bindata for TRANSLATORS
- update required version of git-module for 
Unknwon e0f0f72a36 disallow access of some pages for empty repo
Unknwon cc22c8a1ae update dep lib version requirement
Unknwon a49af93faf APIs: Users Followers
- User profile un/follow
- List user's followers/following
Unknwon f00fef0cd0 show commits count in PR tabs
Unknwon 19423957b1 rename import path
Unknwon 50264200f0 fix huge diff hangs
Unknwon 7509fa2c33 improve get commits performance
Unknwon 79dcd7ee6e able to identify git version on Windows
Unknwon 59c965a5ec admin able to edit organization max repo creation
Unknwon 477b4d3b50 fix form submit error
Unknwon 2a0bb1fa90 Limit repo creation
Unknwon 9a2e43bff2 move out git module and send push hook
Unknwon 4e0c697aaf force new INI version
Unknwon ca8ce793d1 Ability to delete repo from admin panel
Unknwon 404867f206 fix and fix
Unknwon f3eaa4c592 Set default language for i18n
Unknwon f41360d864 advanced select ops for system notices
Unknwon e538ff2770 fix and fix
Unknwon 56dd430a10 refactor API routes and some work for
Unknwon 5742f9fe69 fix
Unknwon cc8f5add6e fix
Unknwon ec2423ad7c more UI minor fixes
Adam Strzelecki 2580e7b57e UI: Always show menu on repo pages
Merges repo/sidebar.tmpl with repo/header.tmpl and makes every repo page use
middleware.RepoRef() necessary to display information on this menu.
Unknwon 0be8b1b1a1 Ability to batch delete system notices
Unknwon e42fcb033d wiki: finish edit
Unknwon 392f3ee210 wiki: finish new
Unknwon c50a3503e6 introduce git-shell
Unknwon 2b10fdc4dc Wiki: UI for page new
Unknwon 3ca544912f Drop /org/ URL path prefix in organization home page
Unknwon 52c8f69163 fix
Unknwon 987dcc5372 fix
Unknwon f455125d4d fix
Unknwon 29ed7872f8 repo sidebar active class
Unknwon 5dc3dd1704 fix
Unknwon 134d8e7681 work on
Unknwon e030109b5a fix api broken
Unknwon 7c80eba77f minor UI fix and fix ssh race
Unknwon 1d57f0d64f Show custom avatars in commits
Unknwon 676d774d88 fix
Unknwon a374751eb8 add Makefile
Unknwon 0fbb8c8826 New push to head repo of head branch: regenerate patch and retest apply
Unknwon b5fdf0947b reduce code
Unknwon 35a65736fa add get repo API
Unknwon 932dbccb67 fix import path, fix
Unknwon aff49b1c9e unified API error response
Steven Oud 6fe868a4d5 added repository remove option to api
kendaru b05c7b3faa moved routes to RouterRef group
kendaru 5c39d3fa7d changed integrated page number to GET
Steven c8aa9c6cb1 implemented : see users who forked/starred/watched a repository
Unknwon e787e73e2f fix URL match
Unknwon 3fb1b6a608 drop oauth2 feature support
Unknwon e5ed5904c6 GUI bug while adding ldap user
Unknwon 121a81a2c5 finish new edit auth UI
Unknwon 52ec80fa18 finish all new user settings UI
Unknwon 5020576e80 minor regexp fix on
Unknwon 56eb252098 fix repo name router bug
Unknwon c38754d432 allow upload avatar for org
Signed-off-by: Unknwon <u@gogs.io>
Unknwon 6a5c87afdd prepare 0.6.9 release
Unknwon 7ec991326d fix migrate api
Unknwon e5b105e513 fix migrate API
Unknwon 83dc2468f5 finish initial version of pull request
Unknwon d951824ff9 able to download archive by API
Unknwon 953bb06857 basic PR feature
Unknwon 37e0cee877 finish PR UI
Unknwon 8c046073a8 work on PR conversation
Unknwon c08600c59b new edit webhook UI
Unknwon 4217c2333c new create webhook UI
Unknwon 2881456421 new webhooks list UI
Unknwon 1cb03135b7 new repo git hooks UI
Unknwon a329bbc215 new org dashboard issues
Unknwon 062adbed8a add confirmation to delete ssh key
Unknwon 371572cf5f allow edit issue and comment
Unknwon 87f5ca8e1f able edit issue title
Unknwon 1453e91f41 minor fix on API response
Unknwon 54b52de6ee minor fix on API response
Unknwon 47ac579f09 only assign auto-admin when sign up by web
Unknwon 4c7b6414eb new access token UI
Unknwon 2493454587 new delete account UI and password confirmation
Unknwon 81b8427438 new UI on admin/monitor
Unknwon 6fdc881bd4 detect kill signal
Unknwon 30b428bf0e : 500 when visit a issue with issue/comments of deleted user
Unknwon cec38f2a8c able edit issue labels/milestone/assignee
Unknwon 133b19d0c5 finish view comments on issue page
Unknwon b410207dc1 add cache-control for attachments
Unknwon e67659bf8e fix serve attachment content type
Unknwon 34f6cbfc2a finish attachments when create issue
Unknwon 89c2bd4a0d finish create issue attachment UI
Unknwon 590c464c56 UI: create issue with title and content
Unknwon dea3a8c6a4 WIP: create PR - choose branch
Unknwon 9db4acc62e improve fork process
Unknwon 3d0583df0f fix private repo cannot trigger hook by SSH
Unknwon 9d414d4dd9 remove Index field of milestone
Unknwon 952c480f4f better version checker
Unknwon 39a3b768bc : Add Deployment Key Support
Unknwon 0705f55ce0 finish new milestone page
Unknwon 74bd6b939c milestone: edit