1. 07 Aug, 2016 3 commits
    • Sandro Santilli's avatar
      Add support for federated avatars (#3320) · 90dd0657
      Sandro Santilli authored
      * 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
      90dd0657
    • Unknwon's avatar
      ec92565f
    • Andrey Nering's avatar
      Improve diff highlight (#3390) · 2772791f
      Andrey Nering authored
      - Try to reduce memory allocations
      - Add possibility to disable diff highlight (can improve performance for large diffs)
      - Tweaking with cost for prettier (cleaner) diffs
      - Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
      2772791f
  2. 06 Aug, 2016 5 commits
  3. 05 Aug, 2016 3 commits
  4. 04 Aug, 2016 1 commit
  5. 03 Aug, 2016 5 commits
  6. 30 Jul, 2016 4 commits
  7. 29 Jul, 2016 1 commit
  8. 28 Jul, 2016 4 commits
  9. 27 Jul, 2016 1 commit
    • 마누엘's avatar
      routers/repo/release: Use correct branch reference (#3330) · fe60ca40
      마누엘 authored
      When calculating the current behind commit count the calculation should
      use the current release target to get the total commit count. Should the
      release target not exist anymore the calculation will return zero for
      the newest release on that target. Older releases on that target will then
      use that calculated commit count as reference.
      
      The only use case that is now somehow invalid is when the release target
      was merged / deleted after a tag on that release target:
      
          master 1 - - - - - - - 6
                  \             /
          branch   2 - 3 - 4 - 5
      
      When `4` is the last tag on branch `branch` and the branch `branch` is not
      yet deleted the calculated numbers would be:
      
          1 commits to branch since this release
      
      Now if the branch `branch` gets deleted the calculation function will not
      find the branch and use the commit count of the newest release (`4`) as
      reference resulting in:
      
          0 commit to branch since this release
      
      This fixes #3326
      fe60ca40
  10. 26 Jul, 2016 5 commits
  11. 25 Jul, 2016 3 commits
  12. 24 Jul, 2016 2 commits
  13. 23 Jul, 2016 3 commits