Project

General

Profile

Defect #28523 » 28523.diff

patch suggested by Eduard Panov - Go MAEDA, 2018-04-11 14:07

View differences:

app/views/admin/plugins.html.erb (working copy)
1 1
<%= title l(:label_plugins) %>
2 2

  
3 3
<% if @plugins.any? %>
4
<table class="list plugins">
5
    <% @plugins.each do |plugin| %>
6
        <tr id="plugin-<%= plugin.id %>">
7
        <td class="name"><span class="name"><%= plugin.name %></span>
8
            <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %>
9
            <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %>
10
        </td>
11
        <td class="author"><%= plugin.author_url.blank? ? plugin.author : link_to(plugin.author, plugin.author_url) %></td>
12
        <td class="version"><span class="icon"><%= plugin.version %></span></td>
13
        <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td>
14
        </tr>
15
    <% end %>
16
</table>
4
<div class="autoscroll">
5
  <table class="list plugins">
6
      <% @plugins.each do |plugin| %>
7
          <tr id="plugin-<%= plugin.id %>">
8
          <td class="name"><span class="name"><%= plugin.name %></span>
9
              <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %>
10
              <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %>
11
          </td>
12
          <td class="author"><%= plugin.author_url.blank? ? plugin.author : link_to(plugin.author, plugin.author_url) %></td>
13
          <td class="version"><span class="icon"><%= plugin.version %></span></td>
14
          <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td>
15
          </tr>
16
      <% end %>
17
  </table>
18
</div>
17 19
<p><a href="#" id="check-for-updates"><%= l(:label_check_for_updates) %></a></p>
18 20
<% else %>
19 21
<p class="nodata"><%= l(:label_no_data) %></p>
(2-2/2)