From 104075b3fd274d43633566ad3598638bc1cf5ab6 Mon Sep 17 00:00:00 2001
From: huang
Date: Wed, 15 Apr 2015 16:38:39 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=BA=E9=99=B7=E7=95=99?=
=?UTF-8?q?=E8=A8=80=E6=96=B9=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/issues/_action_menu.html.erb | 1 -
app/views/issues/_edit.html.erb | 67 +++++++++++++++-----------
app/views/issues/show.html.erb | 20 +++-----
config/locales/projects/zh.yml | 2 +-
4 files changed, 48 insertions(+), 42 deletions(-)
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb
index 959ab52c1..52e487f08 100644
--- a/app/views/issues/_action_menu.html.erb
+++ b/app/views/issues/_action_menu.html.erb
@@ -1,5 +1,4 @@
-
<%= watcher_link_issue(@issue, User.current) %>
<%#= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:add_issues, @project) %>
<%= link_to l(:button_delete), issue_path(@issue.id), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'talk_edit fr' if User.current.allowed_to?(:delete_issues, @project) %>
diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb
index bc5c8596a..ea2e3e5de 100644
--- a/app/views/issues/_edit.html.erb
+++ b/app/views/issues/_edit.html.erb
@@ -1,47 +1,58 @@
<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
<%= error_messages_for 'issue', 'time_entry' %>
<%= render :partial => 'conflict' if @conflict %>
+
<% if @edit_allowed || !@allowed_statuses.empty? %>
- <%= render :partial => 'form', :locals => {:f => f} %>
- <% end %>
+ <%= render :partial => 'form', :locals => {:f => f} %>
+
+ <% end %>
-
+
-
+
+ <%= render :partial => 'attachments/form', :locals => {:container => @issue} %>
+
-
-
-
-
- <%= watchers_checkboxes(@issue, @available_watchers) %>
-
-
- <%= link_to l(:label_search_for_watchers),
- {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
- :remote => true,
+
+
+
+
+
+
+
+ <%#= link_to l(:label_search_for_watchers),
+# {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
+# :remote => true,
:method => 'get' %>
-
-
-
-
+
+
+
+
<%= f.hidden_field :lock_version %>
<%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %>
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id]%>
- <%= submit_tag l(:button_submit) %>
- <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' %>
+
+ <%= l(:button_submit) %>
+
+
+ <%#= submit_tag l(:button_submit) %>
+ <%#= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' %>
<% end %>
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index d905de48c..56c4f0815 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -90,13 +90,14 @@
<%= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'talk_edit fr' if authorize_for('issues', 'edit') %>
-
+
+ <% if @issue.editable? %>
+
+ <%= render :partial => 'edit' %>
+
+ <% end %>
- <% if @journals.present? %>
-
- <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
-
-<% end %>
+
<% if @changesets.present? %>
@@ -109,12 +110,7 @@
-
-<% if @issue.editable? %>
-
- <%= render :partial => 'edit' %>
-
-<% end %>
+
<% other_formats_links do |f| %>
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml
index e15c4dcdb..e278cb091 100644
--- a/config/locales/projects/zh.yml
+++ b/config/locales/projects/zh.yml
@@ -69,7 +69,7 @@ zh:
project_module_boards: 讨论区
- project_module_boards_post: 发帖新帖
+ project_module_boards_post: 发布新帖
project_module_files: 资源库
project_module_repository: 版本库
project_module_create_repository: 创建版本库