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