|
|
|
@ -56,8 +56,15 @@
|
|
|
|
|
<div style="clear:both"></div>
|
|
|
|
|
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
|
|
|
|
<h3 style="margin-left: 5px; color: #e8770d;"><strong>热门项目</strong></h3>
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", { :controller => 'projects', :action => 'index', :project_type => 0, :host => Setting.project_domain}, :target => "_blank" %></span>
|
|
|
|
|
<h3 style="margin-left: 5px; color: #e8770d;">
|
|
|
|
|
<strong>热门项目</strong>
|
|
|
|
|
</h3>
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;">
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type =>( @project_type||=0)}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= link_to l(:label_more), { :controller => 'projects', :action => 'index', :project_type => 0, :host => Setting.project_domain}, :target => "_blank" %></span>
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% #projects = find_miracle_project(10, 3) %>
|
|
|
|
@ -98,20 +105,20 @@
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", { :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>
|
|
|
|
|
<% 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%; ">
|
|
|
|
|
<span style="color: green;"><%= link_to event.event_author, (user_path(event.event_author) if event.event_author), :style => "color:green;", :target => "_blank" %></span><%= show_user_content event %>
|
|
|
|
|
<p style="margin-top: 4px;"><span style="color: rgb(172, 174, 177)"><%= l(:field_updated_on) %><%= time_tag_welcome event.event_datetime %>前</span> <span style="float: right; color: rgb(172, 174, 177);"><%= show_event_reply event %></span></p>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<!--<%#end %> --><!-- cache -->
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="inner-right" style="float: right; width:86%; height: 100%; ">
|
|
|
|
|
<span style="color: green;"><%= link_to event.event_author, (user_path(event.event_author) if event.event_author), :style => "color:green;", :target => "_blank" %></span><%= show_user_content event %>
|
|
|
|
|
<p style="margin-top: 4px;"><span style="color: rgb(172, 174, 177)"><%= l(:field_updated_on) %><%= time_tag_welcome event.event_datetime %>前</span> <span style="float: right; color: rgb(172, 174, 177);"><%= show_event_reply event %></span></p>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<!--<%#end %> --><!-- cache -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|