added date
This commit is contained in:
parent
fd8ab30831
commit
9d42443a29
|
@ -45,8 +45,9 @@ class MemberCounselorsController < CUserController
|
|||
page = Page.where(:page_id => params[:page_id]).first
|
||||
files = []
|
||||
members.each do |member|
|
||||
member.hps_files.each do |file|
|
||||
member.hps_files.desc(:created_at).each do |file|
|
||||
files << {
|
||||
"date" => file.created_at.strftime("%Y/%m/%d"),
|
||||
"title" => file.title,
|
||||
"download_count" => file.download_count,
|
||||
"url" => "/cuser/download?file_id=#{file.id.to_s}"
|
||||
|
|
Loading…
Reference in New Issue