0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 20:29:55 +08:00
discourse/app/models/discourse_version_check.rb
David Taylor b6dfa40d1e
FEATURE: Improve display of installed/available version on dashboard (#41165)
Before:

<img width="982" height="179" alt="SCR-20260624-lfcu"
src="https://github.com/user-attachments/assets/685ac3b8-e733-4ec8-9be0-72a7ca3bf811"
/>

After:

<img width="971" height="166" alt="SCR-20260624-ldxx"
src="https://github.com/user-attachments/assets/444ea98b-bdf0-49d6-8633-73f1494b6806"
/>

---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2026-06-24 13:07:05 +01:00

18 lines
502 B
Ruby
Vendored

# frozen_string_literal: true
class DiscourseVersionCheck
include ActiveModel::Model
attr_accessor :latest_version,
:latest_pretty_version,
:latest_sha,
:critical_updates,
:installed_version,
:installed_sha,
:installed_describe,
:missing_versions_count,
:git_branch,
:updated_at,
:version_check_pending,
:stale_data
end