|
|
|
@ -31,7 +31,7 @@
|
|
|
|
|
<div class="main-content-bar" id="main-content-bar">
|
|
|
|
|
<div style="float: left;padding-left:15px ">
|
|
|
|
|
<!-- <#%= image_tag(get_project_avatar(@first_page), size: "75x75") %> -->
|
|
|
|
|
<% if @enterprise.nil? %>
|
|
|
|
|
<% if @organization.nil? %>
|
|
|
|
|
<% if get_avatar?(@first_page) %>
|
|
|
|
|
<%= image_tag(url_to_avatar(@first_page), width:@first_page.image_width,height: @first_page.image_height) %>
|
|
|
|
|
<% else %>
|
|
|
|
@ -41,16 +41,19 @@
|
|
|
|
|
<%= image_tag '/images/avatars/Project/0', width:@first_page.image_width,height: @first_page.image_height %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="welcome_left" id="welcome_left">
|
|
|
|
|
<% if @enterprise.nil? %>
|
|
|
|
|
<div class="welcome_left" id="welcome_left" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
|
|
|
|
|
<% if @organization.nil? %>
|
|
|
|
|
<% unless @first_page.nil? %>
|
|
|
|
|
<%= @first_page.description.html_safe %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
|
|
<span class="font_welcome_school" style="color: #E8770D"> <%= link_to @enterprise, options={:action => 'index', :enterprise => @enterprise}, html_options={ :method => 'get', :style => "color: #E8770D"} %> </span>
|
|
|
|
|
<br/>
|
|
|
|
|
<span class="font_welcome_trustie"> <%= @first_page.title %> </span>
|
|
|
|
|
<span class="font_welcome_school" style="color: #E8770D">
|
|
|
|
|
<%= link_to @organization, options={:action => 'index', :enterprise => @organization}, html_options={ :method => 'get', :style => "color: #E8770D"} %>
|
|
|
|
|
</span>
|
|
|
|
|
<br/>
|
|
|
|
|
<span class="font_welcome_trustie">
|
|
|
|
|
<%= @first_page.title %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search-bar" id="search-bar">
|
|
|
|
@ -77,7 +80,7 @@
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<!-- 如果企业版参数正确,这进入企业版页面 -->
|
|
|
|
|
<% if @originization.nil? %>
|
|
|
|
|
<% if @organization.nil? %>
|
|
|
|
|
<% @projects.map do |project| %>
|
|
|
|
|
<%= render :partial => 'hot_projects_list', :locals => {:project => project} %>
|
|
|
|
|
<% end; reset_cycle %>
|
|
|
|
@ -89,7 +92,7 @@
|
|
|
|
|
<%= render :partial => 'hot_projects_list', :locals => {:project => project} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif @e_count < 10 %>
|
|
|
|
|
<% @originization_projects.map do |project| %>
|
|
|
|
|
<% @organization_projects.map do |project| %>
|
|
|
|
|
<%= render :partial => 'hot_projects_list', :locals => {:project => project} %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p id="errorExplanation"><%= l(:label_part_enterprise_tips) %></p>
|
|
|
|
|