From 4077a914294374ba5692fa4b1ba75071fc96ecbd Mon Sep 17 00:00:00 2001 From: nieguanghui Date: Tue, 13 Aug 2013 20:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=AA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=95=8C=E9=9D=A2=E6=98=BE=E7=A4=BAbug?= =?UTF-8?q?=EF=BC=9B=E5=88=A0=E9=99=A4=E4=BA=86=E9=83=A8=E5=88=86=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_projects.html.erb | 7 ++- app/views/layouts/base_users.html.erb | 5 +- app/views/projects/show.html.erb | 64 ------------------------ app/views/tags/_tag.html.erb | 25 ++++----- 4 files changed, 18 insertions(+), 83 deletions(-) diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 01acb7bab..8f187c27a 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -53,7 +53,8 @@ <%=link_to "#{@project.members.count}", project_member_path(@project) %> <%=link_to "#{@project.issues.count}", project_issues_path(@project) %> - <%=link_to "#{@project.attachments.count}", project_files_path(@project) %> + <%=link_to "#{@project.attachments.count}", project_files_path(@project) %> + <%= l(:label_member) %> <%= l(:label_project_defects) %> @@ -89,7 +90,8 @@
<%= render :partial => 'tags/tag', :locals => {:obj => @project,:object_flag => "2"}%> -
+ + @@ -143,6 +145,7 @@ + <%= call_hook :view_layouts_base_body_bottom %> diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index c6d68c475..c8367477f 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -77,7 +77,8 @@
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%> -
+ + @@ -136,7 +137,7 @@ - + <%= call_hook :view_layouts_base_body_bottom %> diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index 7abed830d..a7545a45b 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -1,16 +1,3 @@ - - <% if @events_by_day.size >0 %>

<%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe %>

@@ -54,54 +41,3 @@ <% else %> <%= l(:label_project_no_activity) %> <% end %> - - - - - - - diff --git a/app/views/tags/_tag.html.erb b/app/views/tags/_tag.html.erb index 9ce6ea86b..922a6f823 100644 --- a/app/views/tags/_tag.html.erb +++ b/app/views/tags/_tag.html.erb @@ -1,22 +1,16 @@
- - <% if User.current.logged? %> -
- <%= image_tag("/images/sidebar/tags.png") %> - <%= l(:label_tag) %>: - - - - <% if object_flag == '3' %> + <%= image_tag("/images/sidebar/tags.png") %> + <%= l(:label_tag) %>: + + <% if User.current.logged? %> - <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %> + <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %> <% end %> -
<%= render :partial => "tags/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
@@ -35,12 +29,14 @@ <% else %> + <%= image_tag("/images/sidebar/tags.png") %> + <%= l(:label_tag) %>: + + <% if User.current.logged? %> - <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form', {:focus => 'name'} %> + <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form', {:focus => 'name'} %> <% end %> -
-
<%= render :partial => "tags/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
@@ -57,4 +53,3 @@
<% end %> -<% end %> \ No newline at end of file