     yield: ->
       @selector.append @template
 
-  class window.TopicsView
+  class window.TopicsView extends CommonView
     constructor: (@topics, @selector = $('#contents')) ->
       do @clear
       do @yield

    yield: ->
      # TODO: use promises or defer
      @selector.html @template(@topic)
      new PostView(topic) for topic in @topic.posts
      @paginate @selector.find('.pagination')
      new PostNewView @topic.topic

(($) ->
 class window.CommonView
   update_title: (title) ->
    $("#page-title").html title
    document.title = "Blabbr - #{title}"

 class window.UserView extends CommonView
    constructor: (@user) ->
      @selector = $('.aside aside')
      do @yield
