瀏覽代碼

additional customizations of welcome page

pull/394/head
Stefan Warnat 6 年之前
父節點
當前提交
0322a5443a
共有 2 個檔案被更改,包括 18 行新增0 行删除
  1. +13
    -0
      roles/matrix-riot-web/defaults/main.yml
  2. +5
    -0
      roles/matrix-riot-web/templates/config.json.j2

+ 13
- 0
roles/matrix-riot-web/defaults/main.yml 查看文件

@@ -32,7 +32,20 @@ matrix_riot_web_welcome_user_id: "@riot-bot:matrix.org"
# Branding of riot web # Branding of riot web
matrix_riot_web_brand: "Riot" matrix_riot_web_brand: "Riot"


# Links, shown in footer of welcome page:
# [{"text": "Link text", "url": "https://link.target"}, {"text": "Other link"}]
matrix_riot_web_welcome_footerlinks: false

# URL to image, shown during Login
matrix_riot_web_welcome_authlogo: false

# URL to Wallpaper, shown in background of welcome page
matrix_riot_web_welcome_background: false

# URL to Logo on welcome page
matrix_riot_web_welcome_logo: "welcome/images/logo.svg" matrix_riot_web_welcome_logo: "welcome/images/logo.svg"

# URL of link on welcome image
matrix_riot_web_welcome_logo_link: "https://riot.im" matrix_riot_web_welcome_logo_link: "https://riot.im"


matrix_riot_web_welcome_headline: "_t('Welcome to Riot.im')" matrix_riot_web_welcome_headline: "_t('Welcome to Riot.im')"


+ 5
- 0
roles/matrix-riot-web/templates/config.json.j2 查看文件

@@ -29,5 +29,10 @@
{% endif %} {% endif %}
"embeddedPages": { "embeddedPages": {
"homeUrl": {{ matrix_riot_web_embedded_pages_home_url|string|to_json }} "homeUrl": {{ matrix_riot_web_embedded_pages_home_url|string|to_json }}
},
"branding": {
"authFooterLinks": {{ matrix_riot_web_welcome_footerlinks|to_json }},
"authHeaderLogoUrl": {{ matrix_riot_web_welcome_authlogo|to_json }},
"welcomeBackgroundUrl": {{ matrix_riot_web_welcome_background|to_json }}
} }
} }

Loading…
取消
儲存