Made a few `div`s into `a`s.
Made them like that so that they’re selectable from vimperator-like browsers.master
parent
84ca28f322
commit
dd51b24264
|
@ -82,7 +82,9 @@ Task = (self, project) ->
|
|||
}
|
||||
} [ self.title ]
|
||||
else
|
||||
bulma.title 4 self.title
|
||||
h \a [
|
||||
bulma.title 4 self.title
|
||||
]
|
||||
|
||||
if typeof(model.users[self.assigned_to]) == "object"
|
||||
user = model.users[self.assigned_to]
|
||||
|
@ -93,7 +95,7 @@ Task = (self, project) ->
|
|||
]
|
||||
if is-selected
|
||||
h \div.media-right {key: "edit"} [
|
||||
h \span.small {
|
||||
h \a.small {
|
||||
onclick: ->
|
||||
if model.editing == self.id + ".title"
|
||||
model.editing := undefined
|
||||
|
@ -106,7 +108,7 @@ Task = (self, project) ->
|
|||
|
||||
if is-selected
|
||||
h \div.media-right {key: "delete"} [
|
||||
h \span.small {
|
||||
h \a.small {
|
||||
onclick: ->
|
||||
model.editing := self.id + ".delete"
|
||||
} [
|
||||
|
@ -168,7 +170,7 @@ Task = (self, project) ->
|
|||
}
|
||||
]
|
||||
else
|
||||
h \div.card-footer-item {
|
||||
h \a.card-footer-item {
|
||||
key: "assign"
|
||||
onclick: ->
|
||||
model.editing := self.id + ".assigned_to"
|
||||
|
@ -193,7 +195,7 @@ Task = (self, project) ->
|
|||
}
|
||||
]
|
||||
else
|
||||
h \div.card-footer-item {
|
||||
h \a.card-footer-item {
|
||||
key: "assign"
|
||||
onclick: ->
|
||||
model.editing := self.id + ".color"
|
||||
|
@ -202,7 +204,7 @@ Task = (self, project) ->
|
|||
|
||||
if is-selected
|
||||
h \div.card-footer {key: "move"} [
|
||||
h \div.card-footer-item {
|
||||
h \a.card-footer-item {
|
||||
key: "⇐"
|
||||
onclick: ->
|
||||
socket.send JSON.stringify {
|
||||
|
@ -214,7 +216,7 @@ Task = (self, project) ->
|
|||
} [ "⇐" ]
|
||||
|
||||
if model.editing == self.id + ".delete"
|
||||
h \div.card-footer-item {
|
||||
h \a.card-footer-item {
|
||||
key: "delete"
|
||||
} [
|
||||
h \div.button.is-danger {
|
||||
|
@ -227,7 +229,7 @@ Task = (self, project) ->
|
|||
} [ "Delete! For real!" ]
|
||||
]
|
||||
|
||||
h \div.card-footer-item {
|
||||
h \a.card-footer-item {
|
||||
key: "⇒"
|
||||
onclick: ->
|
||||
socket.send JSON.stringify {
|
||||
|
@ -273,7 +275,7 @@ Project = (self) ->
|
|||
bulma.title 3 column.name
|
||||
]
|
||||
|
||||
h \div.card-header-icon {
|
||||
h \a.card-header-icon {
|
||||
key: "edit"
|
||||
onclick: ->
|
||||
if model.editing == column.id + ".title"
|
||||
|
@ -285,7 +287,7 @@ Project = (self) ->
|
|||
]
|
||||
|
||||
if self.tasks.filter((.column == column.id)).length == 0
|
||||
h \div.card-header-icon {
|
||||
h \a.card-header-icon {
|
||||
key: "delete"
|
||||
onclick: ->
|
||||
model.editing := column.id + ".delete"
|
||||
|
@ -484,7 +486,7 @@ renderer = ->
|
|||
when "projects-list"
|
||||
h \div#projects-list [
|
||||
h \div (model.projects-list || []).map (project) ->
|
||||
h \div.box {
|
||||
h \a.box {
|
||||
key: project.id
|
||||
onclick: ->
|
||||
model.current-view := "project"
|
||||
|
|
Loading…
Reference in New Issue