##// END OF EJS Templates
Removes calls to link_to_remote....
Jean-Philippe Lang -
r9849:c9a46950de1b
parent child
Show More
@@ -1,49 +1,50
1 <h2><%=l(:label_issue_new)%></h2>
1 <h2><%=l(:label_issue_new)%></h2>
2
2
3 <%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
3 <%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
4
4
5 <%= labelled_form_for @issue, :url => project_issues_path(@project),
5 <%= labelled_form_for @issue, :url => project_issues_path(@project),
6 :html => {:id => 'issue-form', :multipart => true} do |f| %>
6 :html => {:id => 'issue-form', :multipart => true} do |f| %>
7 <%= error_messages_for 'issue' %>
7 <%= error_messages_for 'issue' %>
8 <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
8 <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
9 <div class="box tabular">
9 <div class="box tabular">
10 <div id="all_attributes">
10 <div id="all_attributes">
11 <%= render :partial => 'issues/form', :locals => {:f => f} %>
11 <%= render :partial => 'issues/form', :locals => {:f => f} %>
12 </div>
12 </div>
13
13
14 <% if @copy_from && @copy_from.attachments.any? %>
14 <% if @copy_from && @copy_from.attachments.any? %>
15 <p>
15 <p>
16 <label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
16 <label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
17 <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
17 <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
18 </p>
18 </p>
19 <% end %>
19 <% end %>
20
20
21 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
21 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
22
22
23 <% if @issue.safe_attribute? 'watcher_user_ids' -%>
23 <% if @issue.safe_attribute? 'watcher_user_ids' -%>
24 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
24 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
25 <span id="watchers_inputs">
25 <span id="watchers_inputs">
26 <%= watchers_checkboxes(@issue, @available_watchers) %>
26 <%= watchers_checkboxes(@issue, @available_watchers) %>
27 </span>
27 </span>
28 <span class="search_for_watchers">
28 <span class="search_for_watchers">
29 <%= link_to_remote l(:label_search_for_watchers),
29 <%= link_to l(:label_search_for_watchers),
30 :url => {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
30 {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
31 :method => 'get' %>
31 :remote => true,
32 :method => 'get' %>
32 </span>
33 </span>
33 </p>
34 </p>
34 <% end %>
35 <% end %>
35 </div>
36 </div>
36
37
37 <%= submit_tag l(:button_create) %>
38 <%= submit_tag l(:button_create) %>
38 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
39 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
39 <%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %>
40 <%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %>
40
41
41 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
42 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
42 <% end %>
43 <% end %>
43
44
44 <div id="preview" class="wiki"></div>
45 <div id="preview" class="wiki"></div>
45
46
46 <% content_for :header_tags do %>
47 <% content_for :header_tags do %>
47 <%= stylesheet_link_tag 'scm' %>
48 <%= stylesheet_link_tag 'scm' %>
48 <%= robot_exclusion_tag %>
49 <%= robot_exclusion_tag %>
49 <% end %>
50 <% end %>
@@ -1,158 +1,159
1 <%= render :partial => 'action_menu' %>
1 <%= render :partial => 'action_menu' %>
2
2
3 <h2><%= issue_heading(@issue) %></h2>
3 <h2><%= issue_heading(@issue) %></h2>
4
4
5 <div class="<%= @issue.css_classes %> details">
5 <div class="<%= @issue.css_classes %> details">
6 <% if @prev_issue_id || @next_issue_id %>
6 <% if @prev_issue_id || @next_issue_id %>
7 <div class="next-prev-links contextual">
7 <div class="next-prev-links contextual">
8 <%= link_to_if @prev_issue_id,
8 <%= link_to_if @prev_issue_id,
9 "\xc2\xab #{l(:label_previous)}",
9 "\xc2\xab #{l(:label_previous)}",
10 (@prev_issue_id ? issue_path(@prev_issue_id) : nil),
10 (@prev_issue_id ? issue_path(@prev_issue_id) : nil),
11 :title => "##{@prev_issue_id}" %> |
11 :title => "##{@prev_issue_id}" %> |
12 <% if @issue_position && @issue_count %>
12 <% if @issue_position && @issue_count %>
13 <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
13 <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
14 <% end %>
14 <% end %>
15 <%= link_to_if @next_issue_id,
15 <%= link_to_if @next_issue_id,
16 "#{l(:label_next)} \xc2\xbb",
16 "#{l(:label_next)} \xc2\xbb",
17 (@next_issue_id ? issue_path(@next_issue_id) : nil),
17 (@next_issue_id ? issue_path(@next_issue_id) : nil),
18 :title => "##{@next_issue_id}" %>
18 :title => "##{@next_issue_id}" %>
19 </div>
19 </div>
20 <% end %>
20 <% end %>
21
21
22 <%= avatar(@issue.author, :size => "50") %>
22 <%= avatar(@issue.author, :size => "50") %>
23
23
24 <div class="subject">
24 <div class="subject">
25 <%= render_issue_subject_with_tree(@issue) %>
25 <%= render_issue_subject_with_tree(@issue) %>
26 </div>
26 </div>
27 <p class="author">
27 <p class="author">
28 <%= authoring @issue.created_on, @issue.author %>.
28 <%= authoring @issue.created_on, @issue.author %>.
29 <% if @issue.created_on != @issue.updated_on %>
29 <% if @issue.created_on != @issue.updated_on %>
30 <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>.
30 <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>.
31 <% end %>
31 <% end %>
32 </p>
32 </p>
33
33
34 <table class="attributes">
34 <table class="attributes">
35 <%= issue_fields_rows do |rows|
35 <%= issue_fields_rows do |rows|
36 rows.left l(:field_status), h(@issue.status.name), :class => 'status'
36 rows.left l(:field_status), h(@issue.status.name), :class => 'status'
37 rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
37 rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
38
38
39 unless @issue.disabled_core_fields.include?('assigned_to_id')
39 unless @issue.disabled_core_fields.include?('assigned_to_id')
40 rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
40 rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
41 end
41 end
42 unless @issue.disabled_core_fields.include?('category_id')
42 unless @issue.disabled_core_fields.include?('category_id')
43 rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
43 rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
44 end
44 end
45 unless @issue.disabled_core_fields.include?('fixed_version_id')
45 unless @issue.disabled_core_fields.include?('fixed_version_id')
46 rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
46 rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
47 end
47 end
48
48
49 unless @issue.disabled_core_fields.include?('start_date')
49 unless @issue.disabled_core_fields.include?('start_date')
50 rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date'
50 rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date'
51 end
51 end
52 unless @issue.disabled_core_fields.include?('due_date')
52 unless @issue.disabled_core_fields.include?('due_date')
53 rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date'
53 rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date'
54 end
54 end
55 unless @issue.disabled_core_fields.include?('done_ratio')
55 unless @issue.disabled_core_fields.include?('done_ratio')
56 rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%"), :class => 'progress'
56 rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%"), :class => 'progress'
57 end
57 end
58 unless @issue.disabled_core_fields.include?('estimated_hours')
58 unless @issue.disabled_core_fields.include?('estimated_hours')
59 rows.right l(:field_estimated_hours), l_hours(@issue.estimated_hours), :class => 'estimated-hours'
59 rows.right l(:field_estimated_hours), l_hours(@issue.estimated_hours), :class => 'estimated-hours'
60 end
60 end
61 if User.current.allowed_to?(:view_time_entries, @project)
61 if User.current.allowed_to?(:view_time_entries, @project)
62 rows.right l(:label_spent_time), (@issue.total_spent_hours > 0 ? (link_to l_hours(@issue.total_spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-"), :class => 'spent-time'
62 rows.right l(:label_spent_time), (@issue.total_spent_hours > 0 ? (link_to l_hours(@issue.total_spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-"), :class => 'spent-time'
63 end
63 end
64 end %>
64 end %>
65 <%= render_custom_fields_rows(@issue) %>
65 <%= render_custom_fields_rows(@issue) %>
66 <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
66 <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
67 </table>
67 </table>
68
68
69 <% if @issue.description? || @issue.attachments.any? -%>
69 <% if @issue.description? || @issue.attachments.any? -%>
70 <hr />
70 <hr />
71 <% if @issue.description? %>
71 <% if @issue.description? %>
72 <div class="contextual">
72 <div class="contextual">
73 <%= link_to_remote_if_authorized(
73 <%= link_to l(:button_quote),
74 l(:button_quote),
74 {:controller => 'journals', :action => 'new', :id => @issue},
75 { :url => {:controller => 'journals', :action => 'new', :id => @issue} },
75 :remote => true,
76 :class => 'icon icon-comment') %>
76 :method => 'post',
77 :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
77 </div>
78 </div>
78
79
79 <p><strong><%=l(:field_description)%></strong></p>
80 <p><strong><%=l(:field_description)%></strong></p>
80 <div class="wiki">
81 <div class="wiki">
81 <%= textilizable @issue, :description, :attachments => @issue.attachments %>
82 <%= textilizable @issue, :description, :attachments => @issue.attachments %>
82 </div>
83 </div>
83 <% end %>
84 <% end %>
84 <%= link_to_attachments @issue, :thumbnails => true %>
85 <%= link_to_attachments @issue, :thumbnails => true %>
85 <% end -%>
86 <% end -%>
86
87
87 <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
88 <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
88
89
89 <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
90 <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
90 <hr />
91 <hr />
91 <div id="issue_tree">
92 <div id="issue_tree">
92 <div class="contextual">
93 <div class="contextual">
93 <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %>
94 <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %>
94 </div>
95 </div>
95 <p><strong><%=l(:label_subtask_plural)%></strong></p>
96 <p><strong><%=l(:label_subtask_plural)%></strong></p>
96 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
97 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
97 </div>
98 </div>
98 <% end %>
99 <% end %>
99
100
100 <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
101 <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
101 <hr />
102 <hr />
102 <div id="relations">
103 <div id="relations">
103 <%= render :partial => 'relations' %>
104 <%= render :partial => 'relations' %>
104 </div>
105 </div>
105 <% end %>
106 <% end %>
106
107
107 </div>
108 </div>
108
109
109 <% if @changesets.present? %>
110 <% if @changesets.present? %>
110 <div id="issue-changesets">
111 <div id="issue-changesets">
111 <h3><%=l(:label_associated_revisions)%></h3>
112 <h3><%=l(:label_associated_revisions)%></h3>
112 <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
113 <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
113 </div>
114 </div>
114 <% end %>
115 <% end %>
115
116
116 <% if @journals.present? %>
117 <% if @journals.present? %>
117 <div id="history">
118 <div id="history">
118 <h3><%=l(:label_history)%></h3>
119 <h3><%=l(:label_history)%></h3>
119 <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
120 <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
120 </div>
121 </div>
121 <% end %>
122 <% end %>
122
123
123
124
124 <div style="clear: both;"></div>
125 <div style="clear: both;"></div>
125 <%= render :partial => 'action_menu' %>
126 <%= render :partial => 'action_menu' %>
126
127
127 <div style="clear: both;"></div>
128 <div style="clear: both;"></div>
128 <% if authorize_for('issues', 'edit') %>
129 <% if authorize_for('issues', 'edit') %>
129 <div id="update" style="display:none;">
130 <div id="update" style="display:none;">
130 <h3><%= l(:button_update) %></h3>
131 <h3><%= l(:button_update) %></h3>
131 <%= render :partial => 'edit' %>
132 <%= render :partial => 'edit' %>
132 </div>
133 </div>
133 <% end %>
134 <% end %>
134
135
135 <% other_formats_links do |f| %>
136 <% other_formats_links do |f| %>
136 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
137 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
137 <%= f.link_to 'PDF' %>
138 <%= f.link_to 'PDF' %>
138 <% end %>
139 <% end %>
139
140
140 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
141 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
141
142
142 <% content_for :sidebar do %>
143 <% content_for :sidebar do %>
143 <%= render :partial => 'issues/sidebar' %>
144 <%= render :partial => 'issues/sidebar' %>
144
145
145 <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
146 <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
146 (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
147 (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
147 <div id="watchers">
148 <div id="watchers">
148 <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
149 <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
149 </div>
150 </div>
150 <% end %>
151 <% end %>
151 <% end %>
152 <% end %>
152
153
153 <% content_for :header_tags do %>
154 <% content_for :header_tags do %>
154 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
155 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
155 <%= stylesheet_link_tag 'scm' %>
156 <%= stylesheet_link_tag 'scm' %>
156 <% end %>
157 <% end %>
157
158
158 <%= context_menu issues_context_menu_path %>
159 <%= context_menu issues_context_menu_path %>
@@ -1,88 +1,91
1 <%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)),
1 <%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)),
2 link_to(h(@board.name), project_board_path(@project, @board)) %>
2 link_to(h(@board.name), project_board_path(@project, @board)) %>
3
3
4 <div class="contextual">
4 <div class="contextual">
5 <%= watcher_tag(@topic, User.current) %>
5 <%= watcher_tag(@topic, User.current) %>
6 <%= link_to_remote_if_authorized(
6 <%= link_to(
7 l(:button_quote),
7 l(:button_quote),
8 { :url => {:action => 'quote', :id => @topic} },
8 {:action => 'quote', :id => @topic},
9 :class => 'icon icon-comment'
9 :remote => true,
10 ) unless @topic.locked? %>
10 :method => 'get',
11 :class => 'icon icon-comment',
12 :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
11 <%= link_to(
13 <%= link_to(
12 l(:button_edit),
14 l(:button_edit),
13 {:action => 'edit', :id => @topic},
15 {:action => 'edit', :id => @topic},
14 :class => 'icon icon-edit'
16 :class => 'icon icon-edit'
15 ) if @message.editable_by?(User.current) %>
17 ) if @message.editable_by?(User.current) %>
16 <%= link_to(
18 <%= link_to(
17 l(:button_delete),
19 l(:button_delete),
18 {:action => 'destroy', :id => @topic},
20 {:action => 'destroy', :id => @topic},
19 :method => :post,
21 :method => :post,
20 :data => {:confirm => l(:text_are_you_sure)},
22 :data => {:confirm => l(:text_are_you_sure)},
21 :class => 'icon icon-del'
23 :class => 'icon icon-del'
22 ) if @message.destroyable_by?(User.current) %>
24 ) if @message.destroyable_by?(User.current) %>
23 </div>
25 </div>
24
26
25 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
27 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
26
28
27 <div class="message">
29 <div class="message">
28 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
30 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
29 <div class="wiki">
31 <div class="wiki">
30 <%= textilizable(@topic, :content) %>
32 <%= textilizable(@topic, :content) %>
31 </div>
33 </div>
32 <%= link_to_attachments @topic, :author => false %>
34 <%= link_to_attachments @topic, :author => false %>
33 </div>
35 </div>
34 <br />
36 <br />
35
37
36 <% unless @replies.empty? %>
38 <% unless @replies.empty? %>
37 <h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
39 <h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
38 <% @replies.each do |message| %>
40 <% @replies.each do |message| %>
39 <div class="message reply" id="<%= "message-#{message.id}" %>">
41 <div class="message reply" id="<%= "message-#{message.id}" %>">
40 <div class="contextual">
42 <div class="contextual">
41 <%= link_to_remote_if_authorized(
43 <%= link_to(
42 image_tag('comment.png'),
44 image_tag('comment.png'),
43 { :url => {:action => 'quote', :id => message} },
45 {:action => 'quote', :id => message},
44 :title => l(:button_quote)
46 :remote => true,
45 ) unless @topic.locked? %>
47 :method => 'get',
48 :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %>
46 <%= link_to(
49 <%= link_to(
47 image_tag('edit.png'),
50 image_tag('edit.png'),
48 {:action => 'edit', :id => message},
51 {:action => 'edit', :id => message},
49 :title => l(:button_edit)
52 :title => l(:button_edit)
50 ) if message.editable_by?(User.current) %>
53 ) if message.editable_by?(User.current) %>
51 <%= link_to(
54 <%= link_to(
52 image_tag('delete.png'),
55 image_tag('delete.png'),
53 {:action => 'destroy', :id => message},
56 {:action => 'destroy', :id => message},
54 :method => :post,
57 :method => :post,
55 :data => {:confirm => l(:text_are_you_sure)},
58 :data => {:confirm => l(:text_are_you_sure)},
56 :title => l(:button_delete)
59 :title => l(:button_delete)
57 ) if message.destroyable_by?(User.current) %>
60 ) if message.destroyable_by?(User.current) %>
58 </div>
61 </div>
59 <h4>
62 <h4>
60 <%= avatar(message.author, :size => "24") %>
63 <%= avatar(message.author, :size => "24") %>
61 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
64 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
62 -
65 -
63 <%= authoring message.created_on, message.author %>
66 <%= authoring message.created_on, message.author %>
64 </h4>
67 </h4>
65 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
68 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
66 <%= link_to_attachments message, :author => false %>
69 <%= link_to_attachments message, :author => false %>
67 </div>
70 </div>
68 <% end %>
71 <% end %>
69 <p class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></p>
72 <p class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></p>
70 <% end %>
73 <% end %>
71
74
72 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
75 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
73 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
76 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
74 <div id="reply" style="display:none;">
77 <div id="reply" style="display:none;">
75 <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
78 <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
76 <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
79 <%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
77 <%= submit_tag l(:button_submit) %>
80 <%= submit_tag l(:button_submit) %>
78 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
81 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %>
79 <% end %>
82 <% end %>
80 <div id="preview" class="wiki"></div>
83 <div id="preview" class="wiki"></div>
81 </div>
84 </div>
82 <% end %>
85 <% end %>
83
86
84 <% content_for :header_tags do %>
87 <% content_for :header_tags do %>
85 <%= stylesheet_link_tag 'scm' %>
88 <%= stylesheet_link_tag 'scm' %>
86 <% end %>
89 <% end %>
87
90
88 <% html_title @topic.subject %>
91 <% html_title @topic.subject %>
General Comments 0
You need to be logged in to leave comments. Login now