History

Remove index_path and db_path from docs manifest

Thibaut Courouble committed 10 years ago

Commit a639aed1 parent e1c02187 files · +16 −14Browse files

Showing the changes to assets/javascripts/models (1 of 7 files). Show all

Unified · Split

assets/javascripts/models/doc.coffee+3−3
@@ -1,5 +1,5 @@
1class app.models.Doc extends app.Model1class app.models.Doc extends app.Model
2 # Attributes: name, slug, type, release, index_path, db_path, db_size, mtime, links2 # Attributes: name, slug, type, release, db_size, mtime, links
3 3
4 constructor: ->4 constructor: ->
5 super5 super
@@ -29,10 +29,10 @@ class app.models.Doc extends app.Model · 23 unmodified lines
29 "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}"29 "#{app.config.docs_host}#{@fullPath(path)}?#{@mtime}"
30 30
31 dbUrl: ->31 dbUrl: ->
32 "#{app.config.docs_host}/#{@db_path}?#{@mtime}"32 "#{app.config.docs_host}/#{@slug}/#{app.config.db_filename}?#{@mtime}"
33 33
34 indexUrl: ->34 indexUrl: ->
35 "#{app.indexHost()}/#{@index_path}?#{@mtime}"35 "#{app.indexHost()}/#{@slug}/#{app.config.index_filename}?#{@mtime}"
36 36
37 toEntry: ->37 toEntry: ->
38 @entry ||= new app.models.Entry38 @entry ||= new app.models.Entry