diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7fb0dcb7e..823db4729 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -488,6 +488,14 @@ module ApplicationHelper
end
end
+ def render_project_settings_tabs(tabs)
+ if tabs.any?
+ render :partial => 'common/project_tab', :locals => {:tabs => tabs}
+ else
+ content_tag 'p', l(:label_no_data), :class => "nodata"
+ end
+ end
+
# Renders the project quick-jump box
def render_project_jump_box
return unless User.current.logged?
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 6a708051a..17c39b3fe 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -67,6 +67,18 @@ module IssuesHelper
s.html_safe
end
+ def link_to_issue_type
+ if column_content[1].to_s == "缺陷"
+ class_type = "red_btn_cir ml10"
+ elsif column_content[1] == "功能"
+ class="blue_btn_cir ml10"
+ elsif column_content[1] == "支持"
+ class="green_btn_cir ml10"
+ else
+ class_type="orange_btn_cir ml10">
+ end
+ end
+
def render_issue_subject_with_tree(issue)
s = ''
ancestors = issue.root? ? [] : issue.ancestors.visible.all
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 3c1663fcb..4a790790e 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -29,7 +29,7 @@ module ProjectsHelper
{:name => 'modules', :action => :select_project_modules, :partial => 'projects/settings/modules', :label => :label_module_plural},
{:name => 'members', :action => :manage_members, :partial => 'projects/settings/members', :label => :label_member_plural},
{:name => 'versions', :action => :manage_versions, :partial => 'projects/settings/versions', :label => :label_version_plural},
- {:name => 'categories', :action => :manage_categories, :partial => 'projects/settings/issue_categories', :label => :label_issue_category_plural},
+ # {:name => 'categories', :action => :manage_categories, :partial => 'projects/settings/issue_categories', :label => :label_issue_category_plural},
# {:name => 'wiki', :action => :manage_wiki, :partial => 'projects/settings/wiki', :label => :label_wiki},
{:name => 'repositories', :action => :manage_repository, :partial => 'projects/settings/repositories', :label => :label_repository_plural},
#{:name => 'boards', :action => :manage_boards, :partial => 'projects/settings/boards', :label => :label_board_plural},
diff --git a/app/views/common/_project_tab.html.erb b/app/views/common/_project_tab.html.erb
new file mode 100644
index 000000000..95ac48c59
--- /dev/null
+++ b/app/views/common/_project_tab.html.erb
@@ -0,0 +1,28 @@
+<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
+
+
+
+ <% tabs.each do |tab| -%>
+ - <%= link_to l(tab[:label]), { :tab => tab[:name] },
+ :id => "tab-#{tab[:name]}",
+ :class => (tab[:name] != selected_tab ? 'hwork_normaltab' : 'hwork_hovertab'),
+ :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %>
+ <% end -%>
+
+
+
+
+
+
+<% tabs.each do |tab| -%>
+ <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
+ :id => "tab-content-#{tab[:name]}",
+ :style => (tab[:name] != selected_tab ? 'display:none' : nil),
+ :class => 'hwork_normaltab') %>
+<% end -%>
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb
index fb2fa9e55..0f86f466e 100644
--- a/app/views/issues/_form.html.erb
+++ b/app/views/issues/_form.html.erb
@@ -6,6 +6,7 @@
//issue_project_id
}
+
<%= labelled_fields_for :issue, @issue do |f| %>
<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
@@ -22,8 +23,8 @@
<% if @issue.safe_attribute? 'tracker_id' %>
<%= f.select :tracker_id, @issue.project.trackers.collect {|t| [t.name, t.id]}, {:required => true},
- :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')" %>
-
+ :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')" %>
+
<% end %>
diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb
index 727e7a1a5..5a05501d9 100644
--- a/app/views/issues/_list.html.erb
+++ b/app/views/issues/_list.html.erb
@@ -5,15 +5,15 @@
<% end %>
-
<% column_content = ( query.inline_columns.map {|column| "#{column_content_new(column, issue)}"}) %>
<% unless issue.author.nil? || issue.author.name == "Anonymous" %>
-
<%= image_tag(url_to_avatar(issue.author), :width => "42", :height => "42") %>
+
<%= link_to issue.author.name, user_path(issue.author), :class => "problem_name c_orange fl" %>
-
<%= l(:label_post_on_issue) %>(<%= "#{raw column_content[2]}" %>):
- <%=link_to column_content[4], issue_path(issue.id), :class => "problem_tit fl" %>
-
<%= textilizable issue, :description %>
+
<%= l(:label_post_on_issue) %>(<%= "#{raw column_content[2]}" %>):
+ <%=link_to column_content[4], issue_path(issue.id), :class => "problem_tit02 fl" %>
+
+
<% unless issue.assigned_to_id.nil? %>
<%= l(:field_assigned_to) %>
@@ -22,6 +22,8 @@
<%= l(:label_updated_time_on, format_date(issue.updated_on)).html_safe %>
+
001
+
<% end %>
diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb
index 51ebd139e..a2facd5ab 100644
--- a/app/views/issues/new.html.erb
+++ b/app/views/issues/new.html.erb
@@ -26,9 +26,9 @@
<% end %>
-
+
<%= render :partial => 'attachments/form', :locals => {:container => @issue} %>
-
+
<% if @issue.safe_attribute? 'watcher_user_ids' -%>