Project

General

Profile

Actions

Patch #4351

closed

Plugin admin links broken in admin/index

Added by Jean-Baptiste Barth over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Plugin API
Target version:
-
Start date:
2009-12-06
Due date:
% Done:

0%

Estimated time:

Description

In app/views/admin/index.rhtml, we have a "menu_items_for" block (from r2022) to allow plugins to insert their own links there. Method definition has changed in r3090, but not this view, and "caption" is not yielded anymore, so these links are broken (if I'm not mistaken).

Maybe the actual block should be replaced with something like this :

<% menu_items_for(:admin_menu) do |item| -%>
  <%= content_tag 'p',
    link_to(h(item.caption), item.url, item.html_options),
    :class => ["icon22", "icon22-#{item.name}"].join(' ') %>
<% end -%>

Actions #1

Updated by Jean-Philippe Lang over 14 years ago

  • Status changed from New to Closed

Patch + test committed in r3131. Thanks.

Actions

Also available in: Atom PDF