% if ma.class == ForgeMessage %>
<% if ma.forge_message_type == "AppliedProject" %>
-
<%=link_to image_tag(url_to_avatar(User.find(ma.forge_message_id)), :width => "30", :height => "30"), user_path(ma.forge_message_id) %>
-
<%=link_to User.find(ma.forge_message_id), user_path(User.find(ma.forge_message_id)), :class => "newsBlue homepageNewsPublisher" %>
">将您加入了项目:
-
<%= link_to ma.project, project_member_path(ma.project), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
<% if ma.project.is_public? || User.current.member_of?(ma.project) %>
项目名称:<%= ma.project.name %>
项目描述:<%= ma.project.description %>
<% else %>
您已经被移出该私有项目,非项目成员没有权限访问私有项目
<% end %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% if ma.forge_message_type == "RemoveFromProject" %>
-
<%=link_to image_tag(url_to_avatar(User.find(ma.forge_message_id)), :width => "30", :height => "30"), user_path(ma.forge_message_id) %>
-
<%=link_to User.find(ma.forge_message_id), user_path(User.find(ma.forge_message_id)), :class => "newsBlue homepageNewsPublisher" %>
">将您移出了项目:
-
<%= link_to ma.project, member_project_path(ma.project), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
<% if ma.project.is_public? || User.current.member_of?(ma.project) %>
项目名称:<%= ma.project.name %>
项目描述:<%= ma.project.description %>
<% else %>
您已经被移出该私有项目,非项目成员没有权限访问私有项目
<% end %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% if ma.forge_message_type == "ProjectInvite" %>
<% inviter = User.find(ma.forge_message_id) %>
-
<%=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" %>
"><%= ma.forge_message.tracker_id == 5 ? "发布的周报:":"指派给你的问题:"%>
-
<%= link_to ma.forge_message.subject, issue_path(:id => ma.forge_message.id), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
主题:<%= ma.forge_message.subject %>
<% unless ma.forge_message.description.nil? || ma.forge_message.description == "" %>
描述:
<%= ma.forge_message.description.html_safe %>
<% end %>
- 截止时间快到了!
- <%= time_tag(ma.created_at).html_safe %>
<% else %>
-
<%=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" %>
"><%= ma.forge_message.tracker_id == 5 ? "发布了周报:":"指派了问题给你:"%>
-
<%= link_to ma.forge_message.subject, issue_path(:id => ma.forge_message.id), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
主题:<%= ma.forge_message.subject %>
<% unless ma.forge_message.description.nil? || ma.forge_message.description == "" %>
描述:
<%= ma.forge_message.description.html_safe %>
<% end %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% end %>
<% if ma.forge_message_type == "Journal" %>
-
<%=link_to image_tag(url_to_avatar(ma.forge_message.user), :width => "30", :height => "30"), user_path(ma.forge_message.user) %>
-
<%=link_to ma.forge_message.user, user_path(ma.forge_message.user), :class => "newsBlue homepageNewsPublisher" %>
">
更新了问题状态:
-
<%= link_to ma.forge_message.journalized.subject,
issue_path(:id => ma.forge_message.journalized_id), :class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover =>"message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
问题标题:<%= ma.forge_message.journalized.subject %>
更新内容:
<%= get_issue_des_update(ma.forge_message).html_safe %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% if ma.forge_message_type == "Message" %>
- <%=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" %>
"><%= ma.forge_message.parent_id.nil? ? "发布了项目帖子:" : "评论了项目帖子:" %>
<% if ma.forge_message.parent_id.nil? %>
-
<%= link_to ma.forge_message.subject, project_boards_path(ma.forge_message.project,
:parent_id => ma.forge_message.parent_id ? ma.forge_message.parent_id : ma.forge_message.id,
:topic_id => ma.forge_message.id), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
主题:<%= ma.forge_message.subject %>
<% unless ma.forge_message.content.nil? %>
内容:
<%= ma.forge_message.content.html_safe %>
<% end %>
<% else %>
-
<%= link_to ma.forge_message.subject, project_boards_path(ma.forge_message.project,
:parent_id => ma.forge_message.parent_id ? ma.forge_message.parent_id : ma.forge_message.id,
:topic_id => ma.forge_message.id), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
帖子主题:<%= ma.forge_message.subject %>
<% unless ma.forge_message.content.nil? %>
评论内容:
<%= ma.forge_message.content.html_safe %>
<% end %>
<% end %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% if ma.forge_message_type == "News" %>
-
<%=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.title.html_safe}"), {:controller => 'news', :action => 'show', :id => ma.forge_message.id},
:class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
标题:<%= ma.forge_message.title %>
<% unless ma.forge_message.description.nil? %>
内容:
<%= ma.forge_message.description.html_safe %>
<% end %>
- <%= time_tag(ma.created_at).html_safe %>
<% 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"}",
:onmouseover => "message_titile_show($(this),event)",
:onmouseout => "message_titile_hide($(this))" %>
新闻标题:<%= ma.forge_message.commented.title %>
评论内容:
<%= ma.forge_message.comments.html_safe %>
- <%= time_tag(ma.created_at).html_safe %>
<% end %>
<% end %>