Commit Graph

76 Commits (2c6a0fdca83ab4ccc2e5628e4ca7d229c844618c)

Author SHA1 Message Date
Michael Kuhn 934dd41fa6 Make SHOW_USER_EMAIL also apply to profiles ()
The e-mail address is currently only hidden from the explore page.
Sandro Santilli 9182a35f18 Show user OpenID URIs in their profile ()
Bo-Yi Wu 23aba523b5 feat: support search bar on star tab of user profile. ()
* feat: support search bar on star tab of user profile.

* fix: update testing.

* fix: Using loadAttributes

* fix: remove empty line.

* remove LOWER

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Bo-Yi Wu b13232f524 feat: support paginater on star tab of user profile. ()
Bo-Yi Wu a90a215662 feat: Add search bar on user profile page. ()
derSuessmann 51d578ff33 Add Keep email private (see issue ). ()
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE.
- Add the new option to the install and admin/config pages.
- Add the new option to app.ini in the service section.
- Add the new option to the settings struct.
- Add English text strings to i18n.
- Add field KeepEmailPrivate to user struct.
- Add field KeepEmailPrivate to user form.
- Add option to UI.
- Add using noreply email address if user has "Keep Email Private".
An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit
messages (and hopefully all other git log relevant places). The
change relies on the fact that git commands should use
user.NetGitSig().
- Add hiding of email address in UI, if user has set "Keep Email Private".
- Add condition to show email address only on explore/users and user
pages, if user has not set "Keep Email Private".
- Add noreply email in API if set "Keep Email Private".
- Add a new service setting NO_REPLY_ADDRESS. The value of this
setting is used as the domain part for the user's email address in
git log, iff he decides to keep his email address private.
If the user decides to keep his email address private and this
option is not set 'noreply.example.org' is used, which no MTA
should send email to.

Add NO_REPLY_ADDRESS to conf/app.ini.
Thiago Avelino 787fda53ef UI config to toggle whether user email shows up in Explore Users ()
* UI config to toggle whether user email shows up in Explore Users

* Recommendation made by @tboerger
66a1c59fe7 (r94122732)

* fixed typo, rename ShowUserEmailInExplore to ShowUserEmail

* Fixed typo merged conflict

* Hide email in the user profile page

if you are active ShowUserEmail
ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725

* Please replace MustBool() with MustBool(true)
Andrey Nering b992858883 Tab on user profile to show starred repos ()
* Tab on user profile to show starred repos

* Make golint happy and use transactions on StarRepo function

* x -> sess

* Use sess.Close() instead of sess.Rollback()

* Add copyright

* Fix lint
Bwko 5ab85372da Added rel="noopener" to target="_blank" hrefs ()
* Added rel="noopener" to target="_blank" hrefs

* Replaced gogs.io/docs with docs.gitea.io
Matthias Loibl 7b6cc9244d Update link on user’s profile avatar to avatar settings ()
Kim "BKC" Carlbäcker 562f9b6eae Merge all pagination-templates into 'base/paginate'
to reduce code-duplicity
Unknwon 50422f1fc2 always use relative avatar link in the template
Unknwon e74630ae3b add pagination for repositories
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon 971e2c3bd6 Upgrade octicon to 4.3.0
Sandro Santilli 76a0e43e88 Do not assume avatar needs be changed from gravatar.com ()
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
Unknwon 4deb876343 Minor fix for
- Change tooltip size from mini to tiny in profile page
Unknwon dccfadf7b8 hide section with user has no organizations
Unknwon 29b07693dd minor fix to
- add tooltip for organization name in profile
ExMex 40413c5c6c Added improvement from Unknwon
ExMex 53a63de9dc Added links to org profile icons
ExMex f610bfa8a2 Added organization display on profile
Fixed "Follower" Icon too big
Unknwon 21d7b5acaf fix
Unknwon a49af93faf APIs: Users Followers
- User profile un/follow
- List user's followers/following
Unknwon cadf03db68 fix avatar link when disable gravatar
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
Unknwon 52c8f69163 fix
Unknwon ff5f14431e fix
Unknwon cceb3364bb CSS fix
Unknwon 5dc3dd1704 fix
Unknwon 043ded0896 fix
Unknwon f183c855d1 minor fix on
James Anderson 59a475163f Hide avatar-changing instructions unless it's your profile (resolves )
Unknwon eea9302d8f fix
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Peter Smit 7759b9ee6e Remove the "PHP" style formatting function
The "PHP" formatting function doesn't add anything, except an undocumented date format.

All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience.
Unknwon 6b7d35eade fix mirror issues uncaught
Unknwon 55dfe2c978 custom avatar upload
Unknwon 23eec25274 Fix , fix , fix
Unknwon d88ebd9a4b Fix
Unknwon 71e4689d11 Page: User profile
Unknwon 7ba9257a7f Add suburl support
Martin van Beurden 0055cbd365 Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts:
	modules/setting/setting.go

Conflicts:
	templates/repo/release/list.tmpl
	templates/user/dashboard/dashboard.tmpl

Conflicts:
	routers/repo/setting.go
Tristan Storch 69e332f432 Removed trailing white spaces
Removed trailing whitespaces with

```sh
for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done
```

and some handwork.
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!!
Unknown bbdfe25769 User code clean and ui improve
FuXiaoHei 1c88a541cb fix profile ui
Unknown 89c99167b2 Fix
Unknown 62d23e9154 HTTP no follow and offline mode
twitchyliquid64 d304a23787 Corrected grammar and spelling mistakes in templates. Normalizing to American English.