#1175修改代码评审中的中文问题

This commit is contained in:
sw 2014-10-27 10:17:40 +08:00
parent 4090834c2e
commit 5aa68ba9b4
2 changed files with 18 additions and 14 deletions

View File

@ -17,7 +17,9 @@
:revisions => @changesets, :revisions => @changesets,
:entry => nil } %> :entry => nil } %>
<div class="pagination"><%= pagination_links_full @changeset_pages,@changeset_count %></div> <div class="pagination">
<%= pagination_links_full @changeset_pages,@changeset_count %>
</div>
<% content_for :header_tags do %> <% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %> <%= stylesheet_link_tag "scm" %>

View File

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