1
1
mirror of https://github.com/go-gitea/gitea synced 2024-07-02 08:05:47 +00:00
gitea/templates
yp05327 daf2a4c047
Fix wrong display of recently pushed notification (#25812)
There's a bug in #25715: 
If user pushed a commit into another repo with same branch name, the
no-related repo will display the recently pushed notification
incorrectly.
It is simple to fix this, we should match the repo id in the sql query.


![image](https://github.com/go-gitea/gitea/assets/18380374/9411a926-16f1-419e-a1b5-e953af38bab1)
The latest commit is 2 weeks ago.

![image](https://github.com/go-gitea/gitea/assets/18380374/52f9ab22-4999-43ac-a86f-6d36fb1e0411)

The notification comes from another repo with same branch name:

![image](https://github.com/go-gitea/gitea/assets/18380374/a26bc335-8e5b-4b9c-a965-c3dc3fa6f252)


After:
In forked repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/ce6ffc35-deb7-4be7-8b09-184207392f32)
New PR Link will redirect to the original repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/7b98e76f-0c75-494c-9462-80cf9f98e786)
In the original repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/5f6a821b-e51a-4bbd-9980-d9eb94a3c847)
New PR Link:

![image](https://github.com/go-gitea/gitea/assets/18380374/1ce8c879-9f11-4312-8c32-695d7d9af0df)

In the same repo:

![image](https://github.com/go-gitea/gitea/assets/18380374/64b56073-4d0e-40c4-b8a0-80be7a775f69)
New PR Link:

![image](https://github.com/go-gitea/gitea/assets/18380374/96e1b6a3-fb98-40ee-b2ee-648039fb0dcf)

08/15 Update:
Follow #26257, added permission check and logic fix mentioned in
https://github.com/go-gitea/gitea/pull/26257#discussion_r1294085203


2024/04/25 Update:
Fix #30611

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-05-21 17:00:35 +00:00
..
admin Check if reverse proxy is correctly configured (#30890) 2024-05-10 20:07:01 +08:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Rework and fix stopwatch (#30732) 2024-04-30 14:52:46 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Fix some UI problems (dropdown/container) (#30849) 2024-05-06 07:17:22 +00:00
explore Refactor web routes (#30519) 2024-04-17 08:31:37 +00:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Right align the "Settings" menu item in overflow-menu (#30764) 2024-04-30 04:26:13 +00:00
package Avoid 500 panic error when uploading invalid maven package file (#31014) 2024-05-20 06:44:16 +00:00
projects Fix project column title overflow (#31011) 2024-05-20 05:21:01 +00:00
repo Fix wrong display of recently pushed notification (#25812) 2024-05-21 17:00:35 +00:00
shared Rename CodeIndexerEnabled to IsRepoIndexerEnabled (#30762) 2024-04-29 20:15:35 +00:00
status Initial support for colorblindness-friendly themes (#30625) 2024-04-24 00:18:41 +08:00
swagger Simplify mirror repository API logic (#30963) 2024-05-17 16:07:41 +00:00
user Return access_denied error when an OAuth2 request is denied (#30974) 2024-05-20 07:17:00 +00:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
install.tmpl Fix some UI problems (install/checkbox) (#30854) 2024-05-06 06:32:05 +00:00
post-install.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00