Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Etiene committed May 6, 2016
1 parent 368cd1b commit a69197b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions views/add_label.moon
Expand Up @@ -4,7 +4,7 @@ class AddLabel extends require "widgets.page"

@render_modules { @module }

a href: @url_for("module", @), ->
a href: @url_for(@module), ->
raw "« Return to module"

h3 "Add"
Expand All @@ -15,8 +15,8 @@ class AddLabel extends require "widgets.page"

add_form: =>
@render_errors!
form action: @req.cmd_url, method: "POST", class: "form", ->
input type: "hidden", name: "csrf_token", value: @csrf_token
form method: "POST", class: "form", ->
@csrf_input!
div class: "row", ->
label "Labels"
element "select", name: "label_id", ->
Expand Down
2 changes: 1 addition & 1 deletion views/index.moon
Expand Up @@ -43,7 +43,7 @@ class Index extends require "widgets.page"
text "View Modules by Labels"
for i,l in ipairs @labels
text ", " unless i == 1
a href: "/label/modules/#{l.name}", l.name
a href: @url_for("modules_label",label: l.name), l.name

h2 ->
text "Daily Module Downloads"
Expand Down
4 changes: 2 additions & 2 deletions views/user_settings/import_toolbox.moon
Expand Up @@ -23,8 +23,8 @@ class UserSettingsImportToolbox extends require "widgets.user_settings_page"
p ->
test "No endorsements were imported."
else
form action: @req.cmd_url, method: "POST", class: "form", ->
input type: "hidden", name: "csrf_token", value: @csrf_token
form method: "POST", class: "form", ->
@csrf_input!
div class: "button_row", ->
input type: "submit", value: "Transfer endorsements"

Expand Down

0 comments on commit a69197b

Please sign in to comment.