课程首页添加新增课程按钮
This commit is contained in:
parent
535cf74f1f
commit
b88fdcefd8
|
@ -9,7 +9,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 8px"><a href="http://contest.trustie.net/">contest.trustie.net</td>
|
||||
<td style="padding-left: 8px"><a href="http://contest.trustie.net/">contest.trustie.net</a></td>
|
||||
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'welcome', :action => 'contest' %> > 详情</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -69,7 +69,6 @@
|
|||
<% else %>
|
||||
<!-- 竖排 -->
|
||||
<div id="praise_tread_<%= obj.id %>" style="float:right;">
|
||||
|
||||
<% @is_valuate = is_praise_or_tread(obj,user_id)%>
|
||||
<% if @is_valuate.size > 0 %> <!-- 评价过 1代表赞 0代表踩 -->
|
||||
<% @flag = @is_valuate.first.praise_or_tread %>
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<% if User.current.logged?%>
|
||||
<% if User.current.user_extensions.identity == 0 %>
|
||||
<%= link_to(l(:label_course_new), {:controller => 'courses', :action => 'new'},
|
||||
:class => 'icon icon-add') if User.current.allowed_to?(:add_course,nil, :global => true) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => school_id} %>
|
|
@ -85,7 +85,7 @@
|
|||
<%school_course=[]%>
|
||||
<% end %>
|
||||
<% if (school_course.count == 0) %>
|
||||
<span><%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %></span>
|
||||
<span><%= render :partial => 'more_course', :locals => {:school_id => nil}%></span>
|
||||
|
||||
<div class="d-p-projectlist-box">
|
||||
<ul class="d-p-projectlist">
|
||||
|
@ -103,11 +103,11 @@
|
|||
<% else %>
|
||||
<% if school_course.count < 10 %>
|
||||
<span>
|
||||
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %>
|
||||
<%= render :partial => 'more_course', :locals => {:school_id => nil}%>
|
||||
</span>
|
||||
<% else %>
|
||||
<span>
|
||||
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => @school_id} %>
|
||||
<%= render :partial => 'more_course', :locals => {:school_id => @school_id}%>
|
||||
</span>
|
||||
<% end %>
|
||||
<div class="d-p-projectlist-box">
|
||||
|
|
Loading…
Reference in New Issue