Ref #25.
Showing the changes to assets/javascripts (1 of 3 files). Show all
Unified · Split
| @@ -1,10 +1,10 @@ | |||
| 1 | class app.models.Doc extends app.Model | 1 | class app.models.Doc extends app.Model |
| 2 | # Attributes: name, slug, type, release, db_size, mtime, links | 2 | # Attributes: name, slug, type, version, release, db_size, mtime, links |
| 3 | 3 | ||
| 4 | constructor: -> | 4 | constructor: -> |
| 5 | super | 5 | super |
| 6 | @reset @ | 6 | @reset @ |
| 7 | [@slug_without_version, @version] = @slug.split('~v') | 7 | @slug_without_version = @slug.split('~v')[0] |
| 8 | @fullName = "#{@name}" + if @version then " #{@version}" else '' | 8 | @fullName = "#{@name}" + if @version then " #{@version}" else '' |
| 9 | @icon = @slug_without_version | 9 | @icon = @slug_without_version |
| 10 | @text = @toEntry().text | 10 | @text = @toEntry().text |