|
|
|
@ -36,7 +36,13 @@
|
|
|
|
|
<%= image_tag '/images/transparent.png', size: "75x75" %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="welcome_left" id="welcome_left">
|
|
|
|
|
<span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %><%= l(:label_welcome_trustie_project) %></span> <span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_project_description) %></span>
|
|
|
|
|
<span class="" style="font-weight: bold; font-size: 18px; color: #e8770d;display: inline-block; margin-top: 5px;">
|
|
|
|
|
micROS多态智能集群机器人操作系统
|
|
|
|
|
</span>
|
|
|
|
|
<br/>
|
|
|
|
|
<span class="" style="font-weight:bold; font-size:18px;color:#15bccf; display:inline-block; margin-top:5px;">
|
|
|
|
|
中国开源社区
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search-bar" id="search-bar">
|
|
|
|
|
<%= render :partial => "search_project", :locals => {:project_type => 0}%>
|
|
|
|
@ -54,7 +60,6 @@
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% projects = find_miracle_project(10, 3) %>
|
|
|
|
|
<% projects.map do |project| %>
|
|
|
|
|
<% cache cache_key_for_project(project) do %>
|
|
|
|
|
<li style="position:relative;height:6em;" class='<%= cycle("odd", "even") %>'>
|
|
|
|
|
<div style="float: left;">
|
|
|
|
|
<%= image_tag(get_project_avatar(project), :class => "avatar-4") %>
|
|
|
|
@ -75,7 +80,6 @@
|
|
|
|
|
:id => "tooltip-#{project.id}" %>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end; reset_cycle %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
@ -83,12 +87,11 @@
|
|
|
|
|
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
|
|
|
|
<ul class="user-welcome-message-list">
|
|
|
|
|
<h3 style="color: rgb(21, 188, 207)"><strong>用户动态</strong></h3>
|
|
|
|
|
<h3 style="color: rgb(21, 188, 207)"><strong>开发动态</strong></h3>
|
|
|
|
|
<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" %>
|
|
|
|
@ -99,7 +102,6 @@
|
|
|
|
|
<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>
|
|
|
|
@ -107,7 +109,6 @@
|
|
|
|
|
|
|
|
|
|
<div class="right" style="float: right; width: 48%; ">
|
|
|
|
|
<ul class="welcome-message-list">
|
|
|
|
|
<% cache 'forum_links' do %>
|
|
|
|
|
<div class="forum-topic" style="height: 25px; width: 98%; margin-left: 2px;">
|
|
|
|
|
<h3 style="color: rgb(21, 188, 207);">
|
|
|
|
|
<strong>贴吧动态</strong>
|
|
|
|
@ -115,11 +116,9 @@
|
|
|
|
|
<%= link_to "我要反馈" , suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%></h3>
|
|
|
|
|
<span style="margin-top: -30px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="welcome-box-list-new memo_activity">
|
|
|
|
|
<% topics = find_new_forum_topics(7) %>
|
|
|
|
|
<% topics.includes(:forum, :last_reply, :author).each do |topic|%>
|
|
|
|
|
<% cache cache_key_for_topic(topic) do %>
|
|
|
|
|
<li class="message-brief-intro">
|
|
|
|
|
<div class='memo_title text_nowrap'>
|
|
|
|
|
<%= link_to '['+topic.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %><%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url,title: topic.subject %>
|
|
|
|
@ -139,7 +138,6 @@
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %> <!-- cache -->
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</ul>
|
|
|
|
@ -147,4 +145,4 @@
|
|
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
|
|
<%= render partial: 'link_to_another' %>
|
|
|
|
|
<%= render partial: 'link_to_another' %>
|
|
|
|
|