Yarden Shoham and GitHub
abccb86b36
Show bot label next to username when rendering autor link if the user is a bot ( #24943 )
...
If the user is a bot, we'll add a label next to the author link that
says `bot`. I didn't localize `bot` because passing `locale` into the
`autorlink` template would require changing all calls.
# Example
`yardenshoham` is a bot.
## Before

## After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-26 18:58:11 +02:00
Yarden Shoham and GitHub
edd8ea0b0d
Fix topics deleted via API not being deleted in org page ( #24825 )
...
The topics are saved in the `repo_topic` table.
They are also saved directly in the `repository` table.
Before this PR, only `AddTopic` and `SaveTopics` made sure the `topics`
field in the `repository` table was synced with the `repo_topic` table.
This PR makes sure `GenerateTopics` and `DeleteTopic`
also sync the `topics` in the repository table.
`RemoveTopicsFromRepo` doesn't need to sync the data
as it is only used to delete a repository.
Fixes #24820
2023-05-21 11:03:20 +02:00
c641a22f2a
Mute repo names in dashboard repo list ( #24811 )
...
# Before

# After

Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-19 17:03:09 +00:00
f5ce2ed292
Allow all URL schemes in Markdown links by default ( #24805 )
...
- Closes #21146
- Closes #16721
## ⚠️ BREAKING ⚠️
This changes the default behavior to now create links for any URL scheme
when the user uses the markdown form for links (`[label](URL)`), this
doesn't affect the rendering of inline links. To opt-out set the
`markdown.CUSTOM_URL_SCHEMES` setting to a list of allowed schemes, all
other schemes (except `http` and `https`) won't be allowed.
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-19 17:17:07 +02:00
Yarden Shoham and GitHub
c839d6f92a
Revert "Fix missed table name on iterate lfs meta objects" ( #24764 )
...
This reverts commit 3364092013 .
It was accidentally pushed to `main` without a review.
2023-05-17 21:20:11 +08:00
Yarden Shoham and GitHub
0a3c4d4a59
Fix team members API endpoint pagination ( #24754 )
...
Now it's 1-based instead of 0-based
- Fixes #24747
### Before

### After

## ⚠️ BREAKING ⚠️
Previous API consumers may have relied on the 0-based pagination of this
endpoint. The page numbering now starts at 1, as documented.
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-17 08:12:37 +08:00
Yarden Shoham and GitHub
6d2c63f6ff
Don't filter action runs based on state ( #24711 )
...
We should just show all runs. This removes the filtering altogether.
- Replaces https://github.com/go-gitea/gitea/pull/24553
# Before


# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-14 16:04:24 +00:00
53a00017bb
Fix flash of unstyled content in action view page ( #24712 )
...
# Before

# After

Ref: https://github.com/go-gitea/gitea/issues/24625
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-14 14:58:59 +00:00
Yarden Shoham and GitHub
116f8e12a7
Optimize actions list by removing an unnecessary git call ( #24710 )
...
We already have the default branch so we don't need to make a `git` call
to get it.
2023-05-14 20:00:35 +08:00
4810fe55e3
Add status indicator on main home screen for each repo ( #24638 )
...
It will show the calculated commit status state of the latest commit on
the default branch for each repository in the dashboard repo list
- Closes #15620
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-13 21:59:01 +00:00
9f1d377b87
Fix docs documenting invalid @every for OLDER_THAN cron settings ( #24695 )
...
Looks like a copy-paste leftover
- Fixes #20868
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-13 15:22:31 +00:00
542adf50d5
Fix organization field being null in GET /api/v1/teams/{id} ( #24694 )
...
Enabled the organization loading flag.
- Fixes #20399
# Before
```json
{
...
"description": "",
"organization": null,
"includes_all_repositories": true,
"permission": "owner",
...
}
```
# After
```json
{
...
"description": "",
"organization": {
"id": 2,
"name": "bigorg",
"full_name": "",
"avatar_url": "https://3000-yardenshoham-gitea-3gfrlc9gn4h.ws-us96b.gitpod.io/avatars/e2649b0c016d9102664a7d4349503eb9 ",
"description": "",
"website": "",
"location": "",
"visibility": "public",
"repo_admin_change_team_access": true,
"username": "bigorg"
},
"includes_all_repositories": true,
"permission": "owner",
...
}
```
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-05-13 14:47:58 +00:00
ae9ac50072
Make the actions control button look like an actual button ( #24611 )
...
- Follows #24595
# Before



# After



---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-05-10 08:09:23 +00:00
Yarden Shoham and GitHub
de7dcc7cd9
Add a tooltip to the job rerun button ( #24617 )
...
This one doesn't look very good as a real button (at least not in the
ways I tried), so I've opted to simply add a tooltip for it.
# Before

# After

Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-10 07:37:10 +00:00
Yarden Shoham and GitHub
9a0652f0b2
Attach a tooltip to the action status icon ( #24614 )
...
To clearly communicate the current state of the action






---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-09 21:39:16 +02:00
4f1065030f
Use official Vue extension in Gitpod ( #24609 )
...
The previous one didn't work well
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: silverwind <me@silverwind.io >
2023-05-09 18:03:50 +00:00
46e97986f5
Attach a tooltip to the action control button ( #24595 )
...
The first time I saw the big red X button I thought something failed but
apparently, it was just a "Cancel" button
# Before



# After



---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: silverwind <me@silverwind.io >
2023-05-08 23:59:59 +00:00
Yarden Shoham and GitHub
9ad5b59cd9
Do not select line numbers when selecting text from the action run logs ( #24594 )
...
- Fixes #24578
# Before

# After

Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-08 20:50:05 +02:00
46679554d0
Change add_on translation to added_on and include placeholder for the date ( #24562 )
...
- Very similar to #24550
The correct thing to do is to translate the entire phrase into a single
string. The previous translation assumed all languages have a space
between the "added on" and the date (and that "added on" comes before
the date).
Some languages, like Hebrew, have no space between the "added on" and
the date. For example:
```ini
added_on=נוסף ב-%s
```
("added" becomes נוסף, "on" is ב and when paired with a date we use a
dash to connect ב with the date)
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: delvh <dev.lh@web.de >
2023-05-06 21:11:27 +08:00
Yarden Shoham and GitHub
95e2e3aa30
Change valid_until translation to valid_until_date and include placeholder for the date ( #24563 )
...
- Similar to #24550
- Similar to #24562
The correct thing to do is to translate the entire phrase into a single
string. The previous translation assumed all languages have a space
between the "valid until" and the date (and that "valid until" comes
before the date).
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-06 12:37:02 +00:00
Yarden Shoham and GitHub
ef92459e18
Fix docs failing the build on main ( #24561 )
...
Regression from https://github.com/go-gitea/gitea/pull/23380
First failing build: https://drone.gitea.io/go-gitea/gitea/74565
https://github.com/go-gitea/gitea/actions/runs/4897332409/jobs/8745242395
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-06 11:52:44 +00:00
Yarden Shoham and GitHub
291c868046
Change join_on translation to joined_on and include placeholder for the date ( #24550 )
...
The correct thing to do is to translate the entire phrase into a single
string. The previous translation assumed all languages have a space
between the "joined on" and the date (and that "joined on" comes before
the date).
Some languages, like Hebrew, have no space between the "joined on" and
the date. For example:
```ini
joined_on=נרשם ב-%s
```
("joined" becomes נרשם, "on" is ב and when paired with a date we use a
dash to connect ב with the date)
2023-05-06 18:10:30 +08:00
a2fe68e50b
Changelog for 1.19.3 ( #24495 ) ( #24506 )
...
Frontport #24495
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2023-05-03 22:05:47 -04:00
Yarden Shoham and GitHub
97991596bd
Remove all direct references to font-awesome ( #24448 )
...
- Related #10410
- I had to add an SVG for an empty checkbox
https://github.com/primer/octicons/issues/942
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-05-01 00:02:56 +02:00
cc84c58aff
Remove unused setting time.FORMAT ( #24430 )
...
It's loaded and then never used.
---------
Co-authored-by: Giteabot <teabot@gitea.io >
2023-04-29 22:51:43 +02:00
Yarden Shoham and GitHub
94d6b5b09d
Add "Updated" column for admin repositories list ( #24429 )
...
- Closes #12454
# Before

# After

Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-04-29 20:40:10 +02:00
Yarden Shoham and GitHub
c0ddec8a2a
Revert "Add Debian package registry" ( #24412 )
...
Reverts go-gitea/gitea#22854
2023-04-28 18:06:41 -04:00
3843252938
Changelog 1.19.2 ( #24365 ) ( #24403 )
...
Frontport #24365
Add changelog for 1.19.2
Signed-off-by: jolheiser <john.olheiser@gmail.com >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-04-28 15:20:52 -04:00
Yarden Shoham and GitHub
eea23bbc8e
Remove unnecessary helper function DateFmtLong ( #24343 )
...
After #24317 this function is only used in one place where it is not
needed. I confirmed the timestamp still renders correctly
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-04-26 02:52:50 -04:00
Yarden Shoham and GitHub
f2f0fb43e0
Fix broken clone script on an empty archived repo ( #24339 )
...
I made it render the script even if the repo is archived
- Fixes #24324
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-04-25 23:28:37 -04:00
70bb4984cd
Allow using localized absolute date times within phrases with place holders and localize issue due date events ( #24275 )
...
This refactors the `shared/datetime/short|long|full` templates into a
template helper function, which allows us to render absolute date times
within translatable phrases.
- Follows #23988
- The first attempt was in #24055
- This should help #22664
Changes:
1. Added the `DateTime` template helper that replaces the
`shared/datetime/short|long|full` templates
2. Used find-and-replace with varying regexes to replace the templates
from step 1 (for example, `\{\{template "shared/datetime/(\S+) \(dict
"Datetime" ([^"]+) "Fallback" ([^\)]+\)?) ?\)?\}\}` -> `{{DateTime "$1
$2 $3}}`)
3. Used the new `DateTime` helper in the issue due date timestamp
rendering
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-04-23 15:12:33 -04:00
3cc87370c3
Improve emoji and mention matching ( #24255 )
...
Prioritize matches that start with the given text, then matches that
contain the given text.
I wanted to add a heart emoji on a pull request comment so I started
writing `:`, `h`, `e`, `a`, `r` (at this point I still couldn't find the
heart), `t`... The heart was not on the list, that's weird - it feels
like I made a typo or a mistake. This fixes that.
This also feels more like GitHub's emoji auto-complete.
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: silverwind <me@silverwind.io >
2023-04-22 11:32:34 -04:00
Yarden Shoham and GitHub
75b9845420
Mark public/img/svg/*.svg as generated files ( #24193 )
...
These files are generated using `make svg`
2023-04-18 13:52:18 -04:00
Yarden Shoham and GitHub
2002584986
Bump GitHub's relative-time-element to v4.3.0 ( #24187 )
...
https://github.com/github/relative-time-element/releases/tag/v4.3.0
I checked and everything still works
2023-04-19 00:00:01 +08:00
f045e58cc7
Localize activity heatmap (except tooltip) ( #24131 )
...
The calculation of the total sum is moved to the backend so a full HTML
string could be sent.

- Closes #10669
- 2nd attempt (the first was in #21570 )
---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: Giteabot <teabot@gitea.io >
2023-04-17 14:26:01 -04:00
b4e952545b
Remove untranslatable on_date key ( #24106 )
...
- Follows #23988
- Fixes : #24074 by removing this key
GitHub's `relative-time` elements allow us to force their rendering to
`auto`, `past`, or `future` tense. We will never show an absolute date
`on ...` in `TimeSince`
## Before

## After

---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-04-15 13:01:54 +02:00
97176754be
Localize milestone related time strings ( #24051 )
...
- With #23988 in place, we can improve these timestamps
---------
Co-authored-by: silverwind <me@silverwind.io >
2023-04-12 02:29:49 -04:00
b7b5834831
Use auto-updating, natively hoverable, localized time elements ( #23988 )
...
- Added [GitHub's `relative-time` element](https://github.com/github/relative-time-element )
- Converted all formatted timestamps to use this element
- No more flashes of unstyled content around time elements
- These elements are localized using the `lang` property of the HTML file
- Relative (e.g. the activities in the dashboard) and duration (e.g.
server uptime in the admin page) time elements are auto-updated to keep
up with the current time without refreshing the page
- Code that is not needed anymore such as `formatting.js` and parts of `since.go` have been deleted
Replaces #21440
Follows #22861
## Screenshots
### Localized


### Tooltips
#### Native for dates

#### Interactive for relative

### Auto-update

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: delvh <dev.lh@web.de >
2023-04-11 01:01:20 +02:00
Yarden Shoham and GitHub
42e009fa11
Reference the zh-CN version of reverse-proxies in https-support ( #24016 )
2023-04-09 17:31:31 +08:00
Yarden Shoham and GitHub
768ee158f5
Fix lint problem in https-support.zh-cn.md ( #24014 )
...
https://github.com/DavidAnson/markdownlint/blob/v0.26.2/doc/Rules.md#md051
2023-04-09 17:06:31 +08:00
Yarden Shoham and GitHub
518d384346
Remove docs from automatically building in Gitpod ( #23978 )
...
I couldn't find a way to build the docs without `trans-copy` and
spinning up a dev environment that generates files untracked by git on
startup is not a good development experience
Signed-off-by: Yarden Shoham <git@yardenshoham.com >
2023-04-07 15:55:25 -04:00
Yarden Shoham and GitHub
6a0ef71984
Yarden Shoham has a new email address ( #23767 )
...
Got a domain
2023-03-28 18:24:08 +08:00