silverwind
cfc60b2142
Use relative-time to render absolute dates ( #36238 )
...
`<relative-time>` can render absolute dates when passed
[`threshold="P0Y"`](https://github.com/github/relative-time-element#threshold-string-default-p30d )
and `prefix=""`, so remove the previously used `<absolute-date>` element
in its favor.
Devtest before:
<img width="324" height="210" alt="Screenshot 2025-12-23 at 20 22 44"
src="https://github.com/user-attachments/assets/cf78e0e7-f480-415f-98d5-09b25f9d5a8b "
/>
Devtest after:
<img width="274" height="184" alt="Screenshot 2025-12-23 at 20 22 49"
src="https://github.com/user-attachments/assets/5e7d25f6-eea1-4a8c-ba71-02b570804b95 "
/>
Repo activity (rendering unchanged):
<img width="1023" height="67" alt="image"
src="https://github.com/user-attachments/assets/2c4fd6cb-14ab-43c6-ae4b-f86946b28288 "
/>
---------
Signed-off-by: silverwind <me@silverwind.io >
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-16 10:58:04 +00:00
wxiaoguang
4a98ab0540
Remove legacy template helper functions ( #34426 )
...
These functions have been marked as `panicIfDevOrTesting` since 1.23
(#32422 )
2025-05-11 01:42:21 -04: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
b068dbd40e
Refactor DateUtils and merge TimeSince ( #32409 )
...
Follow #32383 and #32402
2024-11-04 11:30:00 +00:00
wxiaoguang
259811617b
Replace DateTime with proper functions ( #32402 )
...
Follow #32383
This PR cleans up the "Deadline" usages in templates, make them call
`ParseLegacy` first to get a `Time` struct then display by `DateUtils`.
Now it should be pretty clear how "deadline string" works, it makes it
possible to do further refactoring and correcting.
2024-11-02 21:04:53 +00:00