From ff159075aa743a7beeafa899cfa81cab6ae79c28 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Wed, 10 Jun 2015 16:16:23 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0header=E8=AF=BE=E7=A8=8B=E5=9C=A8?=
=?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=8A=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/layouts/_new_header.html.erb | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/app/views/layouts/_new_header.html.erb b/app/views/layouts/_new_header.html.erb
index 46a2eff63..f26317acd 100644
--- a/app/views/layouts/_new_header.html.erb
+++ b/app/views/layouts/_new_header.html.erb
@@ -20,19 +20,6 @@
<%= link_to "#{User.current.login}".html_safe, {:controller=> 'users', :action => 'show', id: User.current.id, host: Setting.host_user}, target:"_blank", :class => "uses_name"%>
<% end %>
<% end %>
+
+ <% unless User.current.projects.empty? %>
+
+ <%= link_to l(:label_my_projects), {:controller => 'users', :action => 'user_projects', id: User.current.id, host: Setting.host_name},target:"_blank", :class => "parent" %>
+
+ <% User.current.projects.each do |project| %>
+ -
+ <%= link_to project.name, {:controller => 'projects', :action => 'show',id: project.id, host: Setting.host_name }, target:"_blank" %>
+
+ <% end %>
+
+
+ <% end %>
<%=link_to l(:label_user_edit), {:controller => 'my', :action=> 'account', host: Setting.host_user}%>