个人主页新增新建“课堂”、“实训”、“实训课程”、“项目”入口

dev_haigong
杨树明 6 years ago
parent ff98ef9463
commit 6c599e362e

@ -15,6 +15,33 @@
<div class="educontent"> <div class="educontent">
<!--我的课堂--> <!--我的课堂-->
<div class="square-list clearfix"> <div class="square-list clearfix">
<!--课堂新建入口-->
<div class="square-Item">
<div class="substance substancepad" >
<a href="/courses/new">
<div class="substancenenew">
<div class="leftten"></div>
<div class="topten"></div>
</div>
</a>
</div>
<div class="edu-txt-center course-bottom">
<div class="inline color-grey-6">
<span class="fl ml10 mr10 squareIconSpan substancefont">
新建课堂
</span>
</div>
</div>
</div>
<%#= render :partial => "users/course_item", :locals => {:objects => @objects} %> <%#= render :partial => "users/course_item", :locals => {:objects => @objects} %>
<% @objects.each do |object| %> <% @objects.each do |object| %>
<% allow_visit = @show_all || object.is_public == 1 || User.current.member_of_course?(object) %> <% allow_visit = @show_all || object.is_public == 1 || User.current.member_of_course?(object) %>

@ -15,6 +15,33 @@
<div class="educontent"> <div class="educontent">
<!--我的项目--> <!--我的项目-->
<div class="square-list clearfix"> <div class="square-list clearfix">
<!--新建项目新建入口-->
<div class="square-Item">
<div class="substance substancepad" >
<a href="/projects/new">
<div class="substancenenew">
<div class="leftten"></div>
<div class="topten"></div>
</div>
</a>
</div>
<div class="edu-txt-center course-bottom">
<div class="inline color-grey-6">
<span class="fl ml10 mr10 squareIconSpan substancefont">
新建项目
</span>
</div>
</div>
</div>
<% @objects.each do |object| %> <% @objects.each do |object| %>
<% allow_visit = object.is_public || User.current.admin? || User.current.member_of?(object) %> <% allow_visit = object.is_public || User.current.admin? || User.current.member_of?(object) %>
<div class="square-Item" onclick="open_project(<%= object.id %>, <%= allow_visit %>)" style="cursor: pointer;"> <div class="square-Item" onclick="open_project(<%= object.id %>, <%= allow_visit %>)" style="cursor: pointer;">

@ -34,6 +34,34 @@
<div class="educontent"> <div class="educontent">
<!--我的实训--> <!--我的实训-->
<div class="square-list clearfix"> <div class="square-list clearfix">
<!--实训新建入口-->
<div class="square-Item">
<div class="substance substancepad" >
<a href="/shixuns/new">
<div class="substancenenew">
<div class="leftten"></div>
<div class="topten"></div>
</div>
</a>
</div>
<div class="edu-txt-center course-bottom">
<div class="inline color-grey-6">
<span class="fl ml10 mr10 squareIconSpan substancefont">
新建实训
</span>
</div>
</div>
</div>
<% @objects.each do |object| %> <% @objects.each do |object| %>
<div class="square-Item"> <div class="square-Item">
<% if object.tag_repertoires.first.present? %> <% if object.tag_repertoires.first.present? %>

@ -22,6 +22,34 @@
<div class="educontent"> <div class="educontent">
<!--我的实训路径--> <!--我的实训路径-->
<div class="square-list clearfix"> <div class="square-list clearfix">
<!--实训路径新建入口-->
<div class="square-Item">
<div class="substance substancepad" >
<a href="/paths/new">
<div class="substancenenew">
<div class="leftten"></div>
<div class="topten"></div>
</div>
</a>
</div>
<div class="edu-txt-center course-bottom">
<div class="inline color-grey-6">
<span class="fl ml10 mr10 squareIconSpan substancefont">
新建实训课程
</span>
</div>
</div>
</div>
<% @objects.each_with_index do |object, index| %> <% @objects.each_with_index do |object, index| %>
<div class="square-Item"> <div class="square-Item">
<% if object.status < 2 && !User.current.member_of_subject?(object) %> <% if object.status < 2 && !User.current.member_of_subject?(object) %>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save