mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Show which SHA is installed on the admin dashboard
This commit is contained in:
parent
1e794f98a7
commit
8620024798
7 changed files with 27 additions and 19 deletions
|
@ -5,8 +5,9 @@ module DiscourseUpdates
|
|||
def check_version
|
||||
DiscourseVersionCheck.new(
|
||||
latest_version: latest_version || Discourse::VERSION::STRING,
|
||||
critical_updates: critical_update_available?,
|
||||
installed_version: Discourse::VERSION::STRING,
|
||||
critical_updates: critical_update_available?
|
||||
installed_sha: (Discourse.git_version == 'unknown' ? nil : Discourse.git_version)
|
||||
# TODO: more info, like links and release messages
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue