Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
a240a2785f
|
@ -72,7 +72,7 @@ class NewsController < ApplicationController
|
||||||
|
|
||||||
@news_count = scope.count
|
@news_count = scope.count
|
||||||
@q = params[:subject]
|
@q = params[:subject]
|
||||||
if params[:subject].nil?
|
if params[:subject].nil? || params[:subject].blank?
|
||||||
scope_order = scope.all(:include => [:author, :course],
|
scope_order = scope.all(:include => [:author, :course],
|
||||||
:order => "#{News.table_name}.created_on DESC")
|
:order => "#{News.table_name}.created_on DESC")
|
||||||
else
|
else
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<img src="/images/pic_del.gif" width="11" height="12" alt="删除班级" title="删除该班级" />
|
<img src="/images/pic_del.gif" width="11" height="12" alt="删除班级" title="删除该班级" />
|
||||||
</a>
|
</a>
|
||||||
<% end%>
|
<% end%>
|
||||||
<a href="javascript:void(0)" class="f_l" style="padding-left: 5px;" onclick="$('#group_name_<%= group.id %>').val('');$('#edit_group_<%= group.id %>').slideToggle();$('#new_group_name').hide();">
|
<a href="javascript:void(0)" class="f_l" style="padding-left: 5px;" onclick="$('#group_name_<%= group.id %>').val('<%= group.name%>');$('#edit_group_<%= group.id %>').slideToggle();$('#new_group_name').hide();">
|
||||||
<img src="/images/pic_edit.png" width="14" height="15" alt="编辑班级" />
|
<img src="/images/pic_edit.png" width="14" height="15" alt="编辑班级" />
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue