Skip to content

Commit

Permalink
here. eat tjos
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Aug 20, 2016
1 parent d322ec7 commit 19b6730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ksp.moon
Expand Up @@ -100,11 +100,11 @@ class extends lapis.Application
td ->
a href: @url_for("ksp_craft", id: craft.id), craft.craft_name
td ->
Crafts.status\to_name craft.status
Crafts.statuses\to_name craft.status
td ->
if Crafts.status.reviewed == craft.status
if Crafts.statuses.reviewed == craft.status
a href: "https://youtube.com/watch?v=#{craft.episode}", "Watch on YouTube"
elseif Crafts.status.rejected == craft.status
elseif Crafts.statuses.rejected == craft.status
text "Reason: #{craft.rejection_reason}"

ul ->
Expand Down
2 changes: 1 addition & 1 deletion models/Crafts.moon
Expand Up @@ -3,7 +3,7 @@ import Model, enum from require "lapis.db.model"
class Crafts extends Model
@timestamp: true

@status: enum {
@statuses: enum {
unseen: 0
pending: 1
reviewed: 2
Expand Down

0 comments on commit 19b6730

Please sign in to comment.