Put FreeOrion version to config for simple update

O01eg
Apr 25, 2023, 12:33 PM
YQFDKZIUEBHFQIO5GAZBOJ6KIQ2DL3E2HZ5MJJDDT3JSEUV3YJHQC

Dependencies

  • [2] FUCFD4UV Add log in and log out support
  • [3] EVP2FSBH Split index page
  • [4] IM5ZPD4N Update dependencies
  • [5] QEK76JYT Process and log template render error
  • [6] BCXEUKX6 Add config, static files and web server
  • [7] OJO4B4QO Add login form and empty handler
  • [*] KDYHFAE3 Add and remove cookies
  • [*] WVHXYKCV Add postgresql pools
  • [*] 4MZ4VIR7 Initial commit
  • [*] 4JK5O45H Start support for XMPP game password change
  • [*] 7R6HAATP Optional publish static files if use reverse-proxy

Change contents

  • replacement in src/templates/index.html at line 15
    [3.6200][3.444:531]()
    <p>Server updates to the latest stable version. Current version: <b>0.4.10.2</b>.<br/>
    [3.6200]
    [3.531]
    <p>Server updates to the latest stable version. Current version: <b>{{ version }}</b>.<br/>
  • edit in src/pages/mod.rs at line 62
    [9.33]
    [10.559]
    pub freeorion_version: String,
  • replacement in src/pages/index.rs at line 8
    [2.6211][2.6211:6229]()
    struct PageData {
    [2.6211]
    [2.6229]
    struct PageData<'a> {
  • edit in src/pages/index.rs at line 10
    [2.6271]
    [2.6271]
    pub version: &'a str,
  • edit in src/pages/index.rs at line 25
    [2.6656]
    [2.6656]
    version: &data.freeorion_version,
  • edit in src/main.rs at line 67
    [12.849]
    [10.856]
    freeorion_version,
  • edit in src/main.rs at line 248
    [9.1857]
    [10.1899]
    freeorion_version,
  • edit in src/config.rs at line 41
    [12.895]
    [13.731]
    pub freeorion_version: String,