From 7fbbb1d8645fcd5c34de40b0611bc789fc69cfa4 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar <theskumar@users.noreply.github.com> Date: Wed, 26 Apr 2023 22:51:40 +0530 Subject: [PATCH] Change 'My [org]' button to 'Login' (#3369) Fixes #3366 --- .../public/utils/templates/utils/includes/login_button.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hypha/public/utils/templates/utils/includes/login_button.html b/hypha/public/utils/templates/utils/includes/login_button.html index 2b8393512..703c7cb96 100644 --- a/hypha/public/utils/templates/utils/includes/login_button.html +++ b/hypha/public/utils/templates/utils/includes/login_button.html @@ -1,4 +1,9 @@ +{% load i18n %} <a href="{{ APPLY_SITE.root_url }}{% url 'users_public:login' %}" class="button button--transparent button--contains-icons {{ class }}"> <svg class="icon icon--person"><use xlink:href="#person-icon"></use></svg> + {% if user.is_authenticated %} My {{ ORG_SHORT_NAME }} + {% else %} + {% trans "Login" %} + {% endif %} </a> -- GitLab