class Pettanr.ComicStory extends Peta.Leaf\r
+ url: '/comic_stories/'\r
+ \r
@singular: () ->\r
'ComicStory'\r
\r
t: null\r
} \r
\r
+ comic: () ->\r
+ new Pettanr.Comic({id: @get('comic_id')})\r
+ \r
+ story: () ->\r
+ new Pettanr.Story({id: @get('story_id')})\r
+ \r
+ has_story: () ->\r
+ if @get('story_id')\r
+ true\r
+ else\r
+ false\r
+ \r
disp_t: () ->\r
@get('t') + 1\r
\r
I18n.t('comic_stories.show.t', {t: @disp_t()})\r
\r
title: () ->\r
- @disp_t_by_text() + ':' + @story().get('title')\r
+ @disp_t_by_text() + ':' + @story().escape('title')\r
\r
initialize: () ->\r
if @id\r
@url = @url + @id\r
\r
-class Pettanr.ComicStory.Collection extends Backbone.Collection\r
- model: Pettanr.ComicStory\r
- url: '/comic_stories'\r