#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,15 +17,17 @@
:revisions => @changesets,
: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 %>
<%= stylesheet_link_tag "scm" %>
<%= auto_discovery_link_tag(
:atom,
params.merge(
{:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
<% end %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<%= auto_discovery_link_tag(
:atom,
params.merge(
{:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
<% end %>
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>

View File

@ -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>