个人主页
This commit is contained in:
parent
11ae8c82d4
commit
8e3bc28fa2
|
@ -431,6 +431,15 @@ module UsersHelper
|
|||
# end
|
||||
# return false
|
||||
# end
|
||||
def get_activity_act_showname_htmlclear(activity)
|
||||
str = get_activity_act_showname(activity)
|
||||
str = str.gsub(/<.*>/,'')
|
||||
str = str.lstrip.rstrip
|
||||
if str == ''
|
||||
str = 'RE:'
|
||||
end
|
||||
return str.html_safe
|
||||
end
|
||||
def get_activity_act_showname(activity)
|
||||
case activity.act_type
|
||||
when "HomeworkCommon"
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
<% for rec in @list %>
|
||||
<div class="users_courses_list" nhname="rec" data-id="<%= rec[:item].id %>">
|
||||
<a href="<%= get_activity_container_url(rec[:e]) %>" class=" fl users_coursename ml5" title="<%= rec[:e].name %>">
|
||||
<li style="max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" class="fl"><%= rec[:e].name %></li>
|
||||
<span class="fl" style="width:180px;">
|
||||
<a href="<%= get_activity_container_url(rec[:e]) %>" class=" fl users_coursename ml5" title="<%= rec[:e].name %>">
|
||||
<%= rec[:e].name %>
|
||||
</a>
|
||||
<% if( rec[:e].is_public == false || rec[:e].is_public == 0 ) %>
|
||||
<span class="img_private">私有</span>
|
||||
<% end %>
|
||||
</a>
|
||||
<font class="img_private">私有</font>
|
||||
<% end %>
|
||||
</span>
|
||||
<a href="<%= user_path(rec[:item].user.id) %>" class="c_orange course_name fl mr5" title="<%= rec[:item].user.show_name %>"><%= rec[:item].user.show_name %></a>
|
||||
<span class="fl mr5 c_grey"><%= get_activity_opt(rec[:item],rec[:e]) %></span>
|
||||
<a href="<%= get_activity_url(rec[:item],rec[:e]) %>"
|
||||
class="c_blue02 fl users_courses_txt hidepic" title="<%= get_activity_act_showname(rec[:item]) %>">
|
||||
<%= get_activity_act_showname(rec[:item]).html_safe %>
|
||||
<%= get_activity_act_showname_htmlclear(rec[:item]) %>
|
||||
</a>
|
||||
<span class="fr c_grey mr10"><%= time_tag(get_activity_act_createtime(rec[:item])).html_safe %></span>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
<div class="courses_list_pic fl ml10 mr10">
|
||||
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>"><%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %></a>
|
||||
</div>
|
||||
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
||||
<span class="fl" style="width:260px;">
|
||||
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
||||
</span>
|
||||
<div class="fl c_dgrey">
|
||||
<p>主讲老师:<a href="<%= user_path(item.teacher) %>" title="<%= item.teacher.show_name %>"><%= item.teacher.show_name %></a></p>
|
||||
<p>课程作业:<a href="<%=url_for(:controller => 'homework_common', :action => 'index',:course=>item.id, :host=>Setting.host_course)%>"><%= item.homework_commons.count %></a> <span class="ml10"></span>成员:<%= item.members.count %></p>
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
<div class="courses_list_pic fl ml10 mr10">
|
||||
<a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>"><%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %></a>
|
||||
</div>
|
||||
<a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
||||
<span class="fl" style="width:260px;">
|
||||
<a href="<%= url_for(:controller => 'projects', :action=>"show", :id=>item.id, :host=>Setting.host_name) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
||||
</span>
|
||||
<div class="fl c_dgrey">
|
||||
<!--<p>项目评分:<a href="<%#= url_for(:controller => 'projects', :action => 'show_projects_score', :id => item.id,:host=>Setting.host_name) %>" data-remote="true"><%#= format( "%.2f" , project_scores(item) ).to_i %></a></p>-->
|
||||
<p>项目评分:<a href="<%= url_for(:controller => 'projects', :action => 'show_projects_score', :id => item.id) %>" data-remote="true"><%= format( "%.2f" , project_scores(item) ).to_i %></a></p>
|
||||
|
|
|
@ -34,10 +34,10 @@ a:hover.icon_face{background:url(../images/public_icon.png) -79px -671px no-repe
|
|||
/*课程动态*/
|
||||
.line_box{ width:728px; border:1px solid #d9d9d9; padding-bottom:10px;}
|
||||
.users_courses_list{ height:24px; border-bottom:1px dashed #CCC; margin-bottom:10px;}
|
||||
.users_coursename{width:180px; font-weight:bold; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; margin-right:5px; }
|
||||
.users_coursename{max-width:135px; font-weight:bold; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; margin-right:5px; }
|
||||
.course_name{max-width:60px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
.c_grey{ color:#8d8d8d;}
|
||||
.users_courses_txt{width:330px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
.users_courses_txt{max-width:330px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
.users_top{ height:39px; border-bottom:1px solid #d9d9d9; margin-bottom:10px;}
|
||||
.users_h4{border-bottom:1px solid #d9d9d9; height:29px; padding:10px 0 0 10px; margin-bottom:10px; }
|
||||
/*弹框*/
|
||||
|
@ -106,7 +106,7 @@ a:hover.c_lgrey{ color:#3ca5c6;}
|
|||
.leftbox_ul_left li,.leftbox_ul_right li{ margin-bottom:5px;}
|
||||
.c_dgrey{ color:#696969;}
|
||||
.home_courses_list{ width:364px; margin-bottom:10px; }
|
||||
.home_list_title{ width:260px; font-size:14px; font-weight:bold;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
.home_list_title{ max-width:260px; font-size:14px; font-weight:bold;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
.users_list{ }
|
||||
.users_course_intro{ width:530px;overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||
|
||||
|
|
Loading…
Reference in New Issue