|
|
|
@ -24,10 +24,14 @@
|
|
|
|
|
<%= error_messages_for 'review' -%>
|
|
|
|
|
<%= error_messages_for 'reply' -%>
|
|
|
|
|
<% if @notice -%>
|
|
|
|
|
<div class="flash notice"><%= @notice -%></div>
|
|
|
|
|
<div class="flash notice">
|
|
|
|
|
<%= @notice -%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end -%>
|
|
|
|
|
<% if @error -%>
|
|
|
|
|
<div class="flash error"><%= @error -%></div>
|
|
|
|
|
<div class="flash error">
|
|
|
|
|
<%= @error -%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
<!-- code review view -->
|
|
|
|
@ -77,9 +81,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- review comment edit form -->
|
|
|
|
|
<div class="box" id="update-form-<%= @review.id %>" style="display:none;">
|
|
|
|
|
<%
|
|
|
|
|
review_form_id = "review_form_#{@review.id}"
|
|
|
|
|
-%>
|
|
|
|
|
<% review_form_id = "review_form_#{@review.id}" -%>
|
|
|
|
|
<%= form_for :review,
|
|
|
|
|
:url => {:controller => 'code_review',
|
|
|
|
|
:action => 'update',
|
|
|
|
@ -111,7 +113,7 @@
|
|
|
|
|
<%
|
|
|
|
|
submit_url = url_for(:controller => 'code_review', :action => 'update', :id => @project)
|
|
|
|
|
-%>
|
|
|
|
|
<%= button_to_function l(:button_apply), "$('#show_review_#{@review.id}').load('#{submit_url}', $('##{review_form_id}').serialize())" %>
|
|
|
|
|
<%= button_to_function l(:button_submit), "$('#show_review_#{@review.id}').load('#{submit_url}', $('##{review_form_id}').serialize())" %>
|
|
|
|
|
<input type="button" value="<%=h l(:button_cancel) %>" onclick='$("#review_form_<%= @review.id %>").hide();' />
|
|
|
|
|
<%= link_to_function l(:label_preview), "$('#preview_#{@review.id}').load('#{url_for(:controller => 'code_review', :action => 'preview', :id => @project)}', $('##{review_form_id}').serialize())" %>
|
|
|
|
|
</p>
|
|
|
|
|