parent
39580a04a2
commit
2fa6276829
@ -1,34 +1,39 @@
|
|||||||
<p><%= link_to "关注的项目" , {:controller => 'users', :action => 'watch_projects', :id => @user.id}%>
|
<table>
|
||||||
<% if @user == User.current %>
|
<p><strong>
|
||||||
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %></p>
|
<%= l(:label_has_watched_project)%>
|
||||||
<% end %>
|
<%= link_to l(:label_project_take) , {:controller => 'users', :action => 'user_projects', :course => 0, :project_type => @project_type}%></strong>
|
||||||
|
<% if @user == User.current %>
|
||||||
|
<span style="margin-left: 300px"><%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %></span>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
|
</p>
|
||||||
|
<table>
|
||||||
<% unless @watch_projects.nil?&&watch_projects.project.nil? %>
|
<% unless @watch_projects.nil?&&watch_projects.project.nil? %>
|
||||||
<% for watch_project in @watch_projects %>
|
<% for watch_project in @watch_projects %>
|
||||||
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
<table width="660" border="0" align="center" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(watch_project.project), :class => 'avatar'), project_path(watch_project.project) %></td>
|
||||||
|
<td>
|
||||||
|
<table width="580" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(watch_project.project), :class => 'avatar'), project_path(watch_project.project) %></td>
|
<td colspan="2" valign="top"><strong> <%= link_to_user(@user) if watch_project.respond_to?(:user) %></strong><span class="font_lighter"> <%= @user.name%><%= l(:label_watch_project) %></span> <%= link_to_project(watch_project.project) %></td>
|
||||||
<td>
|
|
||||||
<table width="580" border="0">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" valign="top"><strong> <%= link_to_user(@user) if watch_project.respond_to?(:user) %></strong>
|
|
||||||
<span class="font_lighter"> <%= @user.name%><%= l(:label_watch_project) %></span> <%= link_to_project(watch_project.project) %></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" width="580" >
|
|
||||||
<p class="font_description">
|
|
||||||
<%= watch_project.project.description%>
|
|
||||||
</p></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td align="left"><span class="font_lighter"> <%= format_time(watch_project.created_on) %></span></td><!-- modified by ming -->
|
|
||||||
</tr>
|
|
||||||
</table></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
</table>
|
<td colspan="2" width="580" >
|
||||||
|
<p class="font_description">
|
||||||
</li>
|
<%= watch_project.project.description%>
|
||||||
<% end %>
|
</p></td>
|
||||||
<% else %>
|
</tr>
|
||||||
还米有关注任何项目
|
<tr>
|
||||||
<% end %>
|
<td align="left"><span class="font_lighter"> <%= format_time(watch_project.created_on) %></span></td><!-- modified by ming -->
|
||||||
|
</tr>
|
||||||
|
</table></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= l(:label_watch_no_projects)%>
|
||||||
|
<% end %>
|
||||||
|
Loading…
Reference in new issue