-<% if @resource and !@snapshot %>
-<p class="warning marginbottom10"><%= message('provisioning.no_analysis') -%></p>
-<% end %>
+<div class="page">
+ <% if @resource and !@snapshot %>
+ <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p>
+ <% end %>
+</div>
+
-<% if @resource and !@snapshot %>
-<p class="warning marginbottom10"><%= message('provisioning.no_analysis') -%></p>
-<% end %>
+<div class="page">
+ <% if @resource and !@snapshot %>
+ <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p>
+ <% end %>
+</div>
<% if !filter.errors.empty? %>
<% filter.errors.full_messages.each do |message| %>
- <div class="warning"><%= h message %></div>
+ <div class="alert alert-danger"><%= h message %></div>
<% end %>
<% elsif filter.rows && filter.display %>
<%= render :partial => 'measures/display_list', :locals => {:filter => filter, :edit_mode => edit_mode, :widget_id => widget_id} -%>
<h2><%= message('project_deletion.page', :params => resource_qualifier) -%></h2>
</div>
<div class="modal-body">
- <div class="info">
- <img src="<%= ApplicationController.root_context -%>/images/information.png" style="vertical-align: text-bottom"/>
- <%= message('project_deletion.delete_resource_confirmation', :params => resource_qualifier) %>
- </div>
+ <%= message('project_deletion.delete_resource_confirmation', :params => resource_qualifier) %>
</div>
<div class="modal-foot">
<span id="delete-project-loading-image" class="loading-image hidden"><%= image_tag 'loading.gif' %></span>
</header>
<div class="yui-g widget" id="widget_delete_project">
- <div class="warning">
- <%= message('project_deletion.operation_cannot_be_undone') -%><br/>
- <a id="delete_resource" class="open-modal button button-red"
- href="<%= ApplicationController.root_context -%>/project/delete_form/<%= h(@project.id) -%>"><%= delete_resource_message -%></a>
- </div>
+ <div class="alert alert-warning spacer-bottom"><%= message('project_deletion.operation_cannot_be_undone') -%></div>
+ <a id="delete_resource" class="open-modal button button-red"
+ href="<%= ApplicationController.root_context -%>/project/delete_form/<%= h(@project.id) -%>"><%= delete_resource_message -%></a>
</div>
<% end %>
</div>
<% if !@snapshot %>
- <p class="warning"><%= message('provisioning.no_analysis') -%></p>
+ <p class="alert alert-warning"><%= message('provisioning.no_analysis') -%></p>
<% elsif @snapshot.root? %>
-<div class="warning migration" style="padding:10px">
- <%= image_tag 'warning.png' -%>
- <b>Fail to connect to database</b>
- <br/>
- <br/>
- Database connection cannot be established. Please check database status and JDBC settings.
+<div class="alert alert-danger">
+ <h3 class="text-danger">Fail to connect to database</h3>
+ <p>Database connection cannot be established. Please check database status and JDBC settings.</p>
<br/>
<%= button_to "Try again", { :action => "index" }, :method => :get %>
-</div>
\ No newline at end of file
+</div>
<script type="text/javascript">
- function showPlugin(key) {
+ function showPlugin (key) {
if ($j('#detail-' + key).is(':visible')) {
$j('#detail-' + key).hide();
} else {
</script>
<% if @uninstalls.size > 0 %>
-<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_uninstalls" method="post" class="warning">
-<p>SonarQube needs to be restarted in order to uninstall the following plugins: <ul>
- <% @uninstalls.each do |uninstall| %>
- <li><%= uninstall -%></li>
- <% end %>
- </ul>
- <input type="submit" value="Cancel uninstalls" id="cancel-uninstall"/>
-</p>
-</form>
+ <form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_uninstalls" method="post" class="warning">
+ <p>SonarQube needs to be restarted in order to uninstall the following plugins:</p>
+ <ul class="list-styled spacer-top spacer-bottom">
+ <% @uninstalls.each do |uninstall| %>
+ <li><%= uninstall -%></li>
+ <% end %>
+ </ul>
+ <input type="submit" value="Cancel uninstalls" id="cancel-uninstall"/>
+ </form>
<% end %>
<% if @downloads.size > 0 %>
-<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_downloads" method="post" class="warning">
-<p>SonarQube needs to be restarted in order to install the following plugins: <ul>
- <% @downloads.each do |download| %>
- <li><%= download -%></li>
- <% end %>
- </ul>
- <input type="submit" value="Cancel pending installations" id="cancel-pending-installations"/>
-</p>
-</form>
+ <form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_downloads" method="post" class="warning">
+ <p>SonarQube needs to be restarted in order to install the following plugins:
+ <ul>
+ <% @downloads.each do |download| %>
+ <li><%= download -%></li>
+ <% end %>
+ </ul>
+ <input type="submit" value="Cancel pending installations" id="cancel-pending-installations"/>
+ </p>
+ </form>
<% end %>