def index
@uninstalls=java_facade.getPluginUninstalls()
+ @downloads=java_facade.getPluginDownloads()
+
@user_plugins=Plugin.user_plugins
@core_plugins=Plugin.core_plugins
end
def updates
+ @uninstalls=java_facade.getPluginUninstalls()
@downloads=java_facade.getPluginDownloads()
@center=nil
end
def available
+ @uninstalls=java_facade.getPluginUninstalls()
@downloads=java_facade.getPluginDownloads()
+
@center=nil
@updates_by_category={}
+++ /dev/null
-<script type="text/javascript">
- function showPlugin(key) {
- if ($('detail-' + key).visible()) {
- $('detail-' + key).hide();
- } else {
- $('detail-' + key).show();
- }
- return false;
- }
-</script>
+++ /dev/null
-<%= render :partial => 'updatecenter/common' %>
-
-<script>
- function checkTermsConditions(key) {
- var tc=$('tc-' + key)
- if (tc!=null && !tc.checked) {
- alert('Please accept the Terms and Conditions');
- return false;
- }
- return true;
- }
-</script>
-
-<% if @downloads.size > 0 %>
-<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel" method="post" class="warning">
-<p>Sonar 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 downloads"></input>
-</p>
-</form>
-<% end %>
--- /dev/null
+<script type="text/javascript">
+ function showPlugin(key) {
+ if ($('detail-' + key).visible()) {
+ $('detail-' + key).hide();
+ } else {
+ $('detail-' + key).show();
+ }
+ return false;
+ }
+
+ function checkTermsConditions(key) {
+ var tc=$('tc-' + key)
+ if (tc!=null && !tc.checked) {
+ alert('Please accept the Terms and Conditions');
+ return false;
+ }
+ return true;
+ }
+</script>
+
+<% if @uninstalls.size > 0 %>
+<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_uninstalls" method="post" class="warning">
+<p>Sonar needs to be restarted in order to uninstall the following plugins: <ul>
+ <% @uninstalls.each do |uninstall| %>
+ <li><%= uninstall -%></li>
+ <% end %>
+ </ul>
+</p>
+</form>
+<% end %>
+
+<% if @downloads.size > 0 %>
+<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel" method="post" class="warning">
+<p>Sonar 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 downloads"></input>
+</p>
+</form>
+<% end %>
+++ /dev/null
-<% if @uninstalls.size > 0 %>
-<form action="<%= ApplicationController.root_context -%>/updatecenter/cancel_uninstalls" method="post" class="warning">
-<p>Sonar needs to be restarted in order to uninstall the following plugins: <ul>
- <% @uninstalls.each do |uninstall| %>
- <li><%= uninstall -%></li>
- <% end %>
- </ul>
-</p>
-</form>
-<% end %>
</ul>
<div class="tabs-panel">
-<%= render :partial => 'updatecenter/downloads' -%>
+<%= render :partial => 'updatecenter/operations' -%>
<table class="data width100">
<thead>
<div class="tabs-panel">
-<%= render :partial => 'updatecenter/uninstalls' -%>
-<%= render :partial => 'updatecenter/common' -%>
+<%= render :partial => 'updatecenter/operations' -%>
<h2>User-installed plugins</h2>
<table class="data">
</li>
</ul>
<div class="tabs-panel">
-<%= render :partial => 'updatecenter/downloads' -%>
+
+<%= render :partial => 'updatecenter/operations' -%>
<% if @center %>
<table class="data width100" id="plugin-updates">