Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
commit
ecccbf1cf7
@ -0,0 +1,3 @@
|
|||||||
|
class CourseAttachment < ActiveRecord::Base
|
||||||
|
attr_accessible :attachtype, :author_id, :content_type, :description, :digest, :disk_directory, :disk_filename, :downloads, :filename, :filesize, :integer, :is_public
|
||||||
|
end
|
@ -1,4 +1,5 @@
|
|||||||
<div class="wiki wiki-page">
|
<div class="wiki wiki-page">
|
||||||
<%= textilizable content, :text, :attachments => content.page.attachments,
|
<%= textilizable content, :text, :attachments => content.page.attachments,
|
||||||
:edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
|
:edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
|
||||||
|
<%#= content.text.html_safe %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
class CreateCourseAttachments < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :course_attachments do |t|
|
||||||
|
t.string :filename
|
||||||
|
t.string :disk_filename
|
||||||
|
t.integer :filesize
|
||||||
|
t.string :content_type
|
||||||
|
t.string :digest
|
||||||
|
t.integer :downloads
|
||||||
|
t.string :author_id
|
||||||
|
t.string :integer
|
||||||
|
t.string :description
|
||||||
|
t.string :disk_directory
|
||||||
|
t.integer :attachtype
|
||||||
|
t.integer :is_public
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue