-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Display when a repo was archived #22664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This ISO format in the screenshot is pretty universal I'd say. |
|
Lint is failing: |
You can utilize the automatic time rendering function as in #21440 |
|
Try to use the time elements introduced in #23988 |
I'm not sure if this fits well, as it works with relative time. This could be cause Problems in some Languages, as this is used within a sentence. I also think we should only show the Date. |
|
It can also handle absolute dates but it's in a go template, not a utility function. I'll make it easier to use soon |
|
Yeah, absolute time is fine here, so I don't see time-elements as required for this. It'll be good to have because depending on user's time zone, the day of archival could shift. |
|
@JakobDev please resolve any open resolved discussions so it's easier for reviewers to track the status. |
|
@JakobDev please update the description with up-to-date screenshots |
|
need @lafriks 's approval |
|
Note for maintainers: |
|
If we postpone the merge we should remove the |
As I'm currently not on my Dev machine, I had updated the Description with the Screenshot from silberwind. i hope that's OK. |
This adds the date a repo is archived to Gitea and shows it in the UI and API. A feature, that GitHub has been introduced recently.
I currently don't know how to correctly deal with the Date in the template, as different languages have different Ways of writing a date.