|
|
|
@ -186,24 +186,27 @@ software development and software crowdsourcing.</td></tr>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div>
|
|
|
|
|
<!--info-->
|
|
|
|
|
<table width="200" border="0">
|
|
|
|
|
|
|
|
|
|
<!-- modified by bai -->
|
|
|
|
|
<table width="200" border="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" class="font_welcome_Cdescription" ><%= l(:label_welcome) %> <strong class="font_small_watch" style=" word-wrap: break-word; word-break: break-all"><%=link_to User.current.lastname<<User.current.firstname, user_path(User.current) %></strong> <%= l(:label_join) %></td>
|
|
|
|
|
<td colspan="2" align="center" class="font_welcome_Cdescription" ><%= l(:label_welcome) %> <strong class="font_small_watch" style=" word-wrap: break-word; word-break: break-all"><%=link_to User.current.lastname<<User.current.firstname, user_path(User.current) %></strong> <%= l(:label_join) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td rowspan="2" align="left"><%=link_to image_tag(url_to_avatar(User.current), :class => 'avatar'), user_path(User.current) %></td>
|
|
|
|
|
|
|
|
|
|
<td rowspan="2" style="padding-left: 20px"><%=link_to image_tag(url_to_avatar(User.current), :class => 'avatar'), user_path(User.current) %></td>
|
|
|
|
|
<td><strong class="font_small_watch"><%= link_to l(:label_user_watcher)+"("+User.watched_by(User.current).count.to_s+")", user_path(User.current) %></strong> 
|
|
|
|
|
<strong class="font_small_watch"><%=link_to l(:label_user_fans)+"("+User.current.watcher_users(User.current.id).count.to_s+")", user_path(User.current) %></strong></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><% unless User.current.memberships.empty? %>
|
|
|
|
|
<%= l(:label_welcome_participate) %> (<strong class="font_small_watch"><%= link_to User.current.memberships.count, {:controller => 'users', :action => 'user_projects', :id => User.current} %></strong>) <%= l(:label_welcome_participate_project)%>
|
|
|
|
|
<td align="left"><% unless User.current.memberships.empty? %>
|
|
|
|
|
<%= l(:label_welcome_participate) %> <strong class="font_small_watch"><%= link_to User.current.memberships.count, {:controller => 'users', :action => 'user_projects', :id => User.current} %></strong> <%= l(:label_welcome_participate_project)%>
|
|
|
|
|
<!-- <% for member in User.current.memberships %>
|
|
|
|
|
<%= link_to_project(member.project) %><%= (User.current.memberships.last == member) ? '' : ',' %>
|
|
|
|
|
<% end %> --> <% end %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|