yp05327 
								
							 
						 
						
							
							
								
							
							
	
	
	d1acd7e9de 
 
						 
						
							
							
								
								
								Do not display search box when there's no packages yet ( #28146 )  
							
							... 
							
							
							
							
							Before:

After:


 
							
						 
						
							2023-11-21 20:03:19 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									yp05327 
								
							 
						 
						
							
							
								
							
							
	
	
	eae555ff23 
 
						 
						
							
							
								
								
								Remove autofocus in search box ( #28033 )  
							
							... 
							
							
							
							
							Mentioned here:
https://github.com/go-gitea/gitea/pull/27982#issuecomment-1807923026  
							
						 
						
							2023-11-20 08:57:46 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Danila Fominykh 
								
							 
						 
						
							
							
								
							
							
	
	
	0c21af3728 
 
						 
						
							
							
								
								
								Package repository/documentation link unification ( #27804 )  
							
							... 
							
							
							
							
							Some translations are duplicated for the same package fields; it should
be possible to use the same approach. Checked packages to use the same
forms in templates.
1. Removed repeated translations for the same fields
2. Linked template files to the same translation fields
3. Added repository site link for nuget packages 
							
						 
						
							2023-10-27 00:16:12 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	05aa91e6da 
 
						 
						
							
							
								
								
								Add dedicated class for empty placeholders ( #27788 )  
							
							... 
							
							
							
							
							Fixes: https://github.com/go-gitea/gitea/issues/27784 
<img width="1033" alt="Screenshot 2023-10-25 at 19 07 15"
src="https://github.com/go-gitea/gitea/assets/115237/1a363851-1a86-48cb-99ec-0a573371bb6e ">
<img width="1051" alt="Screenshot 2023-10-25 at 19 07 41"
src="https://github.com/go-gitea/gitea/assets/115237/add4b606-2264-430a-af35-249ef005817f ">
Co-authored-by: KN4CK3R <admin@oldschoolhack.me> 
							
						 
						
							2023-10-25 23:42:14 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									merlleu 
								
							 
						 
						
							
							
								
							
							
	
	
	a112cf34d3 
 
						 
						
							
							
								
								
								Cargo package - Fix missing domain in cargo sparse url ( #27370 )  
							
							... 
							
							
							
							
							Hello, it seems that one my previous PR (adding the sparse index to the
cargo package content page), did not worked as expected: the
gitea-origin-url does not add the AppURL because of the `sparse+` prefix
in the url.
Currently the rendered page gives the following:
```toml
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+/api/packages/ownername/cargo/" # Sparse index
# index = "https://git.example.com/ownername/_cargo-index.git " # Git
[net]
git-fetch-with-cli = true
``` 
							
						 
						
							2023-10-01 13:43:15 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	93bd4351bf 
 
						 
						
							
							
								
								
								Fix more "locale" usages ( #27259 )  
							
							
							
							
						 
						
							2023-09-25 20:42:40 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									delvh 
								
							 
						 
						
							
							
								
							
							
	
	
	7960ba7e2b 
 
						 
						
							
							
								
								
								Always use ctx.Locale.Tr inside templates ( #27231 )  
							
							
							
							
						 
						
							2023-09-25 08:56:50 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Denys Konovalov 
								
							 
						 
						
							
							
								
							
							
	
	
	2325fe777d 
 
						 
						
							
							
								
								
								cleanup locale function usage ( #27227 )  
							
							
							
							
						 
						
							2023-09-24 20:31:58 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	8099238618 
 
						 
						
							
							
								
								
								Change green buttons to primary color ( #27099 )  
							
							... 
							
							
							
							
							I think it's better if the primary actions have primary color instead of
green which fits better into the overall single-color UI design. This PR
currently replaces every green button with primary:
<img width="141" alt="Screenshot 2023-09-16 at 14 07 59"
src="https://github.com/go-gitea/gitea/assets/115237/843c1e50-4fb2-4ec6-84ba-0efb9472dcbe ">
<img width="161" alt="Screenshot 2023-09-16 at 14 07 51"
src="https://github.com/go-gitea/gitea/assets/115237/9442195a-a3b2-4a42-b262-8377d6f5c0d1 ">
Modal actions now use uncolored/primary instead of previous green/red
colors. I also removed the box-shadow on all basic buttons:
<img width="259" alt="Screenshot 2023-09-16 at 14 16 39"
src="https://github.com/go-gitea/gitea/assets/115237/5beea529-127a-44b0-8d4c-afa7b034a490 ">
<img width="261" alt="Screenshot 2023-09-16 at 14 17 42"
src="https://github.com/go-gitea/gitea/assets/115237/4757f7b2-4d46-49bc-a797-38bb28437b88 ">
The change currently includes the "Merge PR" button, for which we might
want to make an exception to match the icon color there:
<img width="442" alt="Screenshot 2023-09-16 at 14 33 53"
src="https://github.com/go-gitea/gitea/assets/115237/993ac1a5-c94d-4895-b76c-0d872181a70b "> 
							
						 
						
							2023-09-18 22:05:31 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									merlleu 
								
							 
						 
						
							
							
								
							
							
	
	
	e6a059a3d0 
 
						 
						
							
							
								
								
								add sparse url in cargo package guide ( #26937 )  
							
							... 
							
							
							
							
							Hello,
The current package guide for cargo gives you only the git index, with
the HTTP Index stabilized being used as default for crates.io and being
better for most use-cases.
However, it's not documented that gitea supports the sparse spec, and it
does not require the _crates-index git repo for the sparse api.
I personally think we should push users to use the sparse instead of the
git repository. (Even let users disable crates-index repos if they only
want to use sparse) 
							
						 
						
							2023-09-13 12:14:10 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	9b76df53dc 
 
						 
						
							
							
								
								
								Minor dashboard tweaks, fix flex-list margins ( #26829 )  
							
							... 
							
							
							
							
							Some small dashboard tweaks:
- Remove margin-bottom from divider so first item does not appear to
have un-equal margins
- Restore previous icon color
- Add slight margin-right to icon
Before:
<img width="783" alt="Screenshot 2023-08-31 at 00 10 28"
src="https://github.com/go-gitea/gitea/assets/115237/b75f70d7-8704-4afb-866d-fea0484c52d4 ">
After:
<img width="783" alt="Screenshot 2023-08-31 at 00 10 08"
src="https://github.com/go-gitea/gitea/assets/115237/50ed0c47-6f7c-449e-a054-13091369d43f ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-08-31 21:28:45 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	19a1e1b20e 
 
						 
						
							
							
								
								
								Remove polluted .ui.right ( #26825 )  
							
							... 
							
							
							
							
							Each change is tested manually line by line. There are too many changes
so I can't share dozens of screenshots.
In short:
1. `ui right` could be still used in `ui top attached header`, because
there is a special case.
2. A lot of `ui right` are just no-op, so they can be removed safely.
3. Some of the `ui right` should be replaced by `gt-float-right` (to
avoid breaking, leave them to the future).
4. A few of the `ui right` could be rewritten by flex. 
							
						 
						
							2023-08-31 02:29:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	476b9d1589 
 
						 
						
							
							
								
								
								Use docs.gitea.com instead of docs.gitea.io ( #26739 )  
							
							
							
							
						 
						
							2023-08-27 11:59:12 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	e6f8e9318b 
 
						 
						
							
							
								
								
								Use flex classes in package settings ( #26314 )  
							
							... 
							
							
							
							
							Regression of #25790 
Fixes  #26310 
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-08 18:28:24 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Denys Konovalov 
								
							 
						 
						
							
							
								
							
							
	
	
	b9baed2c74 
 
						 
						
							
							
								
								
								Introduce flex-list & flex-item elements for Gitea UI ( #25790 )  
							
							... 
							
							
							
							
							This PR introduces a new UI element type for Gitea called `flex-item`.
It consists of a horizontal card with a leading, main and trailing part:

The idea behind it is that in Gitea UI, we have many cases where we use
this kind of layout, but it is achieved in many different ways:
  - grid layout
  - `.ui.list` with additional hacky flexbox
- `.ui.key.list` - looks to me like a style set originally created for
ssh/gpg key list, was used in many other places
  - `.issue.list` - created for issue cards, used in many other places
  - ...
This new style is based on `.issue.list`, specifically the refactoring
of it done in #25750 .
In this PR, the new element is introduced and lots of templates are
being refactored to use that style. This allows to remove a lot of
page-specific css, makes many of the elements responsive or simply
provides a cleaner/better-looking way to present information.
A devtest section with the new style is also available.
<details>
<summary>Screenshots (left: before, right: after)</summary>



















</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-08-01 00:13:42 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Dominik Heidler 
								
							 
						 
						
							
							
								
							
							
	
	
	2e128dd1fc 
 
						 
						
							
							
								
								
								RPM Registry: Show zypper commands for SUSE based distros as well ( #25981 )  
							
							... 
							
							
							
							
							After RPM is supported with https://github.com/go-gitea/gitea/pull/23380 
let's show the user
how to add the repo and install the RPM via all common package managers.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-20 17:37:31 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Denys Konovalov 
								
							 
						 
						
							
							
								
							
							
	
	
	be23b73e85 
 
						 
						
							
							
								
								
								Restructure issue list template, styles ( #25750 )  
							
							... 
							
							
							
							
							This PR does various modifications on the issue list shared template:
- restructure layout to achieve better responsiveness
-  fix various style issues
- restructure styles (better result with less code :)
- remove numerous `gt-*` patches and other unneeded classes -> use
existing css classes
<details>
<summary>Before:</summary>



</details>
<details>
<summary>After:</summary>



</details>
---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-07-09 19:38:01 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	3780795b93 
 
						 
						
							
							
								
								
								Reformat some templates ( #25756 )  
							
							... 
							
							
							
							
							Only: indent/dedent/newline 
							
						 
						
							2023-07-07 18:06:49 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	98088befae 
 
						 
						
							
							
								
								
								Fix broken translations for package documantion ( #25742 )  
							
							... 
							
							
							
							
							The code was just copied&pasted, it causes problems now.
There are a lot (for every package) broken translations. eg:
```
# en-US
conda.documentation = For more information on the Conda registry, see 
<a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
# fr-FR (and many languages)
conda.documentation=Pour plus d'informations sur le registre Conda, voir 
<a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/fr-fr/packages/conda/ ">la documentation</a>.
```
To resolve the problem fundamentally, use a general string, and trigger
the re-translating on Crowdin side.
And, it should really really really avoid introducing too much
copied&pasted code ....... 
							
						 
						
							2023-07-07 10:47:26 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									puni9869 
								
							 
						 
						
							
							
								
							
							
	
	
	2af30f715e 
 
						 
						
							
							
								
								
								Fix inconsistent user profile layout across tabs ( #25625 )  
							
							... 
							
							
							
							
							Fix ::User Profile Page  Project Tab Have Inconsistent Layout and Style
Added the big_avator for consistency in the all header_items tabs.
Fixes : #24871 
> ### Description
> in the user profile page the `Packages` and `Projects` tab have small
icons for user but other tabs have bigger profile picture with user
info:
> 
> ### Screenshots
> ### **For Packages And Projects:**
>

> 
> ### **For Other Tabs:**
>

> 
## Before

 ## After changes
Project View 
<img width="1394" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/95d181d7-8e61-496d-9899-7b825c91ad56 ">
Packages View
<img width="1378" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/7f5fd60f-6b18-4fa8-8c56-7b0d45d1a610 ">
## Org view for projects page
<img width="1385" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/6400dc89-a5ae-4f0a-831b-5b6efa020d89 ">
## Org view for packages page
<img width="1387" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/4e1e9ffe-1e4b-4334-8657-de11b5fd31d0 ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-07-06 18:59:24 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	0006169f38 
 
						 
						
							
							
								
								
								Actions list enhancements ( #25601 )  
							
							... 
							
							
							
							
							Various small enhancements to the actions list. Before and after:
<img width="1264" alt="Screenshot 2023-06-30 at 00 11 40"
src="https://github.com/go-gitea/gitea/assets/115237/bb4162ee-cdcf-4a73-b05e-f9521562edbb ">
<img width="1264" alt="Screenshot 2023-06-30 at 00 09 51"
src="https://github.com/go-gitea/gitea/assets/115237/52a70ea9-4bb3-406e-904b-0fdaafde9582 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-04 09:59:47 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	cf2356062f 
 
						 
						
							
							
								
								
								Redirect to package after version deletion ( #25594 )  
							
							... 
							
							
							
							
							Related #25559 
Current behaviour:
1. Deletion of a package version
2. Redirect to the owners package list
New behaviour:
1. Deletion of a package version
2.1. If there are more versions available, redirect to the package again
2.2. If there are no versions available, redirect to the owners package
list 
							
						 
						
							2023-06-29 17:01:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	64f2d70262 
 
						 
						
							
							
								
								
								Replace fomantic divider module with our own ( #25539 )  
							
							... 
							
							
							
							
							Should look exactly like before for normal dividers. "Horizontal" ones
look better because they no longer use image backgrounds.
<img width="917" alt="Screenshot 2023-06-27 at 19 07 56"
src="https://github.com/go-gitea/gitea/assets/115237/d97d8dec-6859-44a8-85ba-e4549b4dd9df ">
<img width="914" alt="Screenshot 2023-06-27 at 19 05 58"
src="https://github.com/go-gitea/gitea/assets/115237/8bf98544-2d82-4ebf-ac68-d6dc237bd6b2 ">
<img width="1246" alt="Screenshot 2023-06-27 at 19 00 42"
src="https://github.com/go-gitea/gitea/assets/115237/36a6bb21-6029-4f53-8bee-535f55c66fed ">
<img width="344" alt="Screenshot 2023-06-27 at 18 58 15"
src="https://github.com/go-gitea/gitea/assets/115237/a9e70aee-8e6b-4ea1-9e93-19c9f96aec6e ">
<img width="823" alt="Screenshot 2023-06-27 at 18 56 22"
src="https://github.com/go-gitea/gitea/assets/115237/e7a497cd-f262-4683-8872-23c3c8cce32f ">
<img width="330" alt="Screenshot 2023-06-27 at 19 21 11"
src="https://github.com/go-gitea/gitea/assets/115237/42f24149-a655-4c7e-bd26-8ab52db6446b "> 
							
						 
						
							2023-06-29 20:24:22 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	af094fbb6c 
 
						 
						
							
							
								
								
								Introduce shared template for search inputs ( #25338 )  
							
							... 
							
							
							
							
							- Set
[type=search](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search )
- Disable spellcheck
- Set maxLength 255 that I found in `templates/repo/issue/search.tmpl`
- Remove unnecessary `max-width`, it does nothing
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-06-22 10:27:35 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									HesterG 
								
							 
						 
						
							
							
								
							
							
	
	
	1454f9dafc 
 
						 
						
							
							
								
								
								Add actor and status dropdowns to run list ( #25118 )  
							
							... 
							
							
							
							
							Part of #25042 
1. Added actor and status dropdowns first in case something is offtrack
and PR is too large.
2. Also added "No results matched." and "The workflow has no runs yet.",
and "No results matched." will show if there is no filter results and
there is no workflows (with [reference to github
action](https://github.com/go-gitea/gitea/actions/workflows/files-changed.yml?query=actor%3AGiteaBot ))
Demo:
https://github.com/go-gitea/gitea/assets/17645053/6e76292c-4c1f-450d-8b48-99944cfc920c 
TODOs:
- [x] Get available status (same as those in `aggregateJobStatus`)
instead of getting from database
- [x] Use `JOIN` to get actors, actors order by name
- [x] Make self on top 
							
						 
						
							2023-06-21 04:25:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	831db53c21 
 
						 
						
							
							
								
								
								Fix dropdown icon layout on diff page ( #25397 )  
							
							... 
							
							
							
							
							Address
https://github.com/go-gitea/gitea/pull/25163#issuecomment-1599207916 
Remove the unused  "icon-button".
And fix the layout:
Without the dropdown icon:
```
	{{svg "gitea-whitespace"}}
```

With the dropdown icon:
```
	{{svg "gitea-whitespace" 16 "gt-mr-3"}}
	{{svg "octicon-triangle-down" 14 "dropdown icon"}}
```
 
							
						 
						
							2023-06-20 23:22:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	86d019682f 
 
						 
						
							
							
								
								
								Fix displayed RPM repo url ( #25310 )  
							
							... 
							
							
							
							
							Fixes  #25302  
						
							2023-06-16 11:56:49 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	a70d853d06 
 
						 
						
							
							
								
								
								Consolidate the two review boxes into one ( #24738 )  
							
							... 
							
							
							
							
							View diff:
https://github.com/go-gitea/gitea/pull/24738/files?diff=unified&w=1 
Improve layout and functionality in review area:
<img width="439" alt="Screenshot 2023-05-15 at 20 10 01"
src="https://github.com/go-gitea/gitea/assets/115237/be10452b-5829-4927-8801-7b26a57b3dbd ">
Remove the "Reviewers" timeline box that appears before the merge box.
it's a duplicate of the top-right review area and all functionality of
it has been moved to the other box:
<img width="868" alt="Screenshot 2023-05-15 at 19 39 31"
src="https://github.com/go-gitea/gitea/assets/115237/35489445-e54b-40d3-b3cf-38d029478f96 ">
Increase timeline item vertical padding from 12px to 16px:
<img width="449" alt="Screenshot 2023-05-15 at 19 43 50"
src="https://github.com/go-gitea/gitea/assets/115237/919c4f9d-a485-4f51-b08c-2c0fc714a413 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-05-29 12:44:03 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	cdb088cec2 
 
						 
						
							
							
								
								
								Add CRAN package registry ( #22331 )  
							
							... 
							
							
							
							
							This PR adds a [CRAN](https://cran.r-project.org/ ) package registry.
 
							
						 
						
							2023-05-22 10:57:49 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	5968c63a11 
 
						 
						
							
							
								
								
								Add Go package registry ( #24687 )  
							
							... 
							
							
							
							
							Fixes  #7608 
This PR adds a Go package registry usable with the Go proxy protocol.
 
						
							2023-05-14 23:38:40 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	9173e079ae 
 
						 
						
							
							
								
								
								Add Alpine package registry ( #23714 )  
							
							... 
							
							
							
							
							This PR adds an Alpine package registry. You can follow [this
tutorial](https://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package )
to build a *.apk package for testing.
This functionality is similar to the Debian registry (#22854 ) and
therefore shares some methods. I marked this PR as blocked because it
should be merged after #22854 .

---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-05-12 17:27:50 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	05209f0d1d 
 
						 
						
							
							
								
								
								Add RPM registry ( #23380 )  
							
							... 
							
							
							
							
							Fixes  #20751 
This PR adds a RPM package registry. You can follow [this
tutorial](https://opensource.com/article/18/9/how-build-rpm-packages ) to
build a *.rpm package for testing.
This functionality is similar to the Debian registry (#22854 ) and
therefore shares some methods. I marked this PR as blocked because it
should be merged after #22854 .
 
						
							2023-05-05 20:33:37 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	48e3e38ee0 
 
						 
						
							
							
								
								
								Clean up polluted styles and remove dead CSS code ( #24497 )  
							
							... 
							
							
							
							
							Follow #24393 
The funny history:
* At the beginning, `.ui.message` was polluted by `text-align: center`
* Then people do `<div class="ui ... message text left">`
* But `.ui.left` is polluted by `float: left`
* Then people do `#xxx .ui.message { width: 100% !important;}`
The code just becomes more and more hacky.
After removing the pollution,  everything becomes clear and straight.
And, this PR also does:
1. Remove the `package.css`, its styles could be provided by `top
aligned`
2. Remove `#avatar-arrow`, dead code
Screenshot:


Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-05-03 14:32:10 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	bf999e4069 
 
						 
						
							
							
								
								
								Add Debian package registry ( #24426 )  
							
							... 
							
							
							
							
							Co-authored-by: @awkwardbunny
This PR adds a Debian package registry.
You can follow [this
tutorial](https://www.baeldung.com/linux/create-debian-package ) to build
a *.deb package for testing.
Source packages are not supported at the moment and I did not find
documentation of the architecture "all" and how these packages should be
treated.

Part of #20751 .
Revised copy of #22854 .
---------
Co-authored-by: Brian Hong <brian@hongs.me>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-05-02 12:31:35 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	1bd2772235 
 
						 
						
							
							
								
								
								Replace remaining fontawesome dropdown icons with SVG ( #24455 )  
							
							... 
							
							
							
							
							- Replace leftover dropdown triangles with SVG
- Replace remove icon with SVG and add styling for it:
<img width="817" alt="Screenshot 2023-05-01 at 00 40 05"
src="https://user-images.githubusercontent.com/115237/235379271-4674d4f7-b11e-4d6d-90f9-1478325443ca.png ">
<img width="816" alt="Screenshot 2023-05-01 at 00 46 56"
src="https://user-images.githubusercontent.com/115237/235379451-b515afb3-9773-4f6f-a259-e7048235bcba.png "> 
							
						 
						
							2023-05-01 05:35:02 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	00d998a513 
 
						 
						
							
							
								
								
								Move links out of translation ( #24446 )  
							
							... 
							
							
							
							
							Addition to
https://github.com/go-gitea/gitea/pull/24426#discussion_r1181261215 
I updated all existing translations too because otherwise they would
show something like
> For more information on the Container registry, see [the
documentation](#).%!(EXTRA
string=https://docs.gitea.io/en-us/packages/container/ )
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-05-01 09:17:27 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	241b74f6c5 
 
						 
						
							
							
								
								
								Improve template helper ( #24417 )  
							
							... 
							
							
							
							
							It seems that we really need the "context function" soon. So we should
clean up the helper functions first.
Major changes:
* Improve StringUtils and add JsonUtils
* Remove one-time-use helper functions like CompareLink
* Move other code (no change) to util_avatar/util_render/util_misc (no
need to propose changes for them)
I have tested the changed templates:




---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-29 08:02:29 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	c0ddec8a2a 
 
						 
						
							
							
								
								
								Revert "Add Debian package registry" ( #24412 )  
							
							... 
							
							
							
							
							Reverts go-gitea/gitea#22854  
							
						 
						
							2023-04-28 18:06:41 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	bf77e2163b 
 
						 
						
							
							
								
								
								Add Debian package registry ( #22854 )  
							
							... 
							
							
							
							
							Co-authored-by: @awkwardbunny
This PR adds a Debian package registry. You can follow [this
tutorial](https://www.baeldung.com/linux/create-debian-package ) to build
a *.deb package for testing. Source packages are not supported at the
moment and I did not find documentation of the architecture "all" and
how these packages should be treated.
---------
Co-authored-by: Brian Hong <brian@hongs.me>
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							2023-04-28 17:51:36 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir Smagin 
								
							 
						 
						
							
							
								
							
							
	
	
	1c875ef5be 
 
						 
						
							
							
								
								
								Add custom helm repo name generated from url ( #24363 )  
							
							... 
							
							
							
							
							Fresh version of "Add custom helm repo name generated from url #21024 "
https://github.com/go-gitea/gitea/pull/21024 
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-27 07:40:00 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	0e8045d8ea 
 
						 
						
							
							
								
								
								Fix template function DateTime ( #24317 )  
							
							... 
							
							
							
							
							Before, 500 error
 
							
						 
						
							2023-04-25 15:48:30 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	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 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	476a043a5f 
 
						 
						
							
							
								
								
								Refactor delete_modal_actions template and use it for project column related actions ( #24097 )  
							
							... 
							
							
							
							
							Co-Author: @wxiaoguang 
This PR is to fix
https://github.com/go-gitea/gitea/issues/23318#issuecomment-1506275446  .
The way to fix this in this PR is to use `delete_modal_actions.tmpl`
here both to fix this issue and keep ui consistency (as suggested by
[TODO
here](4299c3b7db/templates/projects/view.tmpl (L161)https://user-images.githubusercontent.com/17645053/233825650-76307e65-9255-44bb-80e8-7062f58ead1b.png ">
<img width="786" alt="Screen Shot 2023-04-23 at 15 17 21"
src="https://user-images.githubusercontent.com/17645053/233825652-4dc6f7d1-a180-49fb-a468-d60950eaee0d.png ">
Test for functionalities:
https://user-images.githubusercontent.com/17645053/233826857-76376fda-022c-42d0-b0f3-339c17ca4e59.mov 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-04-23 17:24:19 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	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 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	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 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Daniel Gunzinger 
								
							 
						 
						
							
							
								
							
							
	
	
	31ae81fe70 
 
						 
						
							
							
								
								
								fix: do not escape space between PyPI repository url and package name… ( #23981 )  
							
							... 
							
							
							
							
							…; add trailing slash to PyPI repository URL (in accordance to PEP-503)
This should solve Issue #23980 , by moving the space in front of the
package name and the package name out of the `gitea-origin-url` block.
It also adds a trailing slash to the PyPI repository URL in accordance
to [Python PEP-503](https://peps.python.org/pep-0503/ ).
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2023-04-08 14:57:00 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Bob Vandevliet 
								
							 
						 
						
							
							
								
							
							
	
	
	6e346f84c1 
 
						 
						
							
							
								
								
								More specific and unique feed name for NuGet install command template. ( #23889 )  
							
							... 
							
							
							
							
							The default command to setup a NuGet registry from the command line is:
```
dotnet nuget add source --name Gitea --username your_username --password your_token <gitea-origin-url/>
```
The feed name `Gitea` is hard-coded into the command template, so each
registry will by default have the same feed name. I know templates can
be overridden using the `custom` folder. But in my opinion, it's a good
practice to make a slight change in the default template to make the
feed name more context specific:
```
dotnet nuget add source --name {{.PackageDescriptor.Owner.Name}} --username your_username --password your_token <gitea-origin-url/>
``` 
							
						 
						
							2023-04-06 17:35:32 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	fbd4eaceed 
 
						 
						
							
							
								
								
								Display image size for multiarch container images ( #23821 )  
							
							... 
							
							
							
							
							Fixes  #23771 
Changes the display of different architectures for multiarch images to
show the image size:
 
						
							2023-04-02 17:53:37 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Hester Gong 
								
							 
						 
						
							
							
								
							
							
	
	
	f401337f64 
 
						 
						
							
							
								
								
								fix br display for packages curls ( #23737 )  
							
							... 
							
							
							
							
							Before:
<img width="1403" alt="截屏2023-03-27 15 48 23"
src="https://user-images.githubusercontent.com/17645053/227875392-399debf7-db75-4d9a-9436-409f75447c65.png ">
This happens because the `<br>` matches this
[rule](e6e602fd8d/web_src/css/markup/content.css (L428)#22861 , did a quick
check, and this is the only place used `<br>` inside `<code>` from the
PR):
```css
.markup code br,
.markup tt br {
  display: none;
}
```
After:
<img width="1398" alt="截屏2023-03-27 15 46 50"
src="https://user-images.githubusercontent.com/17645053/227875244-b7fba432-b32c-42f7-9517-4e05bb2e64ea.png ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-03-28 01:18:01 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									delvh 
								
							 
						 
						
							
							
								
							
							
	
	
	81fe5d6185 
 
						 
						
							
							
								
								
								Convert <div class="button"> to <button class="button"> ( #23337 )  
							
							... 
							
							
							
							
							This improves a lot of accessibility shortcomings.
Every possible instance of `<div class="button">` matching the command
`ag '<[^ab].*?class=.*?[" ]button[ "]' templates/ | grep -v 'dropdown'`
has been converted when possible.
divs with the `dropdown` class and their children were omitted as
1. more analysis must be conducted whether the dropdowns still work as
intended when they are a `button` instead of a `div`.
2. most dropdowns have `div`s as children. The HTML standard disallows
`div`s inside `button`s.
3. When a dropdown child that's part of the displayed text content is
converted to a `button`, the dropdown can be focused twice
Further changes include that all "gitea-managed" buttons with JS code
received an `e.preventDefault()` so that they don't accidentally submit
an underlying form, which would execute instead of cancel the action.
Lastly, some minor issues were fixed as well during the refactoring.
## Future improvements
As mentioned in
https://github.com/go-gitea/gitea/pull/23337#discussion_r1127277391 ,
`<a>`s without `href` attribute are not focusable.
They should later on be converted to `<button>`s.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2023-03-14 11:34:09 +08:00