multi-line tag editing, better paging format
This commit is contained in:
parent
3bb648786f
commit
5149d15c04
@ -7,11 +7,18 @@ import Tracks from require "models"
|
|||||||
class extends Widget
|
class extends Widget
|
||||||
menu: =>
|
menu: =>
|
||||||
div ->
|
div ->
|
||||||
if @previous
|
element "table", ->
|
||||||
a href: @url_for("track", id: @previous.id), "<"
|
tr ->
|
||||||
raw " "
|
td ->
|
||||||
if @next
|
if @previous
|
||||||
a href: @url_for("track", id: @next.id), ">"
|
a href: @url_for("track", id: @previous.id), "<"
|
||||||
|
else
|
||||||
|
text "<"
|
||||||
|
td ->
|
||||||
|
if @next
|
||||||
|
a href: @url_for("track", id: @next.id), ">"
|
||||||
|
else
|
||||||
|
text ">"
|
||||||
|
|
||||||
content: =>
|
content: =>
|
||||||
@menu!
|
@menu!
|
||||||
@ -58,7 +65,8 @@ class extends Widget
|
|||||||
br!
|
br!
|
||||||
|
|
||||||
text "Tags: "
|
text "Tags: "
|
||||||
input type: "text", name: "tags", value: trim(@track.tags), placeholder: "untagged"
|
-- input type: "text", name: "tags", value: trim(@track.tags), placeholder: "untagged"
|
||||||
|
textarea rows: 8, name: "tags", placeholder: "untagged", trim(@track.tags)
|
||||||
br!
|
br!
|
||||||
input type: "submit", value: "Update"
|
input type: "submit", value: "Update"
|
||||||
@menu!
|
@menu!
|
||||||
|
@ -5,15 +5,24 @@ import Tracks from require "models"
|
|||||||
class extends Widget
|
class extends Widget
|
||||||
menu: =>
|
menu: =>
|
||||||
div ->
|
div ->
|
||||||
if @page != 1
|
element "table", ->
|
||||||
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: 1), "<<"
|
tr ->
|
||||||
raw " "
|
if @page != 1
|
||||||
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: @page - 1), "<"
|
td ->
|
||||||
raw " "
|
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: 1), "<<"
|
||||||
if @page != @last_page
|
td ->
|
||||||
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: @page + 1), ">"
|
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: @page - 1), "<"
|
||||||
raw " "
|
else
|
||||||
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: @last_page), ">>"
|
td "<<"
|
||||||
|
td "<"
|
||||||
|
if @page != @last_page
|
||||||
|
td ->
|
||||||
|
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: @page + 1), ">"
|
||||||
|
td ->
|
||||||
|
a href: @url_for("tracks", order: @order, asc_desc: @asc_desc, page: @last_page), ">>"
|
||||||
|
else
|
||||||
|
td ">"
|
||||||
|
td ">>"
|
||||||
|
|
||||||
content: =>
|
content: =>
|
||||||
@menu!
|
@menu!
|
||||||
|
Reference in New Issue
Block a user