summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-02-03 09:29:11 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-02-04 10:09:53 +0100
commit5f612c9da30cca1d5d62851d644a7e729a9a78ab (patch)
tree0db3f35ba6a8d4ac56b42661fc4f2b16367bedae /server
parent963c8788c9d775042080e5f10b2d6465de754541 (diff)
downloadsonarqube-5f612c9da30cca1d5d62851d644a7e729a9a78ab.tar.gz
sonarqube-5f612c9da30cca1d5d62851d644a7e729a9a78ab.zip
SONAR-6226 Display link to home on error pages
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/email_already_exists.erb3
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/not_allowed_to_sign_up.html.erb3
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/unauthorized.html.erb2
3 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/email_already_exists.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/email_already_exists.erb
index ba75080a1c9..a3f1efa4eec 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/email_already_exists.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/email_already_exists.erb
@@ -1,10 +1,11 @@
<table class="spaced">
<tr>
<td align="center">
-
<div id="login_form">
<p id="unauthorized">Email <%= h params[:email] %> is already used by an existing user</p>
</div>
+ <br/>
+ <a class="spacer-left" href="<%= home_path -%>"><%= message('layout.home') -%></a>
</td>
</tr>
</table>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/not_allowed_to_sign_up.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/not_allowed_to_sign_up.html.erb
index b2ab35dbc82..c8d1411a391 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/not_allowed_to_sign_up.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/not_allowed_to_sign_up.html.erb
@@ -1,10 +1,11 @@
<table class="spaced">
<tr>
<td align="center">
-
<div id="login_form">
<p id="unauthorized"><%= h params[:providerName] %> users are not allowed to signup</p>
</div>
+ <br/>
+ <a class="spacer-left" href="<%= home_path -%>"><%= message('layout.home') -%></a>
</td>
</tr>
</table>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/unauthorized.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/unauthorized.html.erb
index d5526183541..a7fe781a829 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/unauthorized.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/unauthorized.html.erb
@@ -9,6 +9,8 @@
<div id="login_form">
<p id="unauthorized">You're not authorized to access this page. Please contact the administrator.</p>
</div>
+ <br/>
+ <a class="spacer-left" href="<%= home_path -%>"><%= message('layout.home') -%></a>
</td>
</tr>
</table>