58 lines
3.3 KiB
Plaintext
58 lines
3.3 KiB
Plaintext
<div class="resources mt15">
|
||
<div class="homepagePostBrief" onmouseover="$('#act-<%=user_activity.id %>').css('visibility','visible')" onmouseout="$('.homepagePostSetting').css('visibility','hidden')">
|
||
<div class="homepagePostPortrait">
|
||
<%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %>
|
||
<!--<a href="javascript:void(0);"><img src="images/homepageImage.jpg" width="90" height="90" alt="用户头像"/></a>-->
|
||
</div>
|
||
<div class="homepagePostDes">
|
||
<div class="homepagePostTo"><!--<a href="javascript:void(0);" class="newsBlue mr15">尹教授</a>-->
|
||
<% if @ctivity.try(:author).try(:realname) == ' ' %>
|
||
<%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
||
<% else %>
|
||
<%= link_to activity.try(:author).try(:realname), user_path(activity.author_id), :class => "newsBlue mr15" %>
|
||
<% end %> TO
|
||
<%= link_to activity.course.name.to_s+"(课程名称)", course_path(activity.course), :class => "newsBlue ml15" %>
|
||
<!-- <a href="javascript:void(0);" class="newsBlue ml15"><%= activity.course.name %>(课程名称)</a>-->
|
||
</div>
|
||
<div class="homepagePostTitle">
|
||
<%=link_to activity.title.to_s+"(通知标题)", news_path(activity), :class=> "postGrey" %>
|
||
<!--<a href="javascript:void(0);" class="postGrey"><%= activity.title %>(通知标题)</a>--></div>
|
||
<div class="homepagePostSubmitContainer">
|
||
<div class="homepagePostDeadline">发布时间:<%= format_date(activity.created_on) %></div>
|
||
</div>
|
||
<div class="homepagePostIntro">(通知描述)<%= activity.description.html_safe %></div>
|
||
<div class="homepagePostSetting" id="act-<%=user_activity.id %>" style="visibility: hidden">
|
||
<ul>
|
||
<li class="homepagePostSettingIcon">
|
||
<ul class="homepagePostSettiongText">
|
||
<li><a href="javascript:void(0);" class="postOptionLink">编辑</a></li>
|
||
<li><a href="javascript:void(0);" class="postOptionLink">复制</a></li>
|
||
<li><a href="javascript:void(0);" class="postOptionLink">删除</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="cl"></div>
|
||
</div>
|
||
<div class="homepagePostReply">
|
||
<div class="homepagePostReplyBanner">
|
||
<div class="homepagePostReplyBannerCount">回复(<%=activity.comments_count %>)</div>
|
||
<div class="homepagePostReplyBannerTime"><%=format_date(activity.updated_on)%></div>
|
||
<div class="homepagePostReplyBannerMore"><a href="javascript:void(0);" class="replyGrey">点击展开更多回复</a>
|
||
</div>
|
||
</div>
|
||
<div class="homepagePostReplyInputContainer">
|
||
<textarea class="homepagePostReplyInput" placeholder="请输入回复"></textarea>
|
||
</div>
|
||
<div class="homepagePostReplyInputContainer">
|
||
<div class="homepagePostReplyEmotion"><a href="javascript:void(0);" class="replyGrey">表情</a></div>
|
||
<div class="homepagePostReplyCancel"><a href="javascript:void(0);" class="postReplyCancel">取消</a>
|
||
</div>
|
||
<div class="homepagePostReplySubmit"><a href="javascript:void(0);" class="postReplySubmit">发送</a>
|
||
</div>
|
||
<div class="cl"></div>
|
||
</div>
|
||
|
||
</div>
|
||
</div> |