|
|
|
@ -39,21 +39,12 @@
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="course welcome_left" id="welcome_left">
|
|
|
|
|
<% if User.current.login? %>
|
|
|
|
|
<span class="font_welcome_school">
|
|
|
|
|
<% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %>
|
|
|
|
|
<span class="font_welcome_tdescription">,
|
|
|
|
|
<!--
|
|
|
|
|
edit by meng
|
|
|
|
|
@course_page.description存储在first_page表中的description字段
|
|
|
|
|
原本代码
|
|
|
|
|
<%= @course_page.description %>
|
|
|
|
|
!-->
|
|
|
|
|
<%= l(:label_welcome_trustie_course_description) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if @school_id == "0" %>
|
|
|
|
|
|
|
|
|
|
<% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if @school_id == "0" %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if @school_id.nil? %>
|
|
|
|
|
<%= link_to School.find(User.current.user_extensions.school.id).name, options={:action => 'course', :school_id => User.current.user_extensions.school.id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
|
|
|
|
|
<br/>
|
|
|
|
@ -61,10 +52,20 @@
|
|
|
|
|
<%= link_to School.find(@school_id).name, options={:action => 'course', :school_id => @school_id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
|
|
|
|
|
<br/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
<% unless @course_page.nil? %>
|
|
|
|
|
<span class="font_welcome_trustie">
|
|
|
|
|
<!--
|
|
|
|
|
edit by meng
|
|
|
|
|
@course_page.title存储在first_page表中的title字段
|
|
|
|
|
原本代码
|
|
|
|
|
<%= @course_page.title %>
|
|
|
|
|
!-->
|
|
|
|
|
<%= l(:label_welcome_trustie_course) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% unless @course_page.nil? %>
|
|
|
|
|
<span class="font_welcome_trustie">
|
|
|
|
|
<!--
|
|
|
|
|
edit by meng
|
|
|
|
@ -74,8 +75,18 @@
|
|
|
|
|
!-->
|
|
|
|
|
<%= l(:label_welcome_trustie_course) %>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span class="font_welcome_tdescription">,
|
|
|
|
|
<!--
|
|
|
|
|
edit by meng
|
|
|
|
|
@course_page.description存储在first_page表中的description字段
|
|
|
|
|
原本代码
|
|
|
|
|
<%= @course_page.description %>
|
|
|
|
|
!-->
|
|
|
|
|
<%= l(:label_welcome_trustie_course_description) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="search-bar" id="search-bar">
|
|
|
|
|
<%= render :partial => "search_project", :locals => {:project_type => Project::ProjectType_course} %>
|
|
|
|
|