gogs/templates
Sergey Dryabzhinsky 303fa37b60 repo: support avatars (#5221)
* First code for repository avatars

* Last code for repository avatars

- add new option for repo avatars location on filesystem
- add route catch in web
- add new fields to repo model
- add migration
- update settings handlers
- update repo header template

* Update locale messages

* Add repo avatars to home page

* Add repo avatars to organization right panel

* Show repo avatars in repo list

* Remove AvatarEamil field, remove Gravatar support, use generic locale messages

* Fix migration

* Fix seed and not used tool

* Revert public css changes, add them to less files

* Latest lessc (2.6.0) don't put result into file but output to stdout

So redirect output to file

* Simplify things:

- migration don't needed, and table changes too
- just upload file to repo avatar storage
- or generate random image

* Fix repo image seed - name not unique

* Get rid of not needed model fields

* Class value is enough, remove height attribute

* Don't generate random avatar for repository

- use html and semantic ui icons if no avatar found

* Update styles and templates for repo

- use repo icon as default avatar
- use globe icon for public repos
- add micro style for repo avatars at dashboard

* Remvoe redundant empty line

* Fix nl2br filter - must return string

* Fix css style for micro-repo-avatar in dashboard list

* Remove `|len`, works fine w/o it.

* Update after review 2:

- use static route for repository avatar
- format images settings block in settings

* Update after review 2:

- no random avatar for repo

* Update after review 2:

- no random avatar for repo 2
- update imports
- update UploadAvatar* functions

* Update after review 2:

- update templates

* Fix trace call

* Remove unused immport since we use static route for repo avatars.
2018-06-17 20:21:52 +08:00
..
admin templates: fixes broken UI under supported resolution (1024x768) #5179 (#5182) 2018-04-24 09:54:22 -04:00
base repo: minor improve for PR #5219 and support UTF-8 byte count 2018-06-11 21:06:24 +08:00
explore repo: support avatars (#5221) 2018-06-17 20:21:52 +08:00
inject templates: able to inject content to head and footer (#1286) 2017-02-24 18:26:41 -05:00
mail templates/mail/auth: update copyright year (#5224) 2018-05-13 05:25:51 -04:00
org repo: support avatars (#5221) 2018-06-17 20:21:52 +08:00
repo repo: support avatars (#5221) 2018-06-17 20:21:52 +08:00
status pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL} 2017-04-06 17:27:57 -04:00
user repo: support avatars (#5221) 2018-06-17 20:21:52 +08:00
.VERSION pkg/setting: ignore config inline comment by default 2018-06-17 09:10:18 +08:00
home.tmpl MISC: fix Mac OS X → macOS (#5168) 2018-04-16 19:29:11 -04:00
install.tmpl install: validate port in SMTP host address (#2243) 2017-04-07 23:23:39 -04:00