% if ma.class == ForgeMessage %>
<% if ma.forge_message_type == "AppliedProject" %>
<% end %>
<% if ma.forge_message_type == "JoinProject" %>
<% unless ma.project.nil? %>
<% end %>
<% end %>
<% if ma.forge_message_type == "RemoveFromProject" %>
<% unless ma.project.nil? %>
<% end %>
<% end %>
<% if ma.forge_message_type == "ProjectInvite" %>
<% inviter = User.find(ma.forge_message_id) %>
-
<%=link_to image_tag(url_to_avatar(inviter), :width => "30", :height => "30"), user_path(inviter) %>
-
<%=link_to inviter, user_path(inviter), :class => "newsBlue homepageNewsPublisher" %>
'>邀请你加入项目:
<% if ma.user.member_of?(ma.project) %>
-
<% else %>
-
<% end %>
<%= link_to ma.project, project_path(ma.project),
:class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}" %>
<% unless User.current.member_of?(ma.project) %>
-
<%=link_to "同意加入", {:controller => 'projects', :action => 'member', :id => ma.project_id, :message_id =>ma.id, :key => ma.secret_key},
:value => ma.secret_key,
:class => "green_btn_cir ml10",
:style => "color:#fff" %>
<% end %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% if ma.forge_message_type == "Issue" %>
<% if ma.status == 1%>
<% else %>
<% end %>
<% end %>
<% if ma.forge_message_type == "Journal" %>
<% end %>
<% if ma.forge_message_type == "Message" %>
<% end %>
<% if ma.forge_message_type == "News" %>
<% end %>
<% if ma.forge_message_type == "Comment" %>
- <%=link_to image_tag(url_to_avatar(ma.forge_message.author), :width => "30", :height => "30"), user_path(ma.forge_message.author) %>
- <%=link_to ma.forge_message.author, user_path(ma.forge_message.author), :class => "newsBlue homepageNewsPublisher" %>
">评论了新闻:
-
<%= link_to "#{ma.forge_message.commented.title}",
{:controller => 'news', :action => 'show', :id => ma.forge_message.commented.id },:class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}" %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% end %>