@import "components/navbar";
@import "components/navigator";
@import "components/select-list";
-@import "components/login";
@import "components/graphics";
@import "components/list-groups";
@import "components/panels";
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-@import (reference) "../variables";
-@import (reference) "../mixins";
-
-#login_form {
- border: 2px solid #4b9fd5;
- width: 230px;
- text-align: left;
- background-color: #CAE3F2;
- padding: 15px 20px;
-}
-
-#login_form h4 {
- text-align: left;
- font-weight: bold;
- color: #036;
-}
-
-#login_form p {
- padding: 3px 0 10px;
-}
-
-#login_form a {
- border-bottom-color: @blue;
-}
-
-#login_form .desc {
- font-size: 85%;
- font-weight: normal;
-}
-<form action="<%= url_for :controller => 'sessions', :action => 'login' -%>" method="post">
- <input type="hidden" name="return_to_anchor" value="">
+<form id="login_form" action="<%= url_for :controller => 'sessions', :action => 'login' -%>" method="post">
+ <input type="hidden" name="return_to_anchor" value="<%= @return_to_anchor %>">
<h1 class="maintenance-title text-center">Log In to SonarQube</h1>
<script>
(function ($) {
$('#login').focus();
- $('[name="return_to_anchor"]').val(window.location.hash);
+ var returnToAnchor = $('[name="return_to_anchor"]');
+ if (!returnToAnchor.val()) {
+ returnToAnchor.val(window.location.hash);
+ }
})(window.jQuery);
</script>
-<form action="<%= url_for :controller => 'sessions', :action => 'login' -%>" method="post">
- <input type="hidden" name="return_to_anchor" value="">
+<form id="login_form" action="<%= url_for :controller => 'sessions', :action => 'login' -%>" method="post">
+ <input type="hidden" name="return_to_anchor" value="<%= @return_to_anchor %>">
<h1 class="maintenance-title text-center">Log In to SonarQube</h1>
<script>
(function ($) {
$('#login').focus();
- $('[name="return_to_anchor"]').val(window.location.hash);
+ var returnToAnchor = $('[name="return_to_anchor"]');
+ if (!returnToAnchor.val()) {
+ returnToAnchor.val(window.location.hash);
+ }
})(window.jQuery);
</script>
<%= error_messages_for :user, :class => 'alert alert-danger', :header_message => nil, :message => nil %>
<div class="big-spacer-bottom">
- <label for="login" class="login-label"><%= message('login') %></label>
- <input type="text" id="login" name="user[login]" class="login-input" maxlength="30" required
+ <label for="user_login" class="login-label"><%= message('login') %></label>
+ <input type="text" id="user_login" name="user[login]" class="login-input" maxlength="30" required
placeholder="<%= message('login') %>">
<p class="note spacer-top spacer-left spacer-right">
<%= message('sessions.old_account', :params => [url_for(:controller => 'sessions', :action => 'new')]) -%>
</div>
<div class="big-spacer-bottom">
- <label for="name" class="login-label"><%= message('name') %></label>
- <input type="text" id="name" name="user[name]" class="login-input" maxlength="30" required
+ <label for="user_name" class="login-label"><%= message('name') %></label>
+ <input type="text" id="user_name" name="user[name]" class="login-input" maxlength="30" required
placeholder="<%= message('name') %>">
</div>
<p class="big-spacer-bottom">
- <label for="password" class="login-label"><%= message('password') %></label>
- <input type="password" id="password" name="user[password]" class="login-input" required
+ <label for="user_password" class="login-label"><%= message('password') %></label>
+ <input type="password" id="user_password" name="user[password]" class="login-input" required
placeholder="<%= message('password') %>">
</p>
<p class="big-spacer-bottom">
- <label for="password-confirmation" class="login-label"><%= message('sessions.confirm_password') %></label>
- <input type="password" id="password-confirmation" name="user[password_confirmation]" class="login-input" required
+ <label for="user_password_confirmation" class="login-label"><%= message('sessions.confirm_password') %></label>
+ <input type="password" id="user_password_confirmation" name="user[password_confirmation]" class="login-input" required
placeholder="<%= message('sessions.confirm_password') %>">
</p>