Lunny Xiao 
							
						 
					 
					
						
						
							
						
						7a15334656 
					 
					
						
						
							
							Fix git commit committer parsing and add some tests ( #35007 )  
						
						... 
						
						
						
						* Fix  #34991 
* Fix  #34882 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2025-07-10 19:03:36 +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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						dfea75371c 
					 
					
						
						
							
							Improve alignment of commit status icon on commit page ( #34750 )  
						
						... 
						
						
						
						Before, icon vertically misaligned:
<img width="243" alt="Screenshot 2025-06-17 at 18 14 26"
src="https://github.com/user-attachments/assets/ac515c6d-25bd-44da-88be-a1d93c137ed0 "
/>
After, icon correctly vertically centered:
<img width="244" alt="Screenshot 2025-06-17 at 18 14 40"
src="https://github.com/user-attachments/assets/41556d52-aa15-4bfb-82e2-91ed774cf2b0 "
/>
I think it's fine to single out this one case and not alter
`flex-text-inline` because that class seems to work well in other
places. 
						
						
					 
					
						2025-06-18 02:14:11 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						179068fddb 
					 
					
						
						
							
							Refactor commit message rendering and fix bugs ( #34412 )  
						
						... 
						
						
						
						Fix  #34398 , fix  #33308 
Remove all `repo.ComposeCommentMetas` from templates,
only use `repo` to render commit message. 
					
						2025-05-09 20:42:35 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e1c2d05bde 
					 
					
						
						
							
							Fix markdown render behaviors ( #34122 )  
						
						... 
						
						
						
						* Fix  #27645 
* Add config options `MATH_CODE_BLOCK_DETECTION`, problematic syntaxes
are disabled by default
* Fix  #33639 
    * Add config options `RENDER_OPTIONS_*`, old behaviors are kept 
						
						
					 
					
						2025-04-05 11:56:48 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						1ea5216f4a 
					 
					
						
						
							
							Replace text-align classes with tailwind ( #33905 )  
						
						... 
						
						
						
						Small refactor to remove these CSS classes in favor of tailwind.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2025-03-16 12:08:16 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						fcd096231a 
					 
					
						
						
							
							Simplify context ref name ( #33267 )  
						
						
						
						
					 
					
						2025-01-15 11:15:47 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						cf60734a4d 
					 
					
						
						
							
							Fix dropdown menu header and mobile view ( #33108 )  
						
						... 
						
						
						
						
----

----
 
						
						
					 
					
						2025-01-05 21:20:22 +00:00 
						 
				 
			
				
					
						
							
							
								Blender Defender 
							
						 
					 
					
						
						
							
						
						079a1ffe8f 
					 
					
						
						
							
							De-emphasize signed commits ( #31160 )  
						
						... 
						
						
						
						The new code structure is easier to make more improvements or
refactor, for example: change the colors to de-emphasize more, or design
some new layouts.
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-12-28 04:18:30 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						2d7e6e9482 
					 
					
						
						
							
							Fix various trivial problems ( #32861 )  
						
						... 
						
						
						
						1. add/improve comments to help future readers could understand the
problem more easily.
2. add an error log to LDAP with username fallback
3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a
mistake, but it doesn't really affect the UI)
4. add `tw-font-mono` style to container digest to match dockerhub
5. fix a bug in RepoBranchTagSelector: the form is not updated when
there is no click to an item
---------
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2024-12-17 01:15:18 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e3e32605a1 
					 
					
						
						
							
							Refactor RepoBranchTagSelector ( #32681 )  
						
						
						
						
					 
					
						2024-12-02 01:41:32 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						4a469c8e1b 
					 
					
						
						
							
							Refactor template ctx and render utils ( #32422 )  
						
						... 
						
						
						
						Clean up the templates 
						
						
					 
					
						2024-11-05 14:04:26 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						b068dbd40e 
					 
					
						
						
							
							Refactor DateUtils and merge TimeSince ( #32409 )  
						
						... 
						
						
						
						Follow #32383  and #32402  
						
						
					 
					
						2024-11-04 11:30:00 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						a3d9f0d915 
					 
					
						
						
							
							Fix all rounded borders, change affected tab menus to pills ( #30707 )  
						
						... 
						
						
						
						Fixes https://github.com/go-gitea/gitea/issues/30673 , all 23 issues.
Notes:
- Tab bar menus had to change to pills because of unsolvable issue with
the border-radius as tab bar renders a overlapping border onto the box
below. And I think pills look better.
- Added padding to code editor empty preview message
- Hide monaco's built-in blue focus border, we don't need it and it
never showed before either.
- Label add menu is simplified, removing the nested segment.
<img width="1322" alt="Screenshot 2024-04-25 at 22 26 19"
src="https://github.com/go-gitea/gitea/assets/115237/7e394e0c-b7ad-417d-8e9f-12f1dea93ed1 ">
<img width="1326" alt="Screenshot 2024-04-25 at 22 28 00"
src="https://github.com/go-gitea/gitea/assets/115237/66c8499f-aa9f-4d95-8cca-ef13dfa82c65 ">
<img width="997" alt="Screenshot 2024-04-25 at 22 36 53"
src="https://github.com/go-gitea/gitea/assets/115237/07896102-c71d-4246-8173-c2bc2e1d3cae ">
<img width="832" alt="Screenshot 2024-04-25 at 22 56 09"
src="https://github.com/go-gitea/gitea/assets/115237/d83afc96-08ca-4adc-baf4-3d02804be57c ">
<img width="361" alt="Screenshot 2024-04-25 at 22 57 12"
src="https://github.com/go-gitea/gitea/assets/115237/c7371a68-00b5-47d8-84d0-ddc5268b2b2c ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2024-04-29 20:53:15 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						3e2e76e248 
					 
					
						
						
							
							Refactor web routes ( #30519 )  
						
						... 
						
						
						
						Re-organize the routes in web.go and use ctx constants instead of `context.UnitTypes()`
---------
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2024-04-17 08:31:37 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						50099d7af4 
					 
					
						
						
							
							Various improvements for long file and commit names ( #30374 )  
						
						... 
						
						
						
						Fixes: https://github.com/go-gitea/gitea/issues/29438 
This contains numerous enhancements for how large commit messages and
large filenames render. Another notable change is that the file path is
no longer cut off by backend at 30 chars, but rendered in full with
wrapping.
<img width="1329" alt="Screenshot 2024-04-09 at 21 53 57"
src="https://github.com/go-gitea/gitea/assets/115237/5ccbb3d6-643a-4f60-ba79-3572b36d5182 ">
<hr>
<img width="711" alt="Screenshot 2024-04-09 at 21 44 24"
src="https://github.com/go-gitea/gitea/assets/115237/6ffe8fbb-407c-4aa7-b591-3d80daea7d57 ">
<hr>
<img width="439" alt="Screenshot 2024-04-09 at 21 19 03"
src="https://github.com/go-gitea/gitea/assets/115237/1ec7f6e9-2fd8-4841-87eb-6ca02ab9cd61 ">
<hr>
<img width="444" alt="Screenshot 2024-04-09 at 21 18 52"
src="https://github.com/go-gitea/gitea/assets/115237/70931b9e-5841-477e-b3bc-98f8d2662964 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2024-04-10 06:13:22 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						649aada366 
					 
					
						
						
							
							Remove fomantic list module ( #30281 )  
						
						... 
						
						
						
						Likely still some unnecessary CSS but any combinations with the `ui
list` classes are covered. There was only on instance of `horizontal
list` which I removed. It was this part of the commit page:
<img width="396" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/c49ec4f5-93c3-41d6-a907-cdbedf8abc44 "> 
						
						
					 
					
						2024-04-06 21:33:45 +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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						7e8c1c5ba1 
					 
					
						
						
							
							Replace more gt- with tw-, update frontend docs ( #29595 )  
						
						... 
						
						
						
						Tested a few things, all working fine. Not sure if the chinese machine
translation is good.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-03-05 05:29:32 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						a2e90014ec 
					 
					
						
						
							
							Replace some gt- classes with tw- ( #29570 )  
						
						... 
						
						
						
						Replace 18 `gt-` prefixes with `tw-` with perl replacement. I manually
checked them all with `rg` afterwards. 
						
						
					 
					
						2024-03-04 03:33:20 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						fb42972c05 
					 
					
						
						
							
							Rename Str2html to SanitizeHTML and clarify its behavior ( #29516 )  
						
						... 
						
						
						
						Str2html was abused a lot. So use a proper name for it: SanitizeHTML
And add some tests to show its behavior. 
						
						
					 
					
						2024-03-01 10:16:19 +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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						39f8ab591c 
					 
					
						
						
							
							Clean up diff header css and reduce global textarea min-height ( #29232 )  
						
						... 
						
						
						
						1. Tweak diff header and remove a numbe of unneeded CSS for it:
Before:
<img width="433" alt="Screenshot 2024-02-18 at 01 08 09"
src="https://github.com/go-gitea/gitea/assets/115237/d8b377c0-57bc-44d5-bb57-a582c7d4b3b4 ">
After:
<img width="463" alt="Screenshot 2024-02-18 at 01 07 56"
src="https://github.com/go-gitea/gitea/assets/115237/d08c17e7-5b86-4d07-81da-6371f4754325 ">
3. Reduce height of review textarea and also reduce fomantic's CSS from
12em to 8em. Now fits better on my screen:
<img width="1352" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/5c658d13-295e-4929-94da-13ade888020d ">
---------
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2024-02-18 14:51:21 +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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						a062725758 
					 
					
						
						
							
							Update JS and PY dependencies, build for es2020 browsers ( #28977 )  
						
						... 
						
						
						
						- Update all JS dependencies minus @mcaptcha/vanilla-glue
- Fix new lint errors
- Regenerate SVGs
- Switch to maintained stylelint stylistic plugin
- Tested Mermaid, Citation, Swagger, sorting
- Raise ESBuild target to `es2020` as dictated by `pretty-ms`
dependency. 
						
						
					 
					
						2024-02-02 09:36:32 +00:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						637451a45e 
					 
					
						
						
							
							Rework markup link rendering ( #26745 )  
						
						... 
						
						
						
						Fixes  #26548 
This PR refactors the rendering of markup links. The old code uses
`strings.Replace` to change some urls while the new code uses more
context to decide which link should be generated.
The added tests should ensure the same output for the old and new
behaviour (besides the bug).
We may need to refactor the rendering a bit more to make it clear how
the different helper methods render the input string. There are lots of
options (resolve links / images / mentions / git hashes / emojis / ...)
but you don't really know what helper uses which options. For example,
we currently support images in the user description which should not be
allowed I think:
<details>
  <summary>Profile</summary> 
https://try.gitea.io/KN4CK3R 

</details>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
					
						2024-01-15 08:49:24 +00:00 
						 
				 
			
				
					
						
							
							
								Lauris BH 
							
						 
					 
					
						
						
							
						
						bfacb5c501 
					 
					
						
						
							
							Fix margin in server signed signature verification view ( #28379 )  
						
						... 
						
						
						
						Before:

After:
 
						
						
					 
					
						2023-12-07 01:51:39 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						dcb648ee71 
					 
					
						
						
							
							Add Hide/Show all checks button to commit status check ( #26284 )  
						
						... 
						
						
						
						Step one for a GitHub like commit status check ui:



Step two:


The design now will list all commit status checks which takes too much
space.
This is a pre-improve for #26247 
---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-11-02 14:49:02 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						ebe803e514 
					 
					
						
						
							
							Penultimate round of db.DefaultContext refactor ( #27414 )  
						
						... 
						
						
						
						Part of #27065 
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2023-10-11 04:24:07 +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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						f3f445862e 
					 
					
						
						
							
							Use print instead of printf ( #27093 )  
						
						... 
						
						
						
						A bit more performant when we only use it for appending strings. 
						
						
					 
					
						2023-09-16 03:51:54 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						682552378f 
					 
					
						
						
							
							More fixes for the "commit-body" ( #26898 )  
						
						... 
						
						
						
						The changes for "commit-body" in #26877  are not ideal.
The reason is: the "commit-body" is usually a `<pre>`, it has default
margins. In most cases, we do not need that large margin. So, this PR
introduces a general but small margin for all "commit-body" elements.
Then these `gt-m-0` could be removed.
The `:not` selector is not needed, because the `.timeline-item` selector
is already clear enough. 
						
						
					 
					
						2023-09-04 13:38:59 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						a370efc13f 
					 
					
						
						
							
							Use template context function for avatar rendering ( #26385 )  
						
						... 
						
						
						
						Introduce `AvatarUtils`, no need to pass `$.Context` to every
sub-template, and simplify the template helper functions. 
						
						
					 
					
						2023-08-10 11:19:39 +08:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
						
						bd6ef71854 
					 
					
						
						
							
							Show branches and tags that contain a commit ( #25180 )  
						
						... 
						
						
						
						Now, you can see for a commit which existing branches and tags contain it.
You first have to click on the `load branches and tags` button, they are not preloaded by default.
All branches and tags are ordered descending by creation date.
You can even see without much hassle if the given commit is already part of the default branch.
Closes  #25152  
## Screenshots
### Initial

### Loaded

---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-07-27 12:47:41 +02:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						cc00fd50f3 
					 
					
						
						
							
							Clarify "text-align" CSS helpers, fix clone button padding ( #25763 )  
						
						... 
						
						
						
						Changes:
* Rename gt-tl/gt-tc/gt-tr to gt-text-left/gt-text-center/gt-text-right
* The gt-ab and gt-br-0 are removed because they are not needed anymore
* Fix the clone dropdown button padding by ":not(.icon)"
Before:
<details>

</details>
After:
<details>

</details>
Fixes  #25758 
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-07-08 11:53:56 +02:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						323c6cba20 
					 
					
						
						
							
							Fine tune "dropdown button" icon ( #25442 )  
						
						... 
						
						
						
						
----
 
						
						
					 
					
						2023-06-25 02:40:41 +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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						31ab331b23 
					 
					
						
						
							
							Remove incorrect HTML self close tag ( #23748 )  
						
						... 
						
						
						
						HTML is not XML. 
						
						
					 
					
						2023-03-27 18:05:51 +02:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						8d5fbeb7a2 
					 
					
						
						
							
							Use data-tooltip-content for tippy tooltip ( #23649 )  
						
						... 
						
						
						
						Follow:
* #23574 
* Remove all ".tooltip[data-content=...]"
Major changes:
* Remove "tooltip" class, use "[data-tooltip-content=...]" instead of
".tooltip[data-content=...]"
* Remove legacy `data-position`, it's dead code since last Fomantic
Tooltip -> Tippy Tooltip refactoring
* Rename reaction attribute from `data-content` to
`data-reaction-content`
* Add comments for some `data-content`: `{{/* used by the form */}}`
* Remove empty "ui" class
* Use "text color" for SVG icons (a few) 
						
						
					 
					
						2023-03-24 18:35:38 +08:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						12ddc48c5c 
					 
					
						
						
							
							Use octicon-verified for gpg signatures ( #23529 )  
						
						... 
						
						
						
						Before:
<img width="292" alt="Screenshot 2023-03-16 at 23 40 47"
src="https://user-images.githubusercontent.com/115237/225768871-43e11ced-e340-4c88-b756-25f9f7076fd2.png ">
<img width="288" alt="Screenshot 2023-03-16 at 23 51 05"
src="https://user-images.githubusercontent.com/115237/225770071-b51f3ed6-ef14-421b-a5bc-6a26e808d404.png ">
After:
<img width="291" alt="Screenshot 2023-03-16 at 23 40 37"
src="https://user-images.githubusercontent.com/115237/225768864-ea4956c7-8c57-4148-9d89-c818991a7538.png ">
<img width="281" alt="image"
src="https://user-images.githubusercontent.com/115237/225769978-0b9c6c52-9a13-4c23-b13e-8a8a692abf43.png "> 
						
						
					 
					
						2023-03-17 01:12:40 -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 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						75022f8b1a 
					 
					
						
						
							
							Refactor branch/tag selector dropdown (first step) ( #23394 )  
						
						... 
						
						
						
						Follow: 
* #23345 
The branch/tag selector dropdown mixes jQuery/Fomantic UI/Vue together,
it's very diffcult to maintain and causes unfixable a11y problems. It
also causes problems like #19851  #21314  #21952 
This PR is the first step for the refactoring, move `data-` attributes
to JS object and use Vue data as much as possible.
The old selector `'.choose.reference .dropdown'` was also wrong, it hits
`<div class="choose reference"><svg class="dropdown icon">` and would
cause undefined behaviors.
I have done some quick tests and it works. After this PR gets merged, I
will move the code into a Vue SFC in next PR.


---------
Co-authored-by: techknowlogick <techknowlogick@gitea.io > 
						
						
					 
					
						2023-03-11 12:47:09 +02:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						1b950b98cf 
					 
					
						
						
							
							Use gt-relative class instead of the ambiguous gt-pr class  ( #23008 )  
						
						... 
						
						
						
						`.gt-relative` is also `position: relative !important;`
There are `gt-pr-?` styles below (line 140) for `padding-right`, which
makes `.gt-pr` ambiguous
Co-authored-by: delvh <leon@kske.dev >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
Co-authored-by: techknowlogick <techknowlogick@gitea.io > 
						
						
					 
					
						2023-02-20 19:16:56 -05:00 
						 
				 
			
				
					
						
							
							
								gempir 
							
						 
					 
					
						
						
							
						
						d9c6cb71e1 
					 
					
						
						
							
							Always go full width in PR view ( #22844 )  
						
						... 
						
						
						
						This is an alternative solution to #22824  
and would also close  #22781 
This makes the PR diff view always full width.
It makes sense to make use of that screen real estate. If you want a
more narrow view you can always resize your browser.
It also avoids cluttering the UI with another button + the database with
another column for the setting.
This is also how github and gitlab do it. 
						
						
					 
					
						2023-02-16 13:25:00 -06:00