修复了管理员界面多个列表的题目问题
This commit is contained in:
parent
34c9f54510
commit
52af5e4303
|
@ -390,8 +390,8 @@ class AdminController < ApplicationController
|
|||
|
||||
#组织
|
||||
def organization
|
||||
#@organizations = Organization.find_by_sql("SELECT * FROM organizations ORDER BY created_at DESC")
|
||||
@organizations = Organization.all.order("created_at desc")
|
||||
@organizations = Organization.find_by_sql("SELECT * FROM organizations ORDER BY created_at DESC")
|
||||
#@organizations = Organization.all.order("created_at desc")
|
||||
respond_to do |format|
|
||||
format.html
|
||||
end
|
||||
|
|
|
@ -62,3 +62,5 @@
|
|||
<div class="pagination">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_course_resource_list)) -%>
|
|
@ -73,3 +73,5 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_excellent_courses_list)) -%>
|
|
@ -88,3 +88,5 @@
|
|||
<div class="pagination">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_latest_login_teacher_list)) -%>
|
|
@ -40,4 +40,4 @@
|
|||
</table>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_project_plural)) -%>
|
||||
<!% html_title(l(:llabel_organization_list)) -%>
|
||||
|
|
|
@ -62,3 +62,5 @@
|
|||
<div class="pagination">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false %>
|
||||
</div>
|
||||
|
||||
<% html_title(l(:label_project_resource_list)) -%>
|
|
@ -1523,6 +1523,9 @@ en:
|
|||
label_excellent_courses_list: excellent_courses
|
||||
label_course_resource_list: course_resource_list
|
||||
label_project_resource_list: project_resource_list
|
||||
label_organization_list: organzation_list
|
||||
label_latest_login_teacher_list: latest_login_teacher_list
|
||||
label_latest_login_user_list: latest_login_teacher_list
|
||||
|
||||
#api
|
||||
label_recently_updated_notification: Recently updated notification
|
||||
|
|
|
@ -563,6 +563,7 @@ zh:
|
|||
label_overall_activity: 活动概览
|
||||
label_new: 新建
|
||||
label_latest_login_user_list: 最近登录用户列表
|
||||
label_latest_login_teacher_list: 最近登录教师列表
|
||||
|
||||
label_logged_as: 登录为
|
||||
label_environment: 环境
|
||||
|
|
Loading…
Reference in New Issue