This commit is contained in:
2009-09-09 10:47:34 -03:00
parent 3cd507b4f9
commit 391bb652ab
4 changed files with 26 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ class UsersController < ApplicationController
before_filter :require_admin, :only => [ :edit, :update, :destroy ]
def index
@users = User.paginate(:page => params[:page], :per_page => 20, :order => 'last_seen')
@users = User.paginate(:page => params[:page], :per_page => 20, :order => 'last_seen desc')
respond_to do |format|
format.html

View File

@@ -4,7 +4,7 @@
= link_to("Disciplinas", courses_url) + "&rsaquo;"
= link_to(h(@course.full_name), course_url(@course)) + "&rsaquo;"
= link_to("Wiki", course_wiki_url(@course))
- if @wiki_page.title
- if @wiki_page.title?
= "&rsaquo;" + link_to(h(@wiki_page.title), course_wiki_instance_url(@course, @wiki_page))
- @title = @title + " - #{h(@wiki_page.title)}"

View File

@@ -16,4 +16,4 @@
%label{:for => 'wiki_page_description'} Descrição das alterações
%dd= text_field('wiki_page', 'description', { :size => '80' })
%dt= check_box('wiki_page', 'front_page') + " Exibir página wiki na página inicial do curso"
%dt= check_box('wiki_page', 'front_page') + " Exibir página wiki na página inicial do curso"