Skip to content
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

Use auto-updating, natively hoverable, localized time elements #23988

Merged
merged 59 commits into from
Apr 10, 2023

Commits on Apr 7, 2023

  1. Use auto-updating, natively hoverable, localized time elements

    - Added GitHub’s `relative-time` element
    - Converted all formatted timestamps to use this element
    - No more flashes of unstyled content around time elements
    - These elements have native tooltips that show the full timestamp and are localized using the HTML’s `lang` property
    - 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
    - Deleted code that is not needed anymore, such as `formatting.js` and simplified `since.go`
    
    Signed-off-by: Yarden Shoham <[email protected]>
    yardenshoham committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    506d1b3 View commit details
    Browse the repository at this point in the history
  2. Use shared templates

    yardenshoham committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    baee7bd View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2023

  1. Configuration menu
    Copy the full SHA
    630767a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c5ac2d2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fcb90d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a58c19f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f9c0e98 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    687e973 View commit details
    Browse the repository at this point in the history
  7. Remove test file

    yardenshoham committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    359706e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bdcc448 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f35ad55 View commit details
    Browse the repository at this point in the history
  10. Use a better format for javascript parsing

    Co-authored-by: wxiaoguang <[email protected]>
    yardenshoham and wxiaoguang committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    4801743 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5d282d1 View commit details
    Browse the repository at this point in the history
  12. Fix tests

    yardenshoham committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    113aaf7 View commit details
    Browse the repository at this point in the history
  13. Drop tense=past to support future dates

    Just remove `on`
    yardenshoham committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    fc6b5c3 View commit details
    Browse the repository at this point in the history
  14. Update comment

    yardenshoham committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    f2838d9 View commit details
    Browse the repository at this point in the history
  15. Localize on

    yardenshoham committed Apr 8, 2023
    Configuration menu
    Copy the full SHA
    def9978 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0c313f6 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    617435f View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2023

  1. Fix missed undo of find-and-replace

    Co-authored-by: wxiaoguang <[email protected]>
    yardenshoham and wxiaoguang committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    fc81d1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29f385e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c238b2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    05d4c58 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    85385cb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    217c36e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    89abdd3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8c18c51 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8423fba View commit details
    Browse the repository at this point in the history
  10. Use RFC3339

    yardenshoham committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    faee6f0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    49b26a4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7aaee69 View commit details
    Browse the repository at this point in the history
  13. Revert "Allow interactive tooltips, disable the title"

    This reverts commit 7aaee69.
    silverwind committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    98e89a0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1b34f56 View commit details
    Browse the repository at this point in the history
  15. tweak comment

    silverwind committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    e72bdf7 View commit details
    Browse the repository at this point in the history
  16. filter for .time-since

    silverwind committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    8976d33 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2023

  1. 4 Configuration menu
    Copy the full SHA
    da185ae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80becbc View commit details
    Browse the repository at this point in the history
  3. send UTC only to browsers

    silverwind committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    722967b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    67b0aa9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6e28d6 View commit details
    Browse the repository at this point in the history
  6. Update web_src/js/modules/tippy.js

    Co-authored-by: silverwind <[email protected]>
    wxiaoguang and silverwind authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    ec57cdd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    db92c16 View commit details
    Browse the repository at this point in the history
  8. Update templates/admin/org/list.tmpl

    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    89b0f02 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8969ba8 View commit details
    Browse the repository at this point in the history
  10. Update templates/admin/user/list.tmpl

    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    617add3 View commit details
    Browse the repository at this point in the history
  11. Update templates/admin/packages/list.tmpl

    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    d651534 View commit details
    Browse the repository at this point in the history
  12. Update templates/admin/user/list.tmpl

    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    e03f316 View commit details
    Browse the repository at this point in the history
  13. Update templates/admin/repo/list.tmpl

    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    17d883f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    12cecdf View commit details
    Browse the repository at this point in the history
  15. Update modules/timeutil/timestamp.go

    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Apr 10, 2023
    Configuration menu
    Copy the full SHA
    fde6c38 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3cd6cd8 View commit details
    Browse the repository at this point in the history
  17. Found more dates

    yardenshoham committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    460fe71 View commit details
    Browse the repository at this point in the history
  18. Localize notice

    yardenshoham committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    b7064ed View commit details
    Browse the repository at this point in the history
  19. add on_date

    silverwind committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    e81c5cd View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    838b867 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    113e2d5 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    7e27112 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    16cde5e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    c706cab View commit details
    Browse the repository at this point in the history