blob: ad470b38b1ab58a5f9917e5beefeb967a6c35d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<ul class="tabs">
<li>
<a href="<%= url_for :action => 'index' -%>">Installed</a>
</li>
<li>
<a href="<%= url_for :action => 'updates' -%>" class="selected">Updates</a>
</li>
<li>
<a href="<%= url_for :action => 'available' -%>">Available</a>
</li>
</ul>
<div class="tabs-panel">
<%= render :partial => 'plugins/downloads' %>
<% if @center %>
<table class="data width100" id="plugin-updates">
<thead>
<tr>
<th colspan="3"><h2>User-installed plugins</h2></th>
</tr>
</thead>
<tbody>
<% if @plugin_updates.empty? %>
<tr class="even">
<td colspan="3" >No updates</td>
</tr>
<% end %>
<% @plugin_updates.each do |update|
%>
<tr class="<%= cycle('even','odd', :name => 'user-plugins') -%>">
<td><%= h(update.getPlugin().getName()) -%></td>
<td>
</td>
<td>
</td>
</tr>
<% end %>
</tbody>
</table>
<br/>
<table class="data width100" id="system-updates">
<thead>
<tr>
<th colspan="2"><h2>System</h2></th>
</tr>
</thead>
<tbody>
<%
if @sonar_updates.empty? %>
<tr class="even">
<td colspan="3" >No updates</td>
</tr>
<% end %>
<% @sonar_updates.each do |update|
sonar_release=update.getRelease()
%>
<tr class="<%= cycle('even','odd', :name => 'system') -%>">
<td>Sonar <%= sonar_release.getVersion() -%></td>
<td><%= sonar_release.getDescription() -%></td>
<td>
<%= link_to 'Release Notes', sonar_release.getChangelogUrl(), :class => 'external' if sonar_release.getChangelogUrl() %>
<%= link_to 'Download', sonar_release.getDownloadUrl(), :class => 'external' if sonar_release.getDownloadUrl() %>
</td>
</tr>
<% end %>
</tbody>
</table>
<br/>
<% end %>
<%= render :partial => 'plugins/status', :locals => {:action => 'updates' } %>
</div>
|