Gary Wang 
							
						 
					 
					
						
						
							
						
						ece0ce6854 
					 
					
						
						
							
							UI: add hover background to table rows in user and repo admin page ( #35072 )  
						
						
						
						
					 
					
						2025-07-14 08:29:35 -04:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						63ee6783b8 
					 
					
						
						
							
							Refactor "delete-button" to "link-action" ( #34962 )  
						
						
						
						
					 
					
						2025-07-06 00:01:53 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						9854df3e87 
					 
					
						
						
							
							Fix a regression when refactoring fork list ( #34879 )  
						
						... 
						
						
						
						Fix a regression when refactoring fork list from #34784  
						
						
					 
					
						2025-06-27 06:45:21 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						327048c106 
					 
					
						
						
							
							Refactor template helper ( #34819 )  
						
						... 
						
						
						
						FIx abuses and remove unused code
---------
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2025-06-24 01:27:35 +08:00 
						 
				 
			
				
					
						
							
							
								Kerwin Bryant 
							
						 
					 
					
						
						
							
						
						a52720b5b4 
					 
					
						
						
							
							Add "No data available" display when list is empty ( #33517 )  
						
						... 
						
						
						
						Add a "No data available" message to be displayed when the list has no
data. This improves the user experience by providing clear feedback in
an empty state.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2025-02-09 00:13:41 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						b068dbd40e 
					 
					
						
						
							
							Refactor DateUtils and merge TimeSince ( #32409 )  
						
						... 
						
						
						
						Follow #32383  and #32402  
						
						
					 
					
						2024-11-04 11:30:00 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						fec6b3d500 
					 
					
						
						
							
							Replace DateTime with DateUtils ( #32383 )  
						
						
						
						
					 
					
						2024-11-02 04:08:28 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						c2217670dd 
					 
					
						
						
							
							Move admin routers from /admin to /-/admin ( #32189 )  
						
						... 
						
						
						
						Resolve  #32181 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
					
						2024-10-10 04:56:49 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						138e946c3d 
					 
					
						
						
							
							Replace gt-word-break with tw-break-anywhere ( #31183 )  
						
						... 
						
						
						
						`overflow-wrap: anywhere` is a superior alternative to `word-wrap:
break-word` and we were already setting it in the class. I tested a few
cases, all look good. 
						
						
					 
					
						2024-06-04 13:57:11 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						9946353282 
					 
					
						
						
							
							Remove fomantic button module ( #30475 )  
						
						... 
						
						
						
						CSS-only module. Button colors are reduced to this:
<img width="639" alt="Screenshot 2024-04-14 at 15 36 07"
src="https://github.com/go-gitea/gitea/assets/115237/882d6c02-d1de-44f2-b707-db02a9f5070d ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-04-14 17:53:52 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						68ec9b4859 
					 
					
						
						
							
							Migrate margin and padding helpers to tailwind ( #30043 )  
						
						... 
						
						
						
						This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g'   {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g'   {web_src/js,templates,routers,services}/**/*
``` 
						
						
					 
					
						2024-03-24 17:42:49 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						04f9ad0568 
					 
					
						
						
							
							Fix incorrect tailwind migration ( #30007 )  
						
						... 
						
						
						
						Fixes https://github.com/go-gitea/gitea/issues/30005 . Regression from
https://github.com/go-gitea/gitea/pull/29945 .
There was only once instance of `tw-content-center` before that PR, so I
just ran below command and reverted that one instance.
```sh
perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
``` 
						
						
					 
					
						2024-03-22 20:51:29 +01:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						f88ad5424f 
					 
					
						
						
							
							Replace 10 more gt- classes with tw- ( #29945 )  
						
						... 
						
						
						
						Likely the biggest change of the tailwind refactors. Only thing of note
is that `tw-flex-1` resolves to `flex: 1 1 0%` while our `gt-f1` was
`flex: 1 1 0`, I don't think it will make any difference. Commands I've
ran:
```sh
perl -p -i -e 's#gt-vm#tw-align-middle#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fw#tw-flex-wrap#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-f1#tw-flex-1#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-fc#tw-flex-col#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-sb#tw-justify-between#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-je#tw-justify-end#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-jc#tw-justify-center#g' web_src/js/**/* templates/**/* models/**/*
perl -p -i -e 's#gt-ac#tw-content-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-df#tw-flex#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
perl -p -i -e 's#gt-dib#tw-inline-block#g' web_src/js/**/* templates/**/* models/**/* tests/**/*
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-03-22 13:45:10 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						bfa160fc98 
					 
					
						
						
							
							Refactor repo header/list ( #29969 )  
						
						... 
						
						
						
						1. Use general "mobile-only" and "not-mobile" CSS styles, remove some`@media (max-width: 767.98px)` tricks
2. Use `CountFmt` for repo list, just like the repo header (and it matches GitHub, to avoid big numbers bloat the page) 
						
						
					 
					
						2024-03-21 17:04:03 +00:00 
						 
				 
			
				
					
						
							
							
								Denys Konovalov 
							
						 
					 
					
						
						
							
						
						e0b002a4a8 
					 
					
						
						
							
							Unify search boxes ( #29530 )  
						
						... 
						
						
						
						Unify all but a few search boxes to use uniform style, uniform
translations and shared templates where possible.
Remove a few duplicated search templates, e. g. code search.
<details><summary>Example after screenshots:</summary>




</details>
Also includes #29700  
Co-authored-by: 6543 <6543@obermui.de >
---------
Co-authored-by: 6543 <m.huber@kithara.com >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2024-03-14 23:24:59 +00:00 
						 
				 
			
				
					
						
							
							
								Tim-Niclas Oelschläger 
							
						 
					 
					
						
						
							
						
						e3524c63d6 
					 
					
						
						
							
							Filter Repositories by type ( #29231 )  
						
						... 
						
						
						
						Filter Repositories by type (resolves  #1170 , #1318 )
before:

after:
 
						
						
					 
					
						2024-03-03 10:18:34 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						f9207b0947 
					 
					
						
						
							
							Refactor Safe modifier ( #29392 )  
						
						... 
						
						
						
						After this PR: no need to play with the Safe/Escape tricks anymore. See
the changes for more details. 
						
						
					 
					
						2024-02-25 10:45:56 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						a784ed3d6c 
					 
					
						
						
							
							Use "Safe" modifier for manually constructed safe HTML strings in templates ( #29227 )  
						
						... 
						
						
						
						Follow #29165 . These HTML strings are safe to be rendered directly, to
avoid double-escaping. 
						
						
					 
					
						2024-02-18 01:48:59 +00:00 
						 
				 
			
				
					
						
							
							
								Adam Majer 
							
						 
					 
					
						
						
							
						
						d68a613ba8 
					 
					
						
						
							
							Add support for sha256 repositories ( #23894 )  
						
						... 
						
						
						
						Currently only SHA1 repositories are supported by Gitea. This adds
support for alternate SHA256 with the additional aim of easier support
for additional hash types in the future.
Fixes : #13794 
Limited by: https://github.com/go-git/go-git/issues/899 
Depend on: #28138 
<img width="776" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/5448c9a7-608e-4341-a149-5dd0069c9447 ">
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: 6543 <6543@obermui.de > 
						
						
					 
					
						2024-01-19 17:05:02 +01: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 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						83c30634a4 
					 
					
						
						
							
							Add word break to the repo list in admin settings page ( #28034 )  
						
						... 
						
						
						
						Before:

After:
 
						
						
					 
					
						2023-11-14 04:58:01 +00:00 
						 
				 
			
				
					
						
							
							
								Denys Konovalov 
							
						 
					 
					
						
						
							
						
						0271114e64 
					 
					
						
						
							
							cleanup repo details icons/labels ( #27644 )  
						
						... 
						
						
						
						Fix  #27596  
Change confusing behavior when showing information about a repo via
labels and icons. Implement changes proposed by @lng2020 in
https://github.com/go-gitea/gitea/pull/27627#pullrequestreview-1678787673 . 
					
						2023-10-16 23:06:15 +02: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 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						1f026bcb7e 
					 
					
						
						
							
							Fix dropdown icon position ( #27175 )  
						
						... 
						
						
						
						According to https://fomantic-ui.com/modules/dropdown.html  and our
"devtest" page, many dropdown elements has incorrect "icon" position.
This PR fixes all of them. Fix  #27173  
						
						
					 
					
						2023-09-21 15:54:26 +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 
						 
				 
			
				
					
						
							
							
								a1012112796 
							
						 
					 
					
						
						
							
						
						4aba8a6a5f 
					 
					
						
						
							
							Split lfs size from repository size ( #22900 )  
						
						... 
						
						
						
						releated to #21820 
- Split `Size` in repository table as two new colunms, one is `GitSize`
for git size, the other is `LFSSize` for lfs data. still store full size
in `Size` colunm.
- Show full size on ui, but show each of them by a `title`;  example:

- Return full size in api response.
---------
Signed-off-by: a1012112796 <1012112796@qq.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: DmitryFrolovTri <23313323+DmitryFrolovTri@users.noreply.github.com >
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-06-28 22:41:02 +00:00 
						 
				 
			
				
					
						
							
							
								HesterG 
							
						 
					 
					
						
						
							
						
						c082689471 
					 
					
						
						
							
							Use flex instead of float for sort button and search input ( #25519 )  
						
						... 
						
						
						
						Right now some sort buttons beside search input are unclickable because
#25338  removed `max-width` and the sort button is using float, sort
button is then covered by the `input`.
The way to fix this in this PR is changing the layout to `flex` and put
`input form` and sort `button` into `secondary menu`.
After:
<img width="1411" alt="Screen Shot 2023-06-26 at 16 40 52"
src="https://github.com/go-gitea/gitea/assets/17645053/63c12b17-793a-4ae7-bbda-f67b13b87212 ">
<img width="1428" alt="Screen Shot 2023-06-26 at 16 34 06"
src="https://github.com/go-gitea/gitea/assets/17645053/cb7d967e-355d-4cb0-955c-6139580fc17a ">
<img width="716" alt="Screen Shot 2023-06-26 at 16 34 22"
src="https://github.com/go-gitea/gitea/assets/17645053/c74b5ef2-d46e-4487-8794-28bec984bb36 ">
<img width="1424" alt="Screen Shot 2023-06-26 at 16 34 32"
src="https://github.com/go-gitea/gitea/assets/17645053/8a5fdc05-a2c5-4ec4-979d-15a21501fe14 ">
<img width="1425" alt="Screen Shot 2023-06-26 at 16 35 21"
src="https://github.com/go-gitea/gitea/assets/17645053/eb73cd31-3914-4bc9-92ab-aba56f25128b ">
<img width="1437" alt="Screen Shot 2023-06-26 at 16 36 14"
src="https://github.com/go-gitea/gitea/assets/17645053/1c3b4595-bb26-491f-aa68-60dc9ab22b84 "> 
						
						
					 
					
						2023-06-28 20:10:36 +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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						e24f651c86 
					 
					
						
						
							
							Add template linting via djlint ( #25212 )  
						
						... 
						
						
						
						So I found this [linter](https://github.com/Riverside-Healthcare/djlint )
which features a mode for go templates, so I gave it a try and it did
find a number of valid issue, like unbalanced tags etc. It also has a
number of bugs, I had to disable/workaround many issues.
Given that this linter is written in python, this does add a dependency
on `python` >= 3.8 and `poetry` to the development environment to be
able to run this linter locally.
- `e.g.` prefixes on placeholders are removed because the linter had a
false-positive on `placeholder="e.g. cn=Search"` for the `attr=value`
syntax and it's not ideal anyways to write `e.g.` into a placeholder
because a placeholder is meant to hold a sample value.
- In `templates/repo/settings/options.tmpl` I simplified the logic to
not conditionally create opening tags without closing tags because this
stuff confuses the linter (and possibly the reader as well). 
						
						
					 
					
						2023-06-14 18:17:58 +00:00 
						 
				 
			
				
					
						
							
							
								Yarden Shoham 
							
						 
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						83022013c8 
					 
					
						
						
							
							Fix layouts of admin table / adapt repo / email test  ( #24370 )  
						
						... 
						
						
						
						Ref:
https://github.com/go-gitea/gitea/pull/24315#pullrequestreview-1403034993 
And fix the incorrect layout for "dasbboard", the "form" shouldn't
follow `<h4 class="ui top attached header">`, so move it to inner.
Diff with ignoring spaces:
https://github.com/go-gitea/gitea/pull/24370/files?diff=unified&w=1 
A known bug: the adapt/delete button doesn't work due to a historical
messy logic, will fix it in next PR (#24374 )



 
						
						
					 
					
						2023-04-28 09:48:41 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						0e8045d8ea 
					 
					
						
						
							
							Fix template function DateTime ( #24317 )  
						
						... 
						
						
						
						Before, 500 error
 
						
						
					 
					
						2023-04-25 15:48:30 -04:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						75c62054a6 
					 
					
						
						
							
							Improve some modal action buttons ( #24289 )  
						
						... 
						
						
						
						Follow #24097  and #24285 
And add a devtest page for modal action button testing.
http://localhost:3000/devtest/fomantic-modal 
Now the `modal_actions_confirm.tmpl` could support: green / blue /
yellow positive buttons, the negative button is "secondary".
ps: this PR is only a small improvement, there are still a lot of
buttons not having proper colors. In the future these buttons could be
improved by this approach.
These buttons could also be improved according to the conclusion of
#24285  in the future.

And add GitHub-like single danger button (context:
https://github.com/go-gitea/gitea/issues/24285#issuecomment-1519100312 )

---------
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2023-04-24 07:08:59 -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 
							
						 
					 
					
						
						
							
						
						44e0cfa96e 
					 
					
						
						
							
							Change to vertical navbar layout for secondary navbar for repo/user/admin settings  ( #24246 )  
						
						... 
						
						
						
						Co-Author: @wxiaoguang 
This is the first step of #24229 . And this PR will only includes html
changes, and followed by other PRs that fine tune css and change to
submenus.
After:
Admin Level
<img width="1400" alt="Screen Shot 2023-04-21 at 10 07 16"
src="https://user-images.githubusercontent.com/17645053/233523870-f848b61d-056a-4b41-9760-a9a49fea1fe8.png ">
User Level
<img width="1422" alt="Screen Shot 2023-04-21 at 10 07 23"
src="https://user-images.githubusercontent.com/17645053/233523878-979adb20-a657-43d9-99a6-ad414010c0ef.png ">
Repo Level
<img width="1404" alt="Screen Shot 2023-04-21 at 10 07 07"
src="https://user-images.githubusercontent.com/17645053/233523863-337440bd-c03a-4dfd-87fa-cef40300bfe0.png ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-04-23 18:21:21 +08: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 
							
						 
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
						
						6250fe1dc1 
					 
					
						
						
							
							Fix .locale.Tr function not found in delete modal ( #23468 )  
						
						... 
						
						
						
						Caught by @wxiaoguang in
https://github.com/go-gitea/gitea/pull/23337#issuecomment-1467317742 .
Additionally, there were three instances that have the same content as `templates/base/deletion_modal_actions.tmpl` but that are not intended to delete something.
Instead of renaming the template above, these instances were simply re-hard-coded again.
Renaming/improving the template above is left for future PRs. 
						
						
					 
					
						2023-03-20 20:41:57 -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 
						 
				 
			
				
					
						
							
							
								zeripath 
							
						 
					 
					
						
						
							
						
						51383ec084 
					 
					
						
						
							
							Move helpers to be prefixed with gt- ( #22879 )  
						
						... 
						
						
						
						As discussed in #22847  the helpers in helpers.less need to have a
separate prefix as they are causing conflicts with fomantic styles
This will allow us to have the `.gt-hidden { display:none !important; }`
style that is needed to for the reverted PR.
Of note in doing this I have noticed that there was already a conflict
with at least one chroma style which this PR now avoids.
I've also added in the `gt-hidden` style that matches the tailwind one
and switched the code that needed it to use that.
Signed-off-by: Andrew Thornton <art27@cantab.net >
---------
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-02-13 17:59:59 +00:00 
						 
				 
			
				
					
						
							
							
								Felipe Leopoldo Sologuren Gutiérrez 
							
						 
					 
					
						
						
							
						
						15c035775a 
					 
					
						
						
							
							Add main landmark to templates and adjust titles ( #22670 )  
						
						... 
						
						
						
						* Add main aria landmark to templates
 * Adjust some titles to improve understanding of location in navigation
Contributed by @Forgejo 
						
						
					 
					
						2023-02-01 22:56:10 +00:00 
						 
				 
			
				
					
						
							
							
								Jason Song 
							
						 
					 
					
						
						
							
						
						2779d47ad3 
					 
					
						
						
							
							Optimize html templates ( #22080 )  
						
						... 
						
						
						
						Replace `active{{end}} item` with `active{{end}} item`. 
						
						
					 
					
						2022-12-09 21:34:51 +08:00 
						 
				 
			
				
					
						
							
							
								Yarden Shoham 
							
						 
					 
					
						
						
							
						
						acdb92ad42 
					 
					
						
						
							
							Localize all timestamps ( #21440 )  
						
						... 
						
						
						
						Following
* #21410  
We are now able to localize all timestamps. Some examples:
`short-date` format, French, user profile page:

`date-time` format, Portuguese, mirror repository settings page:

Signed-off-by: Yarden Shoham <hrsi88@gmail.com >
Signed-off-by: Yarden Shoham <hrsi88@gmail.com >
Co-authored-by: Gusted <williamzijl7@hotmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2022-10-17 12:08:21 +08:00 
						 
				 
			
				
					
						
							
							
								Gusted 
							
						 
					 
					
						
						
							
						
						d55a0b7238 
					 
					
						
						
							
							Refactor i18n to locale ( #20153 )  
						
						... 
						
						
						
						* Refactor `i18n` to `locale`
- Currently we're using the `i18n` variable naming for the `locale`
struct. This contains locale's specific information and cannot be used
for general i18n purpose, therefore refactoring it to `locale` makes
more sense.
- Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200 
* Update routers/install/install.go 
						
						
					 
					
						2022-06-27 15:58:46 -05:00 
						 
				 
			
				
					
						
							
							
								Lauris BH 
							
						 
					 
					
						
						
							
						
						1f8f9c3826 
					 
					
						
						
							
							Remove tab/TabName usage where it's not needed ( #19973 )  
						
						... 
						
						
						
						`tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore. 
						
						
					 
					
						2022-06-15 23:05:32 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						9da3d78e74 
					 
					
						
						
							
							Replace blue button and label classes with primary ( #19763 )  
						
						... 
						
						
						
						* make blue really blue
* replace blue button and label classes with primary
* add --color-blue-dark
* add light color variants, tweak a few colors
* fix colors
* add comment
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2022-05-20 00:08:08 +02:00 
						 
				 
			
				
					
						
							
							
								Gusted 
							
						 
					 
					
						
						
							
						
						3725fa28cc 
					 
					
						
						
							
							Improve UI on mobile ( #19546 )  
						
						... 
						
						
						
						Start making the mobile experience not painful and be actually usable. This contains a few smaller changes to enhance this experience.
- Submit buttons on the review forms aren't columns anymore and are now allowed to be displayed on one row.
- The label/milestone & New Issue buttons were given each own row even tough, there's enough place to do it one the same row. This commit fixes that.
- The issues+Pull tab on repo's has a third item besides the label/milestone & New Issue buttons, the search bar. On desktop there's enough place to do this on one row, for mobile it isn't, currently it was using for each item a new row. This commits fixes that by only giving the searchbar a new row and have the other two buttons on the same row.
- The notification table will now be show a scrollbar instead of overflow.
- The repo buttons(Watch, Star, Fork) on mobile were showing quite big and the SVG wasn't even displayed on the same line, if the count of those numbers were too high it would even overflow. This commit removes the SVG, as there isn't any place to show them on the same row and allows them to have a new row if the counts of those buttons are high.
- The admin page can show you a lot of interesting information, on mobile the System Status + Configuration weren't properly displayed as the margin's were too high. This commit fixes that by reducing the margin to a number that makes sense on mobile.
- Fixes to not overflow the tables but instead force them to be scrollable.
- When viewing a issue or pull request, the comments aren't full-width but instead 80% and aligned to right, on mobile this is a annoyance as there isn't much width to begin with. This commits fixes that by forcing full-width and removing the avatars on the left side and instead including them inline in the comment header. 
						
						
					 
					
						2022-05-01 18:11:21 +02:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						1eb0da58c3 
					 
					
						
						
							
							Update JS dependencies ( #19281 )  
						
						... 
						
						
						
						- Upgrade all JS dependencies minus vue and vue-loader
- Adapt to breaking change of octicons
- Update eslint rules
- Tested Swagger UI, sortablejs and prod build 
						
						
					 
					
						2022-04-01 02:15:46 +02:00