fix link to
This commit is contained in:
parent
606b2d0587
commit
003b4704cc
|
@ -1354,7 +1354,7 @@ module ApplicationHelper
|
||||||
html << (content_tag "span", l(:label_no_current_watchers))
|
html << (content_tag "span", l(:label_no_current_watchers))
|
||||||
end
|
end
|
||||||
for user in User.watched_by(obj.id)
|
for user in User.watched_by(obj.id)
|
||||||
html << (image_tag(url_to_avatar(user), :class => "avatar"))
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
||||||
count = count + 1
|
count = count + 1
|
||||||
if count >= 12
|
if count >= 12
|
||||||
break
|
break
|
||||||
|
@ -1379,7 +1379,7 @@ module ApplicationHelper
|
||||||
html << (content_tag "span", l(:label_no_current_fans))
|
html << (content_tag "span", l(:label_no_current_fans))
|
||||||
end
|
end
|
||||||
for user in obj.watcher_users
|
for user in obj.watcher_users
|
||||||
html << (image_tag(url_to_avatar(user), :class => "avatar"))
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
||||||
count = count + 1
|
count = count + 1
|
||||||
if count >= 12
|
if count >= 12
|
||||||
break
|
break
|
||||||
|
@ -1393,7 +1393,7 @@ module ApplicationHelper
|
||||||
html = ''
|
html = ''
|
||||||
count = 0
|
count = 0
|
||||||
for user in User.watched_by(user.id)
|
for user in User.watched_by(user.id)
|
||||||
html << (image_tag(url_to_avatar(user), :class => "avatar"))
|
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
|
||||||
count = count + 1
|
count = count + 1
|
||||||
if count >= 12
|
if count >= 12
|
||||||
break
|
break
|
||||||
|
|
|
@ -93,8 +93,7 @@
|
||||||
<% if @bid.watcher_users.size>0 %>
|
<% if @bid.watcher_users.size>0 %>
|
||||||
<% for user in @bid.watcher_users%>
|
<% for user in @bid.watcher_users%>
|
||||||
|
|
||||||
<%= image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ) %>
|
<%= link_to image_tag(url_to_avatar(user), :class => "avatar", :title => user.name ), user_path(user), :class => "avatar" %> <% end %>
|
||||||
<% end %>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
<p class="font_lighter"><%= l(:label_project_no_follow) %></p>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
@ -115,7 +114,7 @@
|
||||||
<td style="padding-top: 5px">
|
<td style="padding-top: 5px">
|
||||||
<% if @bid.projects.size>0 %>
|
<% if @bid.projects.size>0 %>
|
||||||
<% for project in @bid.projects%>
|
<% for project in @bid.projects%>
|
||||||
<%= image_tag(url_to_avatar(project), :class => "avatar", :title => project.name) %>
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %> <%= image_tag(url_to_avatar(project), :class => "avatar", :title => project.name) %>
|
||||||
<% end%>
|
<% end%>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
<p class="font_lighter"><%= l(:label_no_bid_project) %></p>
|
||||||
|
|
|
@ -104,8 +104,7 @@
|
||||||
<td style="padding-top: 5px"> <% if @bid.homework_type == 1%>
|
<td style="padding-top: 5px"> <% if @bid.homework_type == 1%>
|
||||||
<% if @bid.homeworks.size>0 %>
|
<% if @bid.homeworks.size>0 %>
|
||||||
<% for homework in @bid.homeworks %>
|
<% for homework in @bid.homeworks %>
|
||||||
<%= image_tag(url_to_avatar(homework.user), :class => "avatar", :title => homework.user.name) %>
|
<%= link_to image_tag(url_to_avatar(homework.user), :class => "avatar", :title => homework.user.name), user_path(homework.user), :class => "avatar" %> <% end %>
|
||||||
<% end %>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter">
|
<p class="font_lighter">
|
||||||
<%= l(:label_no_course_project) %>
|
<%= l(:label_no_course_project) %>
|
||||||
|
@ -113,8 +112,7 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if @bid.projects.size>0 %>
|
<% if @bid.projects.size>0 %>
|
||||||
<% for project in @bid.projects%>
|
<% for project in @bid.projects%>
|
||||||
<%= image_tag(url_to_avatar(project), :class => "avatar", :title => project.name) %>
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar", :title => project.name), project_path(project), :class => "avatar" %> <% end %>
|
||||||
<% end %>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<p class="font_lighter">
|
<p class="font_lighter">
|
||||||
<%= l(:label_no_course_project) %>
|
<%= l(:label_no_course_project) %>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<div class="inf_user_image">
|
<div class="inf_user_image">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left" valign="middle" ><%= image_tag(url_to_avatar(@user), :class => 'avatar2') %></td>
|
<td align="left" valign="middle" ><%= image_tag(url_to_avatar(@user), :class => 'avatar2') %></td>
|
||||||
<td>
|
<td>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<ul class="list_watch"><li>
|
<ul class="list_watch"><li>
|
||||||
<table width="660px" border="0" align="center">
|
<table width="660px" border="0" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(user), :class => "avatar") %></td>
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %></td>
|
||||||
<td><table width="580px" border="0">
|
<td><table width="580px" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
|
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
<ul class="list_watch"><li>
|
<ul class="list_watch"><li>
|
||||||
<table width="660px" border="0" align="center">
|
<table width="660px" border="0" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(user), :class => "avatar") %></td>
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %></td>
|
||||||
<td><table width="580px" border="0">
|
<td><table width="580px" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
|
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue