项目邀请

This commit is contained in:
ouyangxuhua 2015-09-17 14:37:45 +08:00
parent d21dce566f
commit 99d6012718
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@
$("#valid_email").text("<%= l(:label_email_format_error)%>"); $("#valid_email").text("<%= l(:label_email_format_error)%>");
return false; return false;
} }
else if(email.split('@')[0].length >= 20) else if(email.split('@')[0].length > 20)
{ {
$("#valid_email").text("邮箱名过长,最长为20个字符"); $("#valid_email").text("邮箱名过长,最长为20个字符");
return false; return false;
@ -96,6 +96,7 @@
<% @inviter_lists.each do |inviter_list| %> <% @inviter_lists.each do |inviter_list| %>
<table> <table>
<tbody> <tbody>
<% if inviter_list.user != nil %>
<tr> <tr>
<td class="email"><%= inviter_list.user.mail %></td> <td class="email"><%= inviter_list.user.mail %></td>
<td class="text-name"> <td class="text-name">
@ -108,6 +109,7 @@
<td class="text-status"><%= status_for_ivitied(inviter_list, @project) %></td> <td class="text-status"><%= status_for_ivitied(inviter_list, @project) %></td>
<!--<td class="text-time"><%#= time_tag(inviter_list.created_at).html_safe %></td>--> <!--<td class="text-time"><%#= time_tag(inviter_list.created_at).html_safe %></td>-->
</tr> </tr>
<% end %>
</tbody> </tbody>
</table> </table>
<% end %> <% end %>