additional_hooks.diff

Holger Just, 2010-05-14 17:12

Download (1.35 KB)

View differences:

app/views/issues/bulk_edit.rhtml (working copy)
1 1
<h2><%= l(:label_bulk_edit_selected_issues) %></h2>
2 2

  
3
<%= call_hook(:view_issues_bulk_edit_top, :issue => @issue) %>
4

  
3 5
<ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul>
4 6

  
5 7
<% form_tag() do %>
app/views/issues/edit.rhtml (working copy)
1 1
<h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
2 2

  
3
<%= call_hook(:view_issues_edit_top, :issue => @issue) %>
4

  
3 5
<%= render :partial => 'edit' %>
app/views/issues/new.rhtml (working copy)
1 1
<h2><%=l(:label_issue_new)%></h2>
2 2

  
3
<%= call_hook(:view_issues_new_top, :issue => @issue) %>
4

  
3 5
<% labelled_tabular_form_for :issue, @issue, 
4 6
                             :html => {:multipart => true, :id => 'issue-form'} do |f| %>
5 7
    <%= error_messages_for 'issue' %>