需求列表无“关注”、“应标项目”时,显示暂无...
This commit is contained in:
parent
b100754b96
commit
2af1c2ed90
|
@ -87,8 +87,13 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td style="padding-top: 5px">
|
||||
<% if @bid.watcher_users.size>0 %>
|
||||
<% for user in @bid.watcher_users%>
|
||||
|
||||
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ), user_path(user), :class => "avatar" %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p class="font_lighter"><%="该项目暂未被关注" %></p>
|
||||
<% end%>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -105,9 +110,14 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td style="padding-top: 5px">
|
||||
<% if @bid.projects.size>0 %>
|
||||
<% for project in @bid.projects%>
|
||||
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %>
|
||||
<% end%></td>
|
||||
<% end%>
|
||||
<% else %>
|
||||
<p class="font_lighter"><%="暂无应标项目" %></p>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue