#1414设置首页描述最小高度,且贴吧动态显示条数改为9条
This commit is contained in:
parent
9d91e85fe4
commit
205c78454f
|
@ -56,7 +56,9 @@
|
|||
|
||||
<div id="J_Slide" class="d-p-index-box d-p-index-hot">
|
||||
<h3 style="margin-left: 5px; color: #e8770d;">
|
||||
<strong><%= l(:lable_hot_projects)%></strong>
|
||||
<strong>
|
||||
<%= l(:lable_hot_projects)%>
|
||||
</strong>
|
||||
</h3>
|
||||
<span style="margin-top: -20px;float: right; display: block;">
|
||||
<% if User.current.logged? %>
|
||||
|
@ -83,14 +85,16 @@
|
|||
<!-- 上左下右 -->
|
||||
<div style="float: left; margin-left: 10px; width: 380px;">
|
||||
<% unless project.is_public %>
|
||||
<span class="private_project"><%= l(:label_private) %></span>
|
||||
<span class="private_project">
|
||||
<%= l(:label_private) %>
|
||||
</span>
|
||||
<% end %>
|
||||
<%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%>
|
||||
(<%= link_to "#{projectCount(project)}人", project_member_path(project) ,:course =>'0' %>)
|
||||
</div>
|
||||
<div style=" float: left;margin:5px; margin-left: 10px; width: 380px;">
|
||||
<div style=" float: left;margin:5px; margin-left: 10px; width: 380px;min-height: 42px;">
|
||||
<span class='font_lighter' title ='<%=project.short_description%>'>
|
||||
<%=project.description.truncate(100, omission: '...')%>
|
||||
<%=project.description.truncate(90, omission: '...')%>
|
||||
</span>
|
||||
</div>
|
||||
<div >
|
||||
|
@ -109,17 +113,21 @@
|
|||
|
||||
<div id="J_Slide" class="d-p-index-box d-p-index-Dynamic">
|
||||
<ul class="user-welcome-message-list">
|
||||
<h3 style="color: rgb(21, 188, 207)"><strong><%= l(:lable_user_active)%></strong></h3>
|
||||
<span style="margin-top: -20px;float: right; display: block;"><%= link_to l(:label_more), { :controller => 'users', :action => 'index'}, :target => "_blank" %></span>
|
||||
<h3 style="color: rgb(21, 188, 207)">
|
||||
<strong>
|
||||
<%= l(:lable_user_active)%>
|
||||
</strong>
|
||||
</h3>
|
||||
<span style="margin-top: -20px;float: right; display: block;">
|
||||
<%= link_to l(:label_more), { :controller => 'users', :action => 'index'}, :target => "_blank" %>
|
||||
</span>
|
||||
<div class="user-message-box-list" style="margin-top: 10px;">
|
||||
<%activities = find_all_activities%>
|
||||
<% activities.each do |event| %>
|
||||
<!--<%# cache cache_key_for_event(event) do %> -->
|
||||
<li style="display: block;height:60px; padding-bottom: 4px;">
|
||||
<div class="inner-right" style="float: left; height: 100%; ">
|
||||
<%= image_tag url_to_avatar(event.event_author), :class => "avatar-3" %>
|
||||
</div>
|
||||
|
||||
<div class="inner-right" style="float: right; width:86%; height: 100%; overflow: hidden;text-overflow: ellipsis;white-space: nowrap;" >
|
||||
<span style="color: green;">
|
||||
<%= link_to event.event_author, (user_path(event.event_author) if event.event_author),
|
||||
|
@ -148,14 +156,18 @@
|
|||
<!--<%# cache 'forum_links' do %> -->
|
||||
<div class="forum-topic" style="height: 25px; width: 98%; margin-left: 2px;">
|
||||
<h3 style="color: rgb(21, 188, 207);">
|
||||
<strong><%= l(:lable_bar_active)%></strong>
|
||||
<strong>
|
||||
<%= l(:lable_bar_active)%>
|
||||
</strong>
|
||||
<%= link_to l(:label_my_question) , newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
|
||||
<%= link_to l(:label_my_feedback) , suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
|
||||
</h3>
|
||||
<span style="margin-top: -30px;float: right; display: block;"><%= link_to l(:label_more), forums_path %></span>
|
||||
<span style="margin-top: -30px;float: right; display: block;">
|
||||
<%= link_to l(:label_more), forums_path %>
|
||||
</span>
|
||||
</div>
|
||||
<div class="welcome-box-list-new memo_activity">
|
||||
<% topics = find_new_forum_topics(7) %>
|
||||
<% topics = find_new_forum_topics(6) %>
|
||||
<% topics.includes(:forum, :last_reply, :author).each do |topic|%>
|
||||
<!--<%# cache cache_key_for_topic(topic) do %> -->
|
||||
<li class="message-brief-intro">
|
||||
|
|
Loading…
Reference in New Issue