270 Commits (587d870f1edc51bf86bd0c213424d418702c9a24)

Author SHA1 Message Date
Unknwon 7e7613cdec Fix template nil error 8 years ago
Unknwon a5b88c4d0c Fix template error [CI SKIP] 8 years ago
Unknwon 99385db0c4 #3320 code cleanup 8 years ago
Sandro Santilli 90dd0657b5 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
8 years ago
Unknwon 50422f1fc2 #3348 always use relative avatar link in the template 8 years ago
Unknwon e74630ae3b #1384 add pagination for repositories 8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 8 years ago
Unknwon 971e2c3bd6 Upgrade octicon to 4.3.0 8 years ago
Unknwon c083d76567 #2937 able to prohibit user login 8 years ago
Sandro Santilli 76a0e43e88 Do not assume avatar needs be changed from gravatar.com (#3209)
Always send user to settings screen to change avatar.
Drops "change_custom_avatar" localized message, keeps "change_avatar"
for the generic one.

NOTE: only changes the en-US locale, as per
https://github.com/gogits/gogs/wiki/Contributing-Code#those-we-do-not-accept

NOTE: requires rebuild of bindata.go to fully see effects
8 years ago
Unknwon 414eb22ef9 #1597 fix activitity feeds for pull requests 8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Andrey Nering 13e71acadf Render emojis in more places. 8 years ago
Unknwon 912f7b51e9 #1821 add actions for close and reopen issues 8 years ago
Unknwon aa5e837c65 fix #2454 8 years ago
Florian Kaiser 532f9fdd99 Use icon repo-forked instead of repo-lock for private, forked repos 9 years ago
Unknwon ee814bf8d6 #2491 minor fix for sr on dashboard 9 years ago
Unknwon 4deb876343 Minor fix for #2494
- Change tooltip size from mini to tiny in profile page
9 years ago
Unknwon c631a4a9b9 URL fix for #2287 9 years ago
Unknwon dccfadf7b8 hide section with user has no organizations 9 years ago
Unknwon 29b07693dd minor fix to #2383
- add tooltip for organization name in profile
9 years ago
ExMex 40413c5c6c Added improvement from Unknwon 9 years ago
ExMex 53a63de9dc Added links to org profile icons 9 years ago
ExMex f610bfa8a2 Added organization display on profile
Fixed "Follower" Icon too big
9 years ago
Unknwon f43cc90841 #2287 Truncate repository name if too long 9 years ago
Unknwon 21d7b5acaf fix #2367 9 years ago
Unknwon 13fe733037 #2264 use monospaced font for commit IDs in news feeds 9 years ago
Unknwon a49af93faf #1692 APIs: Users Followers
- User profile un/follow
- List user's followers/following
9 years ago
Unknwon cadf03db68 #2180 fix avatar link when disable gravatar 9 years ago
Unknwon 837155577a #2159 use icon+tooltip to replace text 9 years ago
Unknwon d0b0d24f22 #2154 disable change user for non-local users
- #2153 remove require for gravatar
9 years ago
Unknwon 2a8d71367d #2029 not show content of issue in activity timeline 9 years ago
Unknwon 3d5d61778a #1938 #1374 disable password change for non-local users 9 years ago
Unknwon b8d48bdb62 #2037 Add "New Mirror" button on Dashboard 9 years ago
Angus Gibson 06d293a84e Only show comparison link for >2 commits #1110
We can look at the PushCommits object to see how many commits were
included in a commit, and add some template logic to only show the
comparison link when there are at least 2 commits in a push. We also
correct the link to display the number of commits.
9 years ago
Adam Strzelecki da2585c11e 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
9 years ago
Unknwon 4795fa01d8 fix #2101 9 years ago
Gibheer 3d54f6c0a4 add new mirror button to dashboard
This adds the button to create a new mirror on the dashboard at the same
place where "new repository" and "new organization" already exist.
9 years ago
Unknwon 3ca544912f #1944 Drop /org/ URL path prefix in organization home page 9 years ago
Unknwon 52c8f69163 fix #650 9 years ago
Arthur Ouyang e04c97b9fa Fix #1965 - the hyperlink and the display name of the branch
The hyperlink and the display name of the branch if the branch is in a folder or the branch name has '#'
9 years ago
Unknwon ff5f14431e fix #1448 9 years ago
Unknwon cceb3364bb CSS fix 9 years ago
Unknwon 5dc3dd1704 fix #1960 9 years ago
Unknwon 1d57f0d64f Show custom avatars in commits 9 years ago
Unknwon 6a664e88c7 #1854 show issue content 9 years ago
Unknwon 0f438ef0b3 new dashboard ui 9 years ago
Alexey Makhov 1bfebdcdf6 #1854 improves 9 years ago
Alexey Makhov 588a0db218 #1854 issue title at dashboard 9 years ago
Unknwon 603c7389b8 #1459 Dashboard issues lacks sorting 9 years ago