OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add cache
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
controllers
/
speeches.js.coffee
1
class Pettanr.SpeechesController extends Pettanr.AppController
\r
2
\r
3
index: () ->
\r
4
@filer_list()
\r
5
\r
6
by_author: () ->
\r
7
@filer_list()
\r
8
\r
9
by_speech_balloon: () ->
\r
10
@filer_list()
\r
11
\r
12
show_html: () ->
\r
13
_this = this
\r
14
@item.fetch({cache: true}).done ->
\r
15
view = new Pettanr.Views.Speech.Show({
\r
16
el: "#pettanr",
\r
17
item: _this.item,
\r
18
operators: _this.operators
\r
19
})
\r
20
view.render()
\r
21
\r
22
show: () ->
\r
23
@set_show()
\r
24
switch @params['format']
\r
25
when 'prof'
\r
26
@show_prof()
\r
27
when 'html'
\r
28
@show_html()
\r
29
\r
30
count: () ->
\r
31
\r
32
new: () ->
\r
33
\r
34
edit: () ->
\r
35
\r
36
create: () ->
\r
37
\r
38
update: () ->
\r
39
\r
40
destroy: () ->
\r
41
\r