Add documentation & download links to mod page

This commit is contained in:
Andrew Miner
2015-01-30 10:19:41 -08:00
parent d0c3d4de5e
commit a365217890
10 changed files with 74 additions and 43 deletions
+6 -4
View File
@@ -16,10 +16,12 @@ module.exports = class Mod extends BaseModel
constructor: (attributes={}, options={})->
if not attributes.slug? then throw new Error 'attributes.slug is required'
attributes.author ?= ''
attributes.description ?= ''
attributes.name ?= ''
attributes.homePageUrl ?= null
attributes.author ?= ''
attributes.description ?= ''
attributes.documentationUrl ?= null
attributes.downloadUrl ?= null
attributes.homePageUrl ?= null
attributes.name ?= ''
super attributes, options
@_activeModVersion = null