Просмотр исходного кода

Improve customization of welcome page

pull/394/head
Stefan Warnat 6 лет назад
Родитель
Сommit
8bc4f56385
2 измененных файлов: 10 добавлений и 4 удалений
  1. +6
    -0
      roles/matrix-riot-web/defaults/main.yml
  2. +4
    -4
      roles/matrix-riot-web/templates/welcome.html.j2

+ 6
- 0
roles/matrix-riot-web/defaults/main.yml Просмотреть файл

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

matrix_riot_web_welcome_logo: "welcome/images/logo.svg"
matrix_riot_web_welcome_logo_link: "https://riot.im"

matrix_riot_web_welcome_headline: "_t('Welcome to Riot.im')"
matrix_riot_web_welcome_text: "_t('Decentralised, encrypted chat & collaboration powered by [matrix]')"

# By default, there's no Riot homepage (when logged in). If you wish to have one,
# point this to a `home.html` template file on your local filesystem.
matrix_riot_web_embedded_pages_home_path: ~


+ 4
- 4
roles/matrix-riot-web/templates/welcome.html.j2 Просмотреть файл

@@ -153,11 +153,11 @@ h1::after {
</style>

<div class="mx_Parent">
<a href="https://riot.im" target="_blank" rel="noopener">
<img src="welcome/images/logo.svg" alt="" class="mx_Logo"/>
<a href="{{ matrix_riot_web_welcome_logo_link }}" target="_blank" rel="noopener">
<img src="{{ matrix_riot_web_welcome_logo }}" alt="" class="mx_Logo"/>
</a>
<h1 class="mx_Header_title">_t("Welcome to Riot.im")</h1>
<h4 class="mx_Header_subtitle">_t("Decentralised, encrypted chat &amp; collaboration powered by [matrix]")</h4>
<h1 class="mx_Header_title">{{ matrix_riot_web_welcome_headline }}</h1>
<h4 class="mx_Header_subtitle">{{ matrix_riot_web_welcome_text }}</h4>
<div class="mx_ButtonGroup">
<div class="mx_ButtonRow">
<a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">


Загрузка…
Отмена
Сохранить