2
0
Commit Graph

185 Commits

Author SHA1 Message Date
Justin Ray Vrooman
32cd7b18fd fix grammar + typo. (#3453) 2016-08-12 17:06:07 -07:00
Thibault Meyer
8467154168 Fix typo CacheInternal -> CacheInterval (#3432) 2016-08-11 05:59:11 -07:00
Unknwon
c94b4f69fc #3091 show Git configs on admin panel 2016-08-10 11:01:42 -07:00
Sandro Santilli
82d2c65308 Add support for federated avatars (#3320)
* Add support for federated avatars

Fixes #3105

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 #3214

* 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
2016-08-07 10:27:38 -07:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon
d45a26e396 Minor HTML fix for delete repository notice 2016-07-23 20:42:46 +08:00
Unknwon
27778760b9 #2937 able to prohibit user login 2016-07-16 10:22:16 +08:00
Pheng Heong TAN
e7d4650541 Modify behaviour of repo-delete. (#3232)
Re: issues gogits/gogs#2863 and gogits/gogs#3231

As a result of modifications to the contents of the conf folder, `make bindata`
was run, causing an update to bindata.go.

Meta
-----
This commit will be rebased onto the 'develop' branch.
2016-07-09 13:13:57 +08:00
Unknwon
da9ed19994 Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
2016-07-08 07:25:09 +08:00
Unknwon
e84cef16cf #13 finish user and repository search
Both are possible on explore and admin panel
2016-03-11 15:33:12 -05:00
Unknwon
8fbb98b3ee #1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
2016-03-03 15:09:43 -05:00
Unknwon
4a378f95f8 Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
2016-02-27 20:48:39 -05:00
Unknwon
8015d40786 Minor fix for #2660 2016-02-24 23:59:17 -05:00
Josh Frye
4e4d720851 Test mailer button. Addresses #1531 2016-02-24 09:48:05 -05:00
Unknwon
68fc354f7d Minor fix for #2634
Add AttributesInBind option in new auth source form.
2016-02-20 14:56:27 -05:00
Adam Strzelecki
b4bd486184 LDAP: Fetch attributes in Bind DN context option
This is feature is workaround for #2628 (JumpCloud) and some other services
that allow LDAP search only under BindDN user account, but not allow any LDAP
search query in logged user DN context.

Such approach is an alternative to minimal permissions security pattern for
BindDN user.
2016-02-20 14:12:32 +01:00
Unknwon
8d510aa6ff #2633 fix removed config option 2016-02-16 13:27:02 -05:00
Unknwon
7ba66bb20b #2554 reinitialize all repos from the db
- Update locales
2016-02-04 12:51:00 -05:00
Unknwon
fbb9c8b998 fix #2416 2016-01-26 02:00:16 -05:00
Unknwon
8147202f8a #2156 add edit org link in admin panel 2015-12-12 15:47:59 -05:00
Unknwon
c2717eb029 #2156 admin able to edit organization max repo creation 2015-12-11 19:24:57 -05:00
Unknwon
74ceced0e8 #1575 Limit repo creation 2015-12-10 12:37:53 -05:00
SlavikZ
de9a4b369b LDAP parameters UI: bind_dn and bind_password are not required 2015-12-09 21:02:19 +02:00
Adam Strzelecki
14c04615a0 Indent all templates with tabs
This commit improves templates readability, since all of them use consistent
indent with all template command blocks indented too.

1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks
   such as {{if}} {{with}}

2. Cleans all trailing white-space

3. Adds trailing last line-break to each file
2015-12-08 00:57:46 +01:00
Unknwon
64cf523389 remember page number when delete repo 2015-12-05 17:49:46 -05:00
Unknwon
ab04be1647 #2063 Ability to delete repo from admin panel 2015-12-05 17:39:29 -05:00
Unknwon
9f75c6ce3d #2052 advanced select ops for system notices 2015-12-05 01:09:14 -05:00
Unknwon
2003d25c5f #2052 Ability to batch delete system notices 2015-12-01 23:33:08 -05:00
Adam Strzelecki
8d0ee10100 LDAP: Optional user name attribute specification
Consider following LDAP search query example:

    (&(objectClass=Person)(|(uid=%s)(mail=%s)))

Right now on first login attempt Gogs will use the text supplied on login form
as the newly created user name. In example query above the text matches against
both e-mail or user name. So if user puts the e-mail then the new Gogs user
name will be e-mail which may be undesired.

Using optional user name attribute setting we can explicitly say we want Gogs
user name to be certain LDAP attribute eg. `uid`, so even user will use e-mail
to login 1st time, the new account will receive correct user name.
2015-12-02 00:20:14 +01:00
Unknwon
adc7ce29e9 add some log 2015-11-21 19:11:57 -05:00
Unknwon
9ce6a3a9ee minor fix on #1694 2015-11-21 12:58:31 -05:00
Antoine GIRARD
2b6d98c0fa Fix admin configuration new ui 2015-11-21 12:57:28 +01:00
Unknwon
8bffdd6c0b add admin op: delete missing repos 2015-11-18 15:37:48 -05:00
Unknwon
bc2129a699 fix #1990 2015-11-18 14:12:10 -05:00
Unknwon
356c53f4cf Merge pull request #1769 from sapk/fix-admin-dashboard-new-ui
Fix admin dashboard new ui
2015-11-18 10:24:35 -05:00
Unknwon
efd1b30453 #1511 Allow local import only for admin users 2015-11-03 18:40:52 -05:00
Antoine GIRARD
90d0f58f0c Fix indent tmpl 2015-10-14 01:09:33 +02:00
Antoine GIRARD
2ab4eddd6f To quick to copy-paste 2015-10-13 02:08:13 +02:00
Antoine GIRARD
4d8588eef3 Implement new ui to dashboard 2015-10-13 01:40:35 +02:00
Unknwon
41a27b7e75 #1525 Triggere mailer for admin created accounts 2015-09-25 19:45:44 -04:00
无闻
dd34da15d1 Merge pull request #1693 from sapk/fix-admin-repo-new-ui
Fix admin repos new ui
2015-09-25 19:05:27 -04:00
Antoine GIRARD
ae2a9e0aae Fix admin repos new ui 2015-09-26 00:38:43 +02:00
Antoine GIRARD
24d3309ae5 New admin organization UI 2015-09-25 19:54:52 +02:00
Antoine GIRARD
20795dbbf5 Add total next to system notice 2015-09-25 18:36:05 +02:00
Antoine GIRARD
476bbbc610 New admin notice UI based on user list example 2015-09-25 18:13:38 +02:00
Unknwon
6fa54b35e4 drop oauth2 feature support 2015-09-17 16:11:44 -04:00
Unknwon
380cd2a21c revert simple LDAP userDN and update example 2015-09-16 12:15:14 -04:00
Unknwon
6bf4dbca56 #1637 able to skip verify for LDAP 2015-09-14 15:48:51 -04:00
Unknwon
b627c288ec #697 update locale and admin panel 2015-09-13 11:16:29 -04:00
Unknwon
0d977db881 #697 and #1606 and new admin edit user UI 2015-09-13 11:07:21 -04:00