Project

General

Profile

Patch #6926 » add_i18n_to_plugins_view_with_check.patch

New patch with check for translations - Juanje Ojeda Croissier, 2010-11-22 00:48

View differences:

app/views/admin/plugins.rhtml
4 4
<table class="list plugins">
5 5
    <% @plugins.each do |plugin| %>
6 6
        <tr class="<%= cycle('odd', 'even') %>">
7
        <td><span class="name"><%=h plugin.name %></span>
8
            <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %>
7
        <td><span class="name"><%=h plugin.name.is_a?(Symbol) ? l(plugin.name) : plugin.name %></span>
8
            <%= description = plugin.description.is_a?(Symbol) ? l(plugin.description) : plugin.description
9
                content_tag('span', h(description), :class => 'description') unless description.blank? %>
9 10
						<%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %>
10 11
				</td>
11 12
        <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td>
(2-2/2)