1 class Pettanr.Views.Author.Name extends Backbone.View
\r
4 initialize: (options) ->
\r
6 @length = options.length
\r
7 @name = Pettanr.truncate(@item.get('name'), 12)
\r
8 @url = Pettanr.url(@item.table_name(), 'show', {id: @item.get('id')})
\r
9 @linked_name = new Tag.A({
\r
10 attr: {href: '/' + @url},
\r
16 this.$el.html(@linked_name.render().el)
\r