aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-23 14:50:52 +0200
committerDavid Gageot <david@gageot.net>2012-05-23 14:50:52 +0200
commit578d2ec1cb20aa80b6295953868d233a41fb52ce (patch)
treedb035958417d58f1b9db24dd6db27bdfaaf44cf7 /sonar-server
parent8b2c112f34fb5a6a774e2a392834546781132935 (diff)
downloadsonarqube-578d2ec1cb20aa80b6295953868d233a41fb52ce.tar.gz
sonarqube-578d2ec1cb20aa80b6295953868d233a41fb52ce.zip
SONAR-3462 A project dashboard that shouldn't become a global dashboard
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb4
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb4
2 files changed, 6 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb
index f3e9a09e4ee..b8812966a0e 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb
@@ -28,7 +28,9 @@
</tbody>
</table>
- <input type="hidden" name="global" value="<%= @global if @global %>" />
+ <% if @global %>
+ <input type="hidden" name="global" value="true" />
+ <% end %>
</form>
<script>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb
index b85d9ee9f50..8ccb4e4da41 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb
@@ -28,5 +28,7 @@
</tr>
</tbody>
</table>
- <input type="hidden" name="global" value="<%= @dashboard.global -%>"/>
+ <% if @dashboard.global %>
+ <input type="hidden" name="global" value="true" />
+ <% end %>
</form>