Skip to content

Commit

Permalink
make videos on reviewed craft show above their images
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Apr 26, 2017
1 parent d3afb27 commit 609c0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ksp.moon
Expand Up @@ -359,14 +359,14 @@ class extends lapis.Application

div id: "craft_description"
script -> raw "document.getElementById('craft_description').innerHTML = marked('#{craft.description\gsub("\\", "\\\\\\\\")\gsub("'", "\\'")\gsub("\n", "\\n")\gsub("\r", "")\gsub("</script>", "</'+'script>")}');"
if Crafts.statuses.reviewed == craft.status
div class: "yt-embed", -> iframe src: "https://www.youtube.com/embed/#{craft.episode}", frameborder: 0, allowfullscreen: true
if the_date.month == 4 and the_date.day == 1
img id: "da_image", src: "https://i.imgur.com/xs190GO.jpg"
br!
button onclick: "javascript:document.getElementById('da_image').src = '#{craft.picture}';", "Get da real image"
else
img src: craft.picture
if Crafts.statuses.reviewed == craft.status
div class: "yt-embed", -> iframe src: "https://www.youtube.com/embed/#{craft.episode}", frameborder: 0, allowfullscreen: true
p ->
a class: "pure-button", href: craft.download_link, "Download" --TODO replace this with something to protect against XSS...
text " KSP Version: " .. craft.ksp_version
Expand Down

0 comments on commit 609c0fc

Please sign in to comment.