Feature #27705 » 0003-Sohw-gems-badge-on-plugin-list.patch
app/views/admin/plugins.html.erb | ||
---|---|---|
12 | 12 |
<tbody> |
13 | 13 |
<% @plugins.each do |plugin| %> |
14 | 14 |
<tr id="plugin-<%= plugin.id %>"> |
15 |
<td class="name"><span class="name"><%= plugin.name %></span> |
|
15 |
<td class="name"><span class="name"><%= plugin.name %><%= tag.span 'GEM', class: 'badge badge-gem' if plugin.gem? %></span>
|
|
16 | 16 |
<%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %> |
17 | 17 |
<%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %> |
18 | 18 |
</td> |
public/stylesheets/application.css | ||
---|---|---|
1524 | 1524 |
.badge-issues-count { |
1525 | 1525 |
background: #EEEEEE; |
1526 | 1526 |
} |
1527 | ||
1527 |
.badge-gem { |
|
1528 |
color: #E9573F; |
|
1529 |
border: 1px solid #E9573F; |
|
1530 |
margin-left: 0.5rem; |
|
1531 |
} |
|
1528 | 1532 |
/***** Tooltips *****/ |
1529 | 1533 |
.ui-tooltip { |
1530 | 1534 |
background: #000; |