From b390db2754c242c4a3ba49900b35805249fd0a5a Mon Sep 17 00:00:00 2001
From: RandomChars <random@chars.jp>
Date: Wed, 22 Dec 2021 07:31:18 +0900
Subject: [PATCH] fix auth text

---
 assets/templates/archetype.tmpl | 2 +-
 user.go                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/assets/templates/archetype.tmpl b/assets/templates/archetype.tmpl
index 17e00da..00755de 100644
--- a/assets/templates/archetype.tmpl
+++ b/assets/templates/archetype.tmpl
@@ -60,7 +60,7 @@
                                                         class="fab fa-instagram"></i> Instagram</a></li>
                                         <li><a href="https://discord.gg/aovtr"> <i class="fab fa-discord"></i>
                                                 Discord</a>
-                                        <li><a href="{{.auth_ref}}"> <i class="fas fa-user"></i> {{.auth_text}} (Click to log out)</a>
+                                        <li><a href="{{.auth_ref}}"> <i class="fas fa-user"></i> {{.auth_text}}</a>
                                         </li>
                                     </ul>
                                 </div>
diff --git a/user.go b/user.go
index 5e042bc..ae0ff07 100644
--- a/user.go
+++ b/user.go
@@ -212,7 +212,7 @@ func getAuthButton(user *discordgo.User) (authText, authRef string) {
 	authText = "Login"
 	authRef = "/auth/login"
 	if user != nil {
-		authText = user.Username
+		authText = user.Username + " (Click to log out)"
 		authRef = "/auth/logout"
 	}
 	return
-- 
GitLab