mirror of https://github.com/freeCodeCamp/devdocs
parent
4f781d7e82
commit
c2879a5e80
@ -1,16 +1,13 @@
|
||||
app.templates.offlinePage = ->
|
||||
app.templates.offlinePage = (docs) ->
|
||||
""" <h1 class="_lined-heading">Offline</h1>
|
||||
<table class="_docs">
|
||||
#{app.templates.render 'offlineDoc', app.docs.all()}
|
||||
</table> """
|
||||
<table class="_docs">#{docs}</table> """
|
||||
|
||||
app.templates.offlineDoc = (doc) ->
|
||||
"""<tr data-slug="#{doc.slug}"></tr>"""
|
||||
|
||||
app.templates.offlineDocContent = (doc, status) ->
|
||||
html = """<th class="_icon-#{doc.slug}">#{doc.name}</th>"""
|
||||
app.templates.offlineDoc = (doc, status) ->
|
||||
html = """<tr data-slug="#{doc.slug}">"""
|
||||
html += """<th class="_icon-#{doc.slug}">#{doc.name}</th>"""
|
||||
html += if status.downloaded
|
||||
"""<td><a data-del>Delete</a></td>"""
|
||||
else
|
||||
"""<td><a data-dl>Download</a></td>"""
|
||||
html += """</tr>"""
|
||||
html
|
||||
|
Loading…
Reference in new issue