mod_invites_page: Change client selection button text from 'Install' to 'Select' by default
authorMatthew Wild <mwild1@gmail.com>
Fri, 16 Oct 2020 11:06:25 +0100
changeset 4215 0f26ae2f2a74
parent 4214 a0937b5cfdcb
child 4216 593fd9e0a435
mod_invites_page: Change client selection button text from 'Install' to 'Select' by default This also allows specific clients entries to override the text via the 'select_text' field. Rationale: 1) users may already have the software installed, we still want them to select it anyway for the tailored setup experience. 2) some clients (e.g. web clients) are not really "installed" so the text was misleading
mod_invites_page/html/invite.html
--- a/mod_invites_page/html/invite.html	Fri Oct 16 11:03:38 2020 +0100
+++ b/mod_invites_page/html/invite.html	Fri Oct 16 11:06:25 2020 +0100
@@ -58,7 +58,7 @@
 											{item.platforms#<span class="badge badge-info client-platform-badge client-platform-badge-{item|lower|classname} mr-1 mb-3">{item}</span> }
 										</div>
 										<p class="card-text">{item.text}</p>
-										<a href="{item.proceed_url?#}" class="btn btn-primary mt-md-auto">Install</a>
+										<a href="{item.proceed_url?#}" class="btn btn-primary mt-md-auto">{item.select_text?Select}</a>
 									</div>
 								</div>
 							</div>