<% buttons = Redmine::WikiToolbar.buttons(Setting.text_formatting) %> <% cache ['wiki_toolbar_buttons', Setting.text_formatting, current_language, buttons] do %>
<% buttons.each_with_index do |names, index| %> <% if index > 0 %> <% end %> <% names.each do |name| %> <% title = l(Redmine::WikiToolbar.label_for(name)) %> <%= tag.button tag.span(title), type: 'button', class: "jstb_#{name}", title: title, tabindex: 200, data: wiki_toolbar_button_data(name) %> <% end %> <% end %>
<% end %>