]> source.dussan.org Git - gitea.git/log
gitea.git
3 years agoFix bug in commit verification introduced in #13673 (#14040)
zeripath [Thu, 17 Dec 2020 20:42:33 +0000 (20:42 +0000)]
Fix bug in commit verification introduced in #13673 (#14040)

There is a slight bug in the commit_reader introduced in #13673 whereby
commit messages which have a final unterminated line miss their final line.

This PR fixes this.

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years agoDashboard search tweaks (#14008)
silverwind [Thu, 17 Dec 2020 19:58:21 +0000 (20:58 +0100)]
Dashboard search tweaks (#14008)

- Fix color of inactive pagination parts caused by overreaching CSS
selector.
- Slightly reduce horizontal padding on list items
- Add spacing around pagination and move it outside of <ul>

3 years agoDiff and code review refactors and improvements (#13922)
silverwind [Thu, 17 Dec 2020 15:52:58 +0000 (16:52 +0100)]
Diff and code review refactors and improvements (#13922)

* Diff CSS refactors and misc tweaks

- Simplify Diff CSS styling
- Add color variables for diff
- Fix vertical centering of inline comment button
- Slightly adjust text colors, e.g. in comment header

* Code review improvments

* selector tweak

* fix diff issues, add inactive bg color

Co-authored-by: 6543 <6543@obermui.de>
3 years agoDropdown triangle fixes (#14028)
silverwind [Thu, 17 Dec 2020 14:37:56 +0000 (15:37 +0100)]
Dropdown triangle fixes (#14028)

* Dropdown triangle fixes

Fomantic's CSS assumes the dropdown triangles are fonts but we've recently
swapped them for SVG so we need to wrestle a bit with Fomantic to get it
to display properly and not cause buttons to resize.

Fixes: https://github.com/go-gitea/gitea/issues/14014
* move css and add link

3 years agoUse native git variants by default with go-git variants as build tag (#13673)
zeripath [Thu, 17 Dec 2020 14:00:47 +0000 (14:00 +0000)]
Use native git variants by default with go-git variants as build tag (#13673)

* Move last commit cache back into modules/git

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove go-git from the interface for last commit cache

Signed-off-by: Andrew Thornton <art27@cantab.net>
* move cacheref to last_commit_cache

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove go-git from routers/private/hook

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Move FindLFSFiles to pipeline

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make no-go-git variants

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Submodule RefID

Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix issue with GetCommitsInfo

Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix GetLastCommitForPaths

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Improve efficiency

Signed-off-by: Andrew Thornton <art27@cantab.net>
* More efficiency

Signed-off-by: Andrew Thornton <art27@cantab.net>
* even faster

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Reduce duplication

* As per @lunny

Signed-off-by: Andrew Thornton <art27@cantab.net>
* attempt to fix drone

Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix test-tags

Signed-off-by: Andrew Thornton <art27@cantab.net>
* default to use no-go-git variants and add gogit build tag

Signed-off-by: Andrew Thornton <art27@cantab.net>
* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>
* as per @6543

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoCause NotifyMigrateRepository to emit a repo create webhook (#14004)
zeripath [Thu, 17 Dec 2020 12:26:22 +0000 (12:26 +0000)]
Cause NotifyMigrateRepository to emit a repo create webhook (#14004)

* Cause NotifyMigrateRepository to emit a repo create webhook

This PR simply makes NotifyMigrateRepository emit a Create Repo webhook.
The reason for no new payload is that the information sent to
NotifyMigrateRepository is only essentially the same as
NotifyCreateRepository

Fix #13996

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years agoAlways wait for the cmd to finish (#14006)
zeripath [Thu, 17 Dec 2020 11:50:21 +0000 (11:50 +0000)]
Always wait for the cmd to finish (#14006)

After cancelling the context we still need to wait for the
command to finish otherwise zombie processes may occur

Fix #13987

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
3 years agofix label of --id in admin delete user (#14005)
zeripath [Thu, 17 Dec 2020 07:57:32 +0000 (07:57 +0000)]
fix label of --id in admin delete user (#14005)

* fix label of --id in admin delete user

This pr fixes the label descriptor of `gitea admin delete user`
but also adds a `--username` option.

Fix #13995

Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix-spacing

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add delete email support

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agodocs(docker): fix diff format. (#14035)
Bo-Yi Wu [Thu, 17 Dec 2020 05:00:43 +0000 (13:00 +0800)]
docs(docker): fix diff format. (#14035)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
3 years agoHotFix: Hide private partisipation in Orgs (#13994)
6543 [Wed, 16 Dec 2020 23:39:12 +0000 (23:39 +0000)]
HotFix: Hide private partisipation in Orgs (#13994)

* HotFix: Hide private partisipation in Orgs

* refactor & add node to fuc GetOrganizations

3 years agoAdd FAQ link to Issue template (#14020)
6543 [Wed, 16 Dec 2020 19:18:36 +0000 (19:18 +0000)]
Add FAQ link to Issue template (#14020)

3 years agoFix webhook list styling (#14001)
Cirno the Strongest [Wed, 16 Dec 2020 18:22:21 +0000 (19:22 +0100)]
Fix webhook list styling (#14001)

* Fix webhook list styling

* As per @silverwind

3 years agoSend webhook when tag is removed via Web UI (#14015)
Cirno the Strongest [Wed, 16 Dec 2020 16:00:46 +0000 (17:00 +0100)]
Send webhook when tag is removed via Web UI (#14015)

* Send webhook when tag is removed via Web UI

* Stray code

3 years agoSend push event when tag is created or deleted (#13999)
Cirno the Strongest [Wed, 16 Dec 2020 12:41:21 +0000 (13:41 +0100)]
Send push event when tag is created or deleted (#13999)

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoFix correct diff view for PR review comments in PR view page (#14002)
Jimmy Praet [Wed, 16 Dec 2020 09:54:58 +0000 (10:54 +0100)]
Fix correct diff view for PR review comments in PR view page (#14002)

Fixes #13683.

The diff snippet that provides context for a code review comment on the pull request timeline page used to be calculated based on the headCommitID. But in 1.13, with PR #13448, this changed to the commitID from the blame for the commented line, which seems to cause these incorrect review comment diff snippets.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoStore repository data in data path if not previously set (#13991)
techknowlogick [Tue, 15 Dec 2020 21:52:59 +0000 (16:52 -0500)]
Store repository data in data path if not previously set (#13991)

* Store repository data in data path if not previously set

* update docs

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: silverwind <me@silverwind.io>
* update docs

Co-authored-by: silverwind <me@silverwind.io>
3 years agoadd @noerw to maintainers (#13997)
Norwin [Tue, 15 Dec 2020 19:19:26 +0000 (19:19 +0000)]
add @noerw to maintainers (#13997)

* add @noerw to maintainers

* format

Co-authored-by: 6543 <6543@obermui.de>
3 years ago[API] Add ref to create/edit issue options & deprecated assignee (#13992)
6543 [Tue, 15 Dec 2020 18:38:10 +0000 (18:38 +0000)]
[API] Add ref to create/edit issue options & deprecated assignee (#13992)

* API: Add ref to create/edit issue options

* deprecate Assignee in favour of Assignees

3 years agoStandardise logging of failed authentication attempts in internal SSH (#13962)
zeripath [Tue, 15 Dec 2020 08:45:13 +0000 (08:45 +0000)]
Standardise logging of failed authentication attempts in internal SSH (#13962)

Continuing on from #13953 continue to improve and standardise
logging from internal SSH.

Also updates the fail2ban setup

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years agoFix markdown checkboxes on Blink (#13988)
silverwind [Tue, 15 Dec 2020 07:00:41 +0000 (08:00 +0100)]
Fix markdown checkboxes on Blink (#13988)

Blink still requires a vendor prefix for `mask-image` and `mask-size`,
so add that here to fix the rendering.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoHide command line instructions when merge form is visible (#13956)
Cirno the Strongest [Tue, 15 Dec 2020 06:09:24 +0000 (07:09 +0100)]
Hide command line instructions when merge form is visible (#13956)

* Hide commandline instructions when merge form is visible

* As per @silverwind

Co-authored-by: zeripath <art27@cantab.net>
3 years agoTrim the branch prefix from action.GetBranch (#13981)
zeripath [Mon, 14 Dec 2020 17:08:37 +0000 (17:08 +0000)]
Trim the branch prefix from action.GetBranch (#13981)

* Trim the branch prefix from action.GetBranch

 #13882 has revealed that the refname of an action is actually only a
refname pattern and necessarily a branch. For examplem pushing to
refs/heads/master will result in action with refname refs/heads/master
but pushing to master will result in a refname master.

The simplest solution to providing a fix here is to trim the prefix
therefore this PR proposes this.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update models/action.go

Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: a1012112796 <1012112796@qq.com>
3 years agoAdd emoji in label to project boards (#13978)
Rakshith Ravi [Mon, 14 Dec 2020 10:06:58 +0000 (15:36 +0530)]
Add emoji in label to project boards (#13978)

* Update view.tmpl

Added rendering of emoji to project label

* Add RenderEmojiPlain to the title and remove has-emoji

Co-authored-by: zeripath <art27@cantab.net>
3 years agoDo not display org avatar near icon for internal repos (#13957)
Cirno the Strongest [Sun, 13 Dec 2020 21:51:15 +0000 (22:51 +0100)]
Do not display org avatar near icon for internal repos (#13957)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoadd thumbnail preview section to issue attachments (#13826)
bobemoe [Sun, 13 Dec 2020 19:12:27 +0000 (19:12 +0000)]
add thumbnail preview section to issue attachments (#13826)

* add thumbnail preview section to attachments

* dont show thumbnail if the image is already shown inline

* update router to pass the `content` to the attachemnts template

* limit attachment preview height to 150px (same as width)

* remove unused css (referance removed in https://github.com/go-gitea/gitea/pull/11141/files#diff-9faae32445ed9673de2830c9fc35e93f44487f0a0068202988adaf00a5bac850L66 )

* dont show divider after edit if no attachemnts

Co-authored-by: James <inbox.dev@jhodges.co.uk>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago[API] Add Ref to Issue (#13946)
zeripath [Sun, 13 Dec 2020 11:34:11 +0000 (11:34 +0000)]
[API] Add Ref to Issue (#13946)

* Add Ref to api.Issue

This PR adds Ref to api.Issue and adds the backend parts to the migrator.

Fix #13918

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Dec 2020 02:49:02 +0000 (02:49 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoRemoves dangling < on emails/list.tmpl (#13970)
WeebDataHoarder [Sun, 13 Dec 2020 02:48:03 +0000 (03:48 +0100)]
Removes dangling < on emails/list.tmpl (#13970)

This dangling character was leftover from commit c85bb6263503ebd335863f413214a775973a1fac from PR #13860

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 13 Dec 2020 01:06:57 +0000 (01:06 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoMarkdown task list improvements (#13952)
silverwind [Sun, 13 Dec 2020 01:05:50 +0000 (02:05 +0100)]
Markdown task list improvements (#13952)

* Markdown task list improvements

- Remove `.ui` class and wrappers to prevent fomantic from messing with it.
- Change rendered HTML to match GitHub.
- Add custom styling for the checkboxes.

* fix unittest

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoWhenever the password is updated ensure that the hash algorithm is too (#13966)
zeripath [Sat, 12 Dec 2020 18:59:49 +0000 (18:59 +0000)]
Whenever the password is updated ensure that the hash algorithm is too (#13966)

`user.HashPassword` may potentially - and in fact now likely does - change
the `passwd_hash_algo` therefore whenever the `passwd` is updated, this
also needs to be updated.

Fix #13832

Thanks @fblaese for the hint

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 12 Dec 2020 15:34:20 +0000 (15:34 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoPossible fix the webhook API creation (#13960)
Lunny Xiao [Sat, 12 Dec 2020 15:33:19 +0000 (23:33 +0800)]
Possible fix the webhook API creation (#13960)

* Possible fix the webhook API creation

* Fix api create webhook bug

3 years agoFix missing username on dashboard context switch navbar (#13959)
Cirno the Strongest [Sat, 12 Dec 2020 13:10:20 +0000 (14:10 +0100)]
Fix missing username on dashboard context switch navbar (#13959)

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 12 Dec 2020 11:21:18 +0000 (11:21 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoEnforce setting HEAD in wiki to master (#13950)
zeripath [Sat, 12 Dec 2020 11:20:14 +0000 (11:20 +0000)]
Enforce setting HEAD in wiki to master (#13950)

The default branch in wikis must be master - therefore forcibly set the HEAD
to master.

Fix #13846

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
3 years agoDiff stat improvements (#13954)
silverwind [Sat, 12 Dec 2020 01:06:22 +0000 (02:06 +0100)]
Diff stat improvements (#13954)

* Diff stat improvements

- Combine number to just total number of changes
- Add tooltip over stats bar
- Increase contrast on file name
- Refactor classes and CSS to be more reusable

* misc tweaks

* make count bold

3 years agoUpdate github.com/blevesearch/bleve v1.0.13 -> v1.0.14 (#13947)
6543 [Sat, 12 Dec 2020 00:16:53 +0000 (00:16 +0000)]
Update github.com/blevesearch/bleve v1.0.13 -> v1.0.14 (#13947)

3 years agoReport permissions denied in internal SSH (#13953)
zeripath [Fri, 11 Dec 2020 22:52:38 +0000 (22:52 +0000)]
Report permissions denied in internal SSH (#13953)

This PR standardizes reporting of permission denied from the internal ssh.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
3 years agoEnsure that HEAD is updated to match default branch in template generation (#13948)
zeripath [Fri, 11 Dec 2020 21:41:59 +0000 (21:41 +0000)]
Ensure that HEAD is updated to match default branch in template generation (#13948)

Fix #13912

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years agoEnsure that pusher is not nil preventing panic in push (#13945)
zeripath [Fri, 11 Dec 2020 17:27:00 +0000 (17:27 +0000)]
Ensure that pusher is not nil preventing panic in push (#13945)

PR #13381 refactored notification actions to call NotifyCreateRef and
NotifyDeleteRef in a slightly different manner. This leads to the pusher
not being set before the call.

This PR ensures that the pusher is updated before the call.

Fix #13940

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years agoReorganize Chroma styles (#13934)
silverwind [Fri, 11 Dec 2020 16:38:47 +0000 (17:38 +0100)]
Reorganize Chroma styles (#13934)

This moves the Chroma styles into separate files with base,light and
dark variants. Should work exactly as before.

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 11 Dec 2020 16:05:31 +0000 (16:05 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoFix bug for webhook and feishu caused by API changed (#13937)
Lunny Xiao [Fri, 11 Dec 2020 16:04:04 +0000 (00:04 +0800)]
Fix bug for webhook and feishu caused by API changed (#13937)

* Fix bug for webhook

* Fix bug for feishu

3 years agoBump ini from 1.3.5 to 1.3.7 (#13941)
dependabot[bot] [Fri, 11 Dec 2020 14:56:57 +0000 (15:56 +0100)]
Bump ini from 1.3.5 to 1.3.7 (#13941)

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agochore: use octicon-mirror for feeds display (#13928)
Gary Wang [Thu, 10 Dec 2020 23:06:45 +0000 (07:06 +0800)]
chore: use octicon-mirror for feeds display (#13928)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoBetter vertical align of buttons in headers (#13932)
silverwind [Thu, 10 Dec 2020 20:39:09 +0000 (21:39 +0100)]
Better vertical align of buttons in headers (#13932)

The previous method used `transform` which formed a CSS stacking context
which caused issues with dropdowns appearing behind other elements which
made `position: static` necessary but that again caused even more
issues.

This method achieves the same as before, but without the additional
stacking context.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoAdded 2 fuzzers (#13818)
AdamKorcz [Thu, 10 Dec 2020 19:43:11 +0000 (19:43 +0000)]
Added 2 fuzzers (#13818)

* Added fuzzer

Signed-off-by: AdamKorcz <adam@adalogics.com>
* Added better fuzzer names

Signed-off-by: AdamKorcz <adam@adalogics.com>
* Moved fuzzer to /tools

* Update tools/fuzz.go

Co-authored-by: 6543 <6543@obermui.de>
* Update tools/fuzz.go

* Update tools/fuzz.go

Co-authored-by: silverwind <me@silverwind.io>
* Added tools to Makefile

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 10 Dec 2020 16:20:32 +0000 (16:20 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoRemove JS globals related to timetracking and due date (#13921)
silverwind [Thu, 10 Dec 2020 16:19:18 +0000 (17:19 +0100)]
Remove JS globals related to timetracking and due date (#13921)

Refactor to avoid these globals. Should work exactly as before.

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 10 Dec 2020 05:45:12 +0000 (05:45 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoFix avatar template error on repo collaborator page (#13924)
silverwind [Thu, 10 Dec 2020 05:44:13 +0000 (06:44 +0100)]
Fix avatar template error on repo collaborator page (#13924)

Fixes error `template: repo/settings/collaboration:16:16: executing
"repo/settings/collaboration" at <.>: wrong type for value; expected
*models.User; got *models.Collaborator` seen on repo collaborator page.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 10 Dec 2020 04:48:55 +0000 (04:48 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoMove diff split code into own template file (#13919)
mrsdizzie [Thu, 10 Dec 2020 04:47:48 +0000 (23:47 -0500)]
Move diff split code into own template file (#13919)

* Move diff split code into own template file

Separate split diff view same as unified already is. Mainly because I'm working on a separate PR with this change and merge conflicts for each change to box.tmpl are annoying and I'm worried about breaking something subtle while trying to resolve them.

* Fix error

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoAdd pull request manually merge instruction (#13840)
Lunny Xiao [Thu, 10 Dec 2020 02:59:05 +0000 (10:59 +0800)]
Add pull request manually merge instruction (#13840)

* add pull request command line instructions

* Add pull request manually merge instuction

* Fix styles

* Fix lint

* Move inline style to class file

* add space between merge button and hint text

* Add sentence end charcter

* Change the language file

* adjust secondary bg

* further adjustment

Co-authored-by: silverwind <me@silverwind.io>
3 years agoReplace more icons with SVG, repo search tweaks (#13860)
silverwind [Wed, 9 Dec 2020 19:03:19 +0000 (20:03 +0100)]
Replace more icons with SVG, repo search tweaks (#13860)

* Replace more icons with SVG

- Replace remaining icons on admin page with SVG
- Fix vertical menu background on arc-green
- Minor improvments to frontpage repo search
- More icon replacements here and there

* fix integration

* whitespace tweak

* add comment

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoFix broken migration on webhook (#13911)
Lunny Xiao [Wed, 9 Dec 2020 17:20:13 +0000 (01:20 +0800)]
Fix broken migration on webhook (#13911)

* Fix broken migration on webhook

* Fix lint

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
3 years agoAdd Karl Heinz Marbaise as maintainer. (#13915)
Karl Heinz Marbaise [Wed, 9 Dec 2020 14:39:14 +0000 (15:39 +0100)]
Add Karl Heinz Marbaise as maintainer. (#13915)

3 years agoMarkdown: Enable wrapping in code blocks and a color tweak (#13894)
silverwind [Wed, 9 Dec 2020 14:03:45 +0000 (15:03 +0100)]
Markdown: Enable wrapping in code blocks and a color tweak (#13894)

- Enable wrapping of long lines in code blocks like already done in code
  view.
- Slightly lighten the background of code blocks on default theme
- Darken the background on inline code and kbd elements on arc-green

Co-authored-by: 6543 <6543@obermui.de>
3 years agoReformat docs (#13897)
Patrick Schratz [Wed, 9 Dec 2020 06:47:06 +0000 (07:47 +0100)]
Reformat docs (#13897)

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoFix action avatar loading (#13909)
silverwind [Wed, 9 Dec 2020 05:11:15 +0000 (06:11 +0100)]
Fix action avatar loading (#13909)

Fixes #13883

Co-authored-by: 6543 <6543@obermui.de>
3 years agoDon't show dashboard links for globally disabled repo units (#13908)
Jimmy Praet [Wed, 9 Dec 2020 01:58:38 +0000 (02:58 +0100)]
Don't show dashboard links for globally disabled repo units (#13908)

This applias the same checks from base/head_navbar.tmpl to user/dashboard/navbar.tmpl so no links are shown for globally disabled repo units

Co-authored-by: 6543 <6543@obermui.de>
3 years agoFix frontpage avatars (#13853)
silverwind [Wed, 9 Dec 2020 00:12:15 +0000 (01:12 +0100)]
Fix frontpage avatars (#13853)

The frontpage uses a rather strange method to obtain the commit's avatar
which I've overlooked earlier. I don't exactly understand how it works
but this change fixes the wrong default avatars by using the function
that was in previous use.

Also introduced a few constants for size an size increase factor.

Fixes: https://github.com/go-gitea/gitea/issues/13844
3 years ago[Docu] Fix Location of Comments in migrations.go (#13900)
6543 [Tue, 8 Dec 2020 23:24:23 +0000 (23:24 +0000)]
[Docu] Fix Location of Comments in migrations.go (#13900)

3 years agoAllow 20 characters for "View [organization]" button (#13906)
Jimmy Praet [Tue, 8 Dec 2020 21:18:02 +0000 (22:18 +0100)]
Allow 20 characters for "View [organization]" button (#13906)

In the "View [organization]" button on the dashboard, the organization name is currenly shortened to 10 chars.
This is a bit too limited. In all other places in the code the name is also shortened to 20 instead of 10.

Co-authored-by: 6543 <6543@obermui.de>
3 years agolog error when login failed (#13903)
Lunny Xiao [Tue, 8 Dec 2020 20:37:47 +0000 (04:37 +0800)]
log error when login failed (#13903)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoLog IP on SSH authentication failure for Built-in SSH server (#13150)
Eric Lesiuta [Tue, 8 Dec 2020 17:54:33 +0000 (12:54 -0500)]
Log IP on SSH authentication failure for Built-in SSH server (#13150)

* Log IP on SSH authentication failure

fixes https://github.com/go-gitea/gitea/issues/13094

* include string 'Failed authentication attempt' in error

* update fail2ban docs

also match failed authentication over command line

* better logging of authentication errors with IP addresses

* format ...

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
3 years agoMove webhook type from int to string (#13664)
Lunny Xiao [Tue, 8 Dec 2020 10:41:14 +0000 (18:41 +0800)]
Move webhook type from int to string (#13664)

* Move webhook type from int to string

* rename webhook_services

* finish refactor

* Fix merge

* Ignore unnecessary ci

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
3 years agoFix Quote Reply button on review diff (#13830)
Jimmy Praet [Tue, 8 Dec 2020 06:11:27 +0000 (07:11 +0100)]
Fix Quote Reply button on review diff (#13830)

* Fix Quote Reply #13762

* requestAnimationFrame() instead of setTimeout()

Co-authored-by: 6543 <6543@obermui.de>
3 years agoAdded Table of Contents to long documentation pages (#13890)
6543 [Tue, 8 Dec 2020 04:52:26 +0000 (04:52 +0000)]
Added Table of Contents to long documentation pages (#13890)

* Redo #13836 with new shortcode
(https://gitea.com/gitea/theme/pulls/90)

* add Api Usage

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoRepo avatar fixes (#13891)
silverwind [Tue, 8 Dec 2020 04:14:28 +0000 (05:14 +0100)]
Repo avatar fixes (#13891)

- Split up avatar rendering helpers for performance
- Fix showing repo SVG icon when no avatar is set
- Make repo SVG and avatar same size at 32px
- Fix fork line by adding vertical flexbox on repo title

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoSelf-host cloudron image for docs (#13895)
techknowlogick [Tue, 8 Dec 2020 03:20:37 +0000 (22:20 -0500)]
Self-host cloudron image for docs (#13895)

* Add cloudron image to docs itself

* rm cloudron csp

* Update from-package.en-us.md

3 years agoFix issue participants (#13893)
silverwind [Tue, 8 Dec 2020 03:20:12 +0000 (04:20 +0100)]
Fix issue participants (#13893)

* Fix issue participants

* use list class for margin

* remove wrapper and don't render on zero participants

* keep whitespace

* remove participants class

* add some margin for timetracking stuff

Co-authored-by: 6543 <6543@obermui.de>
3 years agoRefactor push update (#13381)
Lunny Xiao [Tue, 8 Dec 2020 02:23:18 +0000 (10:23 +0800)]
Refactor push update (#13381)

* Refactor Push update

* Remove the push_test since the function has been removed.

* Use default branch setting instead master

3 years agoFix Pull Merge when tag with same name as base branch exist (#13882)
a1012112796 [Tue, 8 Dec 2020 01:46:50 +0000 (09:46 +0800)]
Fix Pull Merge when tag with same name as base branch exist (#13882)

fix dst refspec error in 'Push back to upstream' when base branch have
same name with a tag.

fix #13851
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
3 years agoFully qualify cloudron CSP (#13892)
John Olheiser [Mon, 7 Dec 2020 22:17:27 +0000 (16:17 -0600)]
Fully qualify cloudron CSP (#13892)

* Wildcard cloudron

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Just use FQDN

Signed-off-by: jolheiser <john.olheiser@gmail.com>
3 years agoAdd cloudron to img-src CSP (#13887)
John Olheiser [Mon, 7 Dec 2020 16:33:22 +0000 (10:33 -0600)]
Add cloudron to img-src CSP (#13887)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 7 Dec 2020 12:09:02 +0000 (12:09 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoissue #12450: return original URL in `original_url` JSON field (#13885)
Eric Belhomme [Mon, 7 Dec 2020 12:07:48 +0000 (13:07 +0100)]
issue #12450: return original URL in `original_url` JSON field (#13885)

Co-authored-by: Gitea <gitea@fake.local>
3 years agoREADME: Add more contents to the "further information" section. (#13871)
Patrick Schratz [Sun, 6 Dec 2020 13:56:46 +0000 (14:56 +0100)]
README: Add more contents to the "further information" section. (#13871)

3 years agoFix mermaid chart size (#13863)
silverwind [Sun, 6 Dec 2020 03:05:22 +0000 (04:05 +0100)]
Fix mermaid chart size (#13863)

* Fix mermaid chart size

Seems like one of the recent updates to the module unexpectedly shrunk
these charts, bring them back up to full width.

* don't stretch to full width

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoAdd link to shop in docs (#13864)
techknowlogick [Sat, 5 Dec 2020 22:34:29 +0000 (17:34 -0500)]
Add link to shop in docs (#13864)

Replaced link to code.gitea.io as that subdomain isn't meant for human consumption, but rather for our vanity go import URLs
Only replaced link for english, open to adding links for other languages if anyone is able/willing to add them

3 years agoUpdate go-enry dependency to v2.6.0 (#13861)
Lauris BH [Sat, 5 Dec 2020 18:31:18 +0000 (20:31 +0200)]
Update go-enry dependency to v2.6.0 (#13861)

3 years agoFix branch/tag notifications in mirror sync (#13855)
manuelluis [Sat, 5 Dec 2020 15:13:11 +0000 (16:13 +0100)]
Fix branch/tag notifications in mirror sync (#13855)

* Fix branch/tag notifications in mirror sync

* Fix gofmt

Co-authored-by: Gitea <gitea@fake.local>
Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoFont weight tweaks (#13854)
silverwind [Sat, 5 Dec 2020 11:00:36 +0000 (12:00 +0100)]
Font weight tweaks (#13854)

Font weight 500 is not discernible from 400 on some fonts/operating
systems so push them back to previous value 600 except for
fomantic-ui elements which stay at 500.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
3 years agoImprove migrate page and add card CSS (#13751)
silverwind [Sat, 5 Dec 2020 10:09:09 +0000 (11:09 +0100)]
Improve migrate page and add card CSS (#13751)

- Use original gitea logo on migrate page
- Add card styles and map colors to css vars
- Tweak migrate page, adding hover effect to cards

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago[Docs] fix typos and reference to structs package (#13856)
Nuno Silva [Sat, 5 Dec 2020 05:08:46 +0000 (05:08 +0000)]
[Docs] fix typos and reference to structs package (#13856)

3 years agoRemove Noto Color Emoji fallback (#13838)
silverwind [Fri, 4 Dec 2020 15:01:47 +0000 (16:01 +0100)]
Remove Noto Color Emoji fallback (#13838)

It's causing browser errors logged in Firefox under certain
circumstances, and I think we're better off recommending Linux users to
install a proper emoji font into their system.

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 4 Dec 2020 11:19:46 +0000 (11:19 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoStyle and template tweaks (#13828)
silverwind [Fri, 4 Dec 2020 11:18:37 +0000 (12:18 +0100)]
Style and template tweaks (#13828)

* Style and template tweaks

- Get red and green buttons on arc green closer to base theme
- EasyMDE adjustments, toolbar and focus border
- Fix header on 404 repo page
- Tweaks to frontpage search, add 'Create Repo' button
- Fix misaligned box headers
- Fix pagination on arc-green
- Fix background and footer on explore and repo search

* better fix for header button alignment

* add label hover for reactions

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 4 Dec 2020 07:34:40 +0000 (07:34 +0000)]
[skip ci] Updated translations via Crowdin

3 years agofixed and updated FAQ table of contents links (#13835)
Holger Schmidt [Fri, 4 Dec 2020 07:33:38 +0000 (08:33 +0100)]
fixed and updated FAQ table of contents links (#13835)

* fixed and updated FAQ table of contents links, rewording one heading that wouldn't generate a working link

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoUser Settings: Ignore empty language codes & validate (#13755)
6543 [Fri, 4 Dec 2020 06:20:30 +0000 (07:20 +0100)]
User Settings: Ignore empty language codes & validate (#13755)

3 years agoFix crash in short link processor (#13839)
mrsdizzie [Fri, 4 Dec 2020 02:01:42 +0000 (21:01 -0500)]
Fix crash in short link processor (#13839)

Fixes #13819

3 years agoUpdate font stack to bootstrap's latest (#13834)
silverwind [Fri, 4 Dec 2020 00:12:16 +0000 (01:12 +0100)]
Update font stack to bootstrap's latest (#13834)

Update to latest Bootstrap font stack [1].

Should fix https://github.com/go-gitea/gitea/issues/13784.

[1] https://github.com/twbs/bootstrap/blob/bf3c4d0b6891c21377e6b1fb7962f5fbf198325f/scss/_variables.scss#L396

Co-authored-by: 6543 <6543@obermui.de>
3 years agoFix avatar template error (#13833)
silverwind [Thu, 3 Dec 2020 23:12:59 +0000 (00:12 +0100)]
Fix avatar template error (#13833)

Fixes: https://github.com/go-gitea/gitea/issues/13831
3 years agoMake sure email recipients can see issue (#13820)
John Olheiser [Thu, 3 Dec 2020 20:25:49 +0000 (14:25 -0600)]
Make sure email recipients can see issue (#13820)

* Initial pass

Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove over-op

Signed-off-by: jolheiser <john.olheiser@gmail.com>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 3 Dec 2020 18:47:16 +0000 (18:47 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoDirect avatar rendering (#13649)
silverwind [Thu, 3 Dec 2020 18:46:11 +0000 (19:46 +0100)]
Direct avatar rendering (#13649)

* Direct avatar rendering

This adds new template helpers for avatar rendering which output image
elements with direct links to avatars which makes them cacheable by the
browsers.

This should be a major performance improvment for pages with many avatars.

* fix avatars of other user's profile pages

* fix top border on user avatar name

* uncircle avatars

* remove old incomplete avatar selector

* use title attribute for name and add it back on blame

* minor refactor

* tweak comments

* fix url path join and adjust test to new result

* dedupe functions

3 years agoFix various CSS issues (#13769)
silverwind [Thu, 3 Dec 2020 17:05:35 +0000 (18:05 +0100)]
Fix various CSS issues (#13769)

- Fix black text being white on base theme
- Fix file/blame button group
- Fix label margin in dropdown (regression from graph pr)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>