parent
8cd3dd0287
commit
2e3ff531f6
|
@ -303,27 +303,27 @@ module WelcomeHelper
|
||||||
str << content_tag("span", "发表了") <<
|
str << content_tag("span", "发表了") <<
|
||||||
content_tag("span", find_all_event_type(event)) <<
|
content_tag("span", find_all_event_type(event)) <<
|
||||||
': '.html_safe <<
|
': '.html_safe <<
|
||||||
link_to(truncate(strip_tags(event.event_description).gsub(/ /,''), length: 30, omission:'...'), event.event_url)
|
link_to(strip_tags(event.event_description).gsub(/ /,''), event.event_url)
|
||||||
when 'issue', 'message' , 'bid' , 'wiki-page' , 'document'
|
when 'issue', 'message' , 'bid' , 'wiki-page' , 'document'
|
||||||
str << content_tag("span", "发表了") <<
|
str << content_tag("span", "发表了") <<
|
||||||
content_tag("span", find_all_event_type(event)) <<
|
content_tag("span", find_all_event_type(event)) <<
|
||||||
': '.html_safe <<
|
': '.html_safe <<
|
||||||
link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url)
|
link_to(event.event_title, event.event_url)
|
||||||
when 'reply' ,'Reply', 'Memo'
|
when 'reply' ,'Reply', 'Memo'
|
||||||
str << content_tag("span", "发表了") <<
|
str << content_tag("span", "发表了") <<
|
||||||
content_tag("span", find_all_event_type(event)) <<
|
content_tag("span", find_all_event_type(event)) <<
|
||||||
': '.html_safe <<
|
': '.html_safe <<
|
||||||
link_to(truncate(strip_tags(event.event_description).gsub(/ /,''), length: 30, omission:'...'), event.event_url)
|
link_to(strip_tags(event.event_description).gsub(/ /,''), event.event_url)
|
||||||
when 'attachment'
|
when 'attachment'
|
||||||
str << content_tag('span', '上传了') <<
|
str << content_tag('span', '上传了') <<
|
||||||
content_tag('span', find_all_event_type(event)) <<
|
content_tag('span', find_all_event_type(event)) <<
|
||||||
': '.html_safe <<
|
': '.html_safe <<
|
||||||
link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url) <<
|
link_to(event.event_title, event.event_url) <<
|
||||||
link_to((' ['.html_safe+l(:label_downloads_list).to_s << ']'), project_files_path(event.container.project), :class => "attachments_list_color")
|
link_to((' ['.html_safe+l(:label_downloads_list).to_s << ']'), project_files_path(event.container.project), :class => "attachments_list_color")
|
||||||
else
|
else
|
||||||
str << content_tag("span", "更新了") <<
|
str << content_tag("span", "更新了") <<
|
||||||
content_tag("span", find_all_event_type(event)) <<
|
content_tag("span", find_all_event_type(event)) <<
|
||||||
': '.html_safe << link_to(truncate(event.event_title, length: 30, omission:'...'), event.event_url)
|
': '.html_safe << link_to(event.event_title, event.event_url)
|
||||||
end
|
end
|
||||||
str
|
str
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
|
|
|
@ -189,7 +189,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="padding-bottom: 8px">
|
<div style="padding-bottom: 8px">
|
||||||
<% if @course.description && @course.description.size>0 %>
|
<% if @course.description && @course.description.lstrip.rstrip.size>0 %>
|
||||||
<div class="font_lighter_sidebar" style="word-break:break-all; word-wrap:break-word;">
|
<div class="font_lighter_sidebar" style="word-break:break-all; word-wrap:break-word;">
|
||||||
|
|
||||||
<%= textilizable @course.description %>
|
<%= textilizable @course.description %>
|
||||||
|
|
|
@ -75,9 +75,7 @@
|
||||||
</span>
|
</span>
|
||||||
<div class="d-p-projectlist-box">
|
<div class="d-p-projectlist-box">
|
||||||
<ul class="d-p-projectlist">
|
<ul class="d-p-projectlist">
|
||||||
<% #projects = find_miracle_project(10, 3) %>
|
|
||||||
<% @projects.map do |project| %>
|
<% @projects.map do |project| %>
|
||||||
<!--<%# cache cache_key_for_project(project) do %> -->
|
|
||||||
<li style="overflow:auto;word-break:break-all;height:100%;word-wrap: break-word;" class='<%= cycle("odd", "even") %>'>
|
<li style="overflow:auto;word-break:break-all;height:100%;word-wrap: break-word;" class='<%= cycle("odd", "even") %>'>
|
||||||
<div style="float: left;">
|
<div style="float: left;">
|
||||||
<%= image_tag(get_project_avatar(project), :class => "avatar-4") %>
|
<%= image_tag(get_project_avatar(project), :class => "avatar-4") %>
|
||||||
|
@ -122,7 +120,7 @@
|
||||||
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
|
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="inner-right" style="float: right; width:86%; height: 100%; ">
|
<div class="inner-right" style="float: right; width:86%; height: 100%; overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" >
|
||||||
<span style="color: green;">
|
<span style="color: green;">
|
||||||
<%= link_to event.event_author, (user_path(event.event_author) if event.event_author),
|
<%= link_to event.event_author, (user_path(event.event_author) if event.event_author),
|
||||||
:style => "color:green;", :target => "_blank" %>
|
:style => "color:green;", :target => "_blank" %>
|
||||||
|
|
|
@ -1634,7 +1634,7 @@ zh:
|
||||||
label_issue_cancel_query: 取消查询
|
label_issue_cancel_query: 取消查询
|
||||||
field_reward_type: 奖励类型
|
field_reward_type: 奖励类型
|
||||||
label_tags_no: 暂无标签!
|
label_tags_no: 暂无标签!
|
||||||
label_course_description_no: 你还未对该课程添加描述!
|
label_course_description_no: 该课程未添加描述!
|
||||||
label_bid_publish: 发布了
|
label_bid_publish: 发布了
|
||||||
label_bid_project: 项目
|
label_bid_project: 项目
|
||||||
label_project_no_follow: 该项目暂未被关注!
|
label_project_no_follow: 该项目暂未被关注!
|
||||||
|
|
Loading…
Reference in New Issue