mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
508 B
17 lines
508 B
app.templates.offlinePage = ->
|
|
""" <h1 class="_lined-heading">Offline</h1>
|
|
<table class="_docs">
|
|
#{app.templates.render 'offlineDoc', app.docs.all()}
|
|
</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>"""
|
|
html += if status.downloaded
|
|
"""<td><a data-del>Delete</a></td>"""
|
|
else
|
|
"""<td><a data-dl>Download</a></td>"""
|
|
html
|