Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/header/_sign_in_register_button.html.haml')
-rw-r--r--app/views/layouts/header/_sign_in_register_button.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/layouts/header/_sign_in_register_button.html.haml b/app/views/layouts/header/_sign_in_register_button.html.haml
new file mode 100644
index 00000000000..992e8785251
--- /dev/null
+++ b/app/views/layouts/header/_sign_in_register_button.html.haml
@@ -0,0 +1,6 @@
+- top_class = local_assigns.fetch(:class, nil)
+
+%li.nav-item{ class: top_class }
+ %div
+ - sign_in_text = allow_signup? ? _('Sign in / Register') : _('Sign in')
+ = link_to sign_in_text, new_session_path(:user, redirect_to_referer: 'yes'), class: 'gl-button btn btn-default btn-sign-in'