diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 9b25e5acd..1f279bb7a 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -5,9 +5,6 @@
<%= call_hook :view_account_login_top %>
<%= form_tag(signin_path) do %>
- <%= back_url_hidden_field_tag if is_logout? %>
- <% unless User.current.logged? %>
- <%= call_hook :view_account_login_bottom %>
+
+ <%= call_hook :view_account_login_bottom %>
<% if params[:username].present? %>
<%= javascript_tag "$('#password').focus();" %>
@@ -100,37 +100,78 @@
}
}
+<%= stylesheet_link_tag 'welcome' %>
+
-
-
-
-
+ <% end %>
<% end %>
- <% end %>
-
+
+
+
<%= image_tag(url_to_avatar(User.current), :class => 'avatar') %> |
+ <%= link_to l(:label_user_watcher)+"("+User.watched_by(User.current).count.to_s+")", user_path(User.current) %> 
+ <%=link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+User.current.watcher_users(User.current.id).count.to_s+")", user_path(User.current) %> |
+ <% unless User.current.memberships.empty? %>
+ <%= l(:label_x_welcome_participate, :count => User.current.memberships.count) %> <%= link_to User.current.memberships.count, {:controller => 'users', :action => 'user_projects', :id => User.current} %> <%= l(:label_welcome_participate_project)%>
+ <% end %>
+ |
+
+
+
+
+
+
+ 热门项目
+
+ This is a project!balabalabalabala...
+
+
+
+
+
+
+
+新手指引 & 问答
+
+
+ 新手入门指引帖 && FAQ bala... [ Trustie ]
+
+
|