Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/templates/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn login() -> Template {
item(
DiscordOAuth::login_path(),
"btn-discord mb-2",
"Login using",
"Login using Discord",
// This is manually coded for in the template file and is not
// a Feather icon. Do not use it in other places, as it won't work.
Some("discord"),
Expand All @@ -85,12 +85,12 @@ pub fn login() -> Template {
pub fn register() -> Template {
// Make list of identity providers in account creation configuration.
let items: Vec<Map<String, Value>> = vec![
item(
GitHubOauth::register_path(),
"btn-github mb-2",
"Register using GitHub",
Some("github"),
),
// item(
// GitHubOauth::register_path(),
// "btn-github mb-2",
// "Register using GitHub",
// Some("github"),
// ),
item(
DiscordOAuth::register_path(),
"btn-discord mb-2",
Expand All @@ -99,12 +99,12 @@ pub fn register() -> Template {
// a Feather icon. Do not use it in other places, as it won't work.
Some("discord"),
),
item(
RpiCas::register_path(),
"btn-rpi",
"Register using RPI CAS",
None,
),
// item(
// RpiCas::register_path(),
// "btn-rpi",
// "Register using RPI CAS",
// None,
// ),
];

// Create and return template.
Expand Down
2 changes: 1 addition & 1 deletion templates/auth.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{message}}
{{#if icon}}
{{#if (eq icon "discord")}}
Discord <span class="fab">&#xf392;</span>
<span class="fab">&#xf392;</span>
{{else}}
<i data-feather="{{icon}}"></i>
{{/if}}
Expand Down