parent
a98678e001
commit
fc36e4c01e
@ -0,0 +1,36 @@
|
|||||||
|
<div class="resources mt10">
|
||||||
|
<div class="function-row">
|
||||||
|
<input type="text" placeholder="搜索" class="teacher-list-search fl" />
|
||||||
|
<a href="javascript:void(0);" class="teacher-search-icon fl"></a>
|
||||||
|
<select class="teacher-search-type fr">
|
||||||
|
<option>课程数</option>
|
||||||
|
<option>学生数</option>
|
||||||
|
<option>资源数</option>
|
||||||
|
</select>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<div class="teacher-list-row">
|
||||||
|
<div>
|
||||||
|
<div class="teacher-avatar"><img src="images/homepageImage.jpg" width="90" height="90" /></div>
|
||||||
|
<div class="fl">
|
||||||
|
<div class="ml25 mb20"><span class="teacher-name">尹刚</span><span class="f12 fontGrey2 mr15">国防科学技术大学</span><span class="f12 fontGrey2">教授</span></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num">6000</div>
|
||||||
|
<div class="block-title">课程数</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-slice"></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num">500</div>
|
||||||
|
<div class="block-title">学生数</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-slice"></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num">8000</div>
|
||||||
|
<div class="block-title">资源数</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" class="fr teacher-select">添加</a>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,45 @@
|
|||||||
|
<div class="resources mt10">
|
||||||
|
<div class="function-row">
|
||||||
|
<input type="text" placeholder="搜索" class="teacher-list-search fl" />
|
||||||
|
<a href="javascript:void(0);" class="teacher-search-icon fl"></a>
|
||||||
|
<select class="teacher-search-type fr">
|
||||||
|
<option>课程数</option>
|
||||||
|
<option>学生数</option>
|
||||||
|
<option>资源数</option>
|
||||||
|
</select>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% @org_teachers.each do |org_teacher| %>
|
||||||
|
<% school = School.where("id =?", org_teacher.school_id).first %>
|
||||||
|
<div class="teacher-list-row">
|
||||||
|
<div>
|
||||||
|
<div class="teacher-avatar"><img src="images/homepageImage.jpg" width="90" height="90" /></div>
|
||||||
|
<div class="fl">
|
||||||
|
<div class="ml25 mb20"><span class="teacher-name"><%= org_teacher.try(:realname).nil? ? org_teacher.try(:login) : org_teacher.try(:realname) %></span>
|
||||||
|
<% unless school.nil? %>
|
||||||
|
<span class="f12 fontGrey2 mr15"><%= school.name %></span>
|
||||||
|
<% end %>
|
||||||
|
<% unless org_teacher.nil? %>
|
||||||
|
<span class="f12 fontGrey2"><%= org_teacher.technical_title %></span></div>
|
||||||
|
<% end %>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num"><%= User.current.courses.count %></div>
|
||||||
|
<div class="block-title">课程数</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-slice"></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num">500</div>
|
||||||
|
<div class="block-title">学生数</div>
|
||||||
|
</div>
|
||||||
|
<div class="block-slice"></div>
|
||||||
|
<div class="teacher-social-block">
|
||||||
|
<div class="block-num">8000</div>
|
||||||
|
<div class="block-title">资源数</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="javascript:void(0);" class="fr teacher-select">添加</a>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -1,69 +1,77 @@
|
|||||||
<%= javascript_include_tag "jquery.infinitescroll.js" %>
|
<% if !params[:org_subfield_id].nil? && @org_subfield.field_type == "Compstu" %>
|
||||||
|
<%= render 'organizations/show_students', :field => @org_subfield %>
|
||||||
|
<% elsif !params[:org_subfield_id].nil? && @org_subfield.field_type == "Comptec" %>
|
||||||
|
<%= render 'organizations/show_teachers', :field => @org_subfield %>
|
||||||
|
<% else %>
|
||||||
|
<%= javascript_include_tag "jquery.infinitescroll.js" %>
|
||||||
|
|
||||||
<%= content_for(:header_tags) do %>
|
<%= content_for(:header_tags) do %>
|
||||||
<%= import_ke(enable_at: false, prettify: false, init_activity: true) %>
|
<%= import_ke(enable_at: false, prettify: false, init_activity: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if params[:show_homepage].nil? and User.current.logged? %>
|
<% if params[:show_homepage].nil? and User.current.logged? %>
|
||||||
<div class="homepageRightBanner">
|
<div class="homepageRightBanner">
|
||||||
<div class="NewsBannerName"><%= @org_subfield.nil? ? "最新动态":"#{@org_subfield.name}" %></div>
|
<div class="NewsBannerName"><%= @org_subfield.nil? ? "最新动态":"#{@org_subfield.name}" %></div>
|
||||||
<% if params[:org_subfield_id].nil? %>
|
<% if params[:org_subfield_id].nil? %>
|
||||||
<ul class="resourcesSelect">
|
<ul class="resourcesSelect">
|
||||||
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
||||||
<ul class="homepagePostType">
|
<ul class="homepagePostType">
|
||||||
<li>
|
<li>
|
||||||
<ul class="homepagePostTypeHomework fl">
|
<ul class="homepagePostTypeHomework fl">
|
||||||
<li class="f14">课程动态</li>
|
<li class="f14">课程动态</li>
|
||||||
<li><%= link_to "作业动态", {:controller => "organizations", :action => "show", :type => "course_homework"}, :class => "homepagePostTypeAssignment postTypeGrey"%>
|
<li><%= link_to "作业动态", {:controller => "organizations", :action => "show", :type => "course_homework"}, :class => "homepagePostTypeAssignment postTypeGrey"%>
|
||||||
<!--<a href="javascript:void(0);" class="homepagePostTypeAssignment postTypeGrey">作业动态</a>--></li>
|
<!--<a href="javascript:void(0);" class="homepagePostTypeAssignment postTypeGrey">作业动态</a>--></li>
|
||||||
<li><%= link_to "通知动态", {:controller => "organizations", :action => "show", :type => "course_news"}, :class => "homepagePostTypeNotice postTypeGrey"%>
|
<li><%= link_to "通知动态", {:controller => "organizations", :action => "show", :type => "course_news"}, :class => "homepagePostTypeNotice postTypeGrey"%>
|
||||||
<!--<li><a href="javascript:void(0);" class="homepagePostTypeNotice postTypeGrey">通知动态</a></li>-->
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeNotice postTypeGrey">通知动态</a></li>-->
|
||||||
<li><%= link_to "论坛动态", {:controller => "organizations", :action => "show", :type => "course_message"}, :class => "homepagePostTypeForum postTypeGrey"%>
|
<li><%= link_to "论坛动态", {:controller => "organizations", :action => "show", :type => "course_message"}, :class => "homepagePostTypeForum postTypeGrey"%>
|
||||||
<li><%= link_to "问卷动态", {:controller => "organizations", :action => "show", :type => "course_poll"}, :class => "homepagePostTypeQuiz postTypeGrey"%>
|
<li><%= link_to "问卷动态", {:controller => "organizations", :action => "show", :type => "course_poll"}, :class => "homepagePostTypeQuiz postTypeGrey"%>
|
||||||
<!--<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
|
||||||
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuiz postTypeGrey">问卷动态</a></li>-->
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuiz postTypeGrey">问卷动态</a></li>-->
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ul class="homepagePostTypeProject fl">
|
<ul class="homepagePostTypeProject fl">
|
||||||
<li class="f14">项目动态</li>
|
<li class="f14">项目动态</li>
|
||||||
<li><%= link_to "问题动态", {:controller => "organizations", :action => "show", :type => "project_issue"}, :class => "homepagePostTypeQuestion postTypeGrey"%>
|
<li><%= link_to "问题动态", {:controller => "organizations", :action => "show", :type => "project_issue"}, :class => "homepagePostTypeQuestion postTypeGrey"%>
|
||||||
<li><%= link_to "论坛动态", {:controller => "organizations", :action => "show", :type => "project_message"}, :class => "homepagePostTypeForum postTypeGrey"%>
|
<li><%= link_to "论坛动态", {:controller => "organizations", :action => "show", :type => "project_message"}, :class => "homepagePostTypeForum postTypeGrey"%>
|
||||||
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuestion postTypeGrey">问题动态</a></li>
|
<!--<li><a href="javascript:void(0);" class="homepagePostTypeQuestion postTypeGrey">问题动态</a></li>
|
||||||
<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
|
<li><a href="javascript:void(0);" class="homepagePostTypeForum postTypeGrey">论坛动态</a></li>-->
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ul class="homepagePostTypeProject fl">
|
<ul class="homepagePostTypeProject fl">
|
||||||
<li class="f14">更多</li>
|
<li class="f14">更多</li>
|
||||||
<li class="mt-4"><%= link_to "组织动态", {:controller => "organizations", :action => "show", :type => "org"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
|
<li class="mt-4"><%= link_to "组织动态", {:controller => "organizations", :action => "show", :type => "org"}, :class =>"homepagePostTypeMessage postTypeGrey"%>
|
||||||
<li class="mt-4"><%= link_to "全部动态", {:controller => "organizations", :action => "show", :type => nil}, :class =>"homepagePostTypeAll postTypeGrey"%>
|
<li class="mt-4"><%= link_to "全部动态", {:controller => "organizations", :action => "show", :type => nil}, :class =>"homepagePostTypeAll postTypeGrey"%>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
<% end %>
|
||||||
</ul>
|
</div>
|
||||||
</li>
|
<% end %>
|
||||||
</ul>
|
<% if !@organization.home_id.nil? and OrgDocumentComment.where("id = ?", @organization.home_id).count > 0 and params[:org_subfield_id].nil? %>
|
||||||
<% end %>
|
<script>
|
||||||
</div>
|
$(function() {
|
||||||
<% end %>
|
sd_create_editor_from_data(<%= OrgActivity.where("org_act_type = 'OrgDocumentComment' and org_act_id =?",@organization.home_id).first.id %>, null, "100%", 'OrgActivity');
|
||||||
<% if !@organization.home_id.nil? and OrgDocumentComment.where("id = ?", @organization.home_id).count > 0 and params[:org_subfield_id].nil? %>
|
});
|
||||||
<script>
|
</script>
|
||||||
$(function() {
|
<% act = OrgActivity.where("org_act_type = 'OrgDocumentComment' and org_act_id =?", @organization.home_id).first %>
|
||||||
sd_create_editor_from_data(<%= OrgActivity.where("org_act_type = 'OrgDocumentComment' and org_act_id =?",@organization.home_id).first.id %>, null, "100%", 'OrgActivity');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<% act = OrgActivity.where("org_act_type = 'OrgDocumentComment' and org_act_id =?", @organization.home_id).first %>
|
|
||||||
<%= render :partial => 'show_home_page', :locals => {:document => OrgDocumentComment.find(@organization.home_id), :home_id => @organization.home_id, :act => act} %>
|
<%= render :partial => 'show_home_page', :locals => {:document => OrgDocumentComment.find(@organization.home_id), :home_id => @organization.home_id, :act => act} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @org_activities %>
|
<% if @org_activities %>
|
||||||
<%= render :partial => 'organizations/org_activities',
|
<%= render :partial => 'organizations/org_activities',
|
||||||
:locals => {:org_activities => @org_activities,
|
:locals => {:org_activities => @org_activities,
|
||||||
:page=> @page,
|
:page=> @page,
|
||||||
:org => @organization,
|
:org => @organization,
|
||||||
:org_act_count=> @org_activities.count} %>
|
:org_act_count=> @org_activities.count} %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in new issue