     always_include_name_in_path_action(this, NeuronTypes, "neuron_type_show")
   data: ->
     NeuronTypes.findOne _id: @params._id
+  onAfterAction: ->
+    doc = NeuronTypes.findOne _id: @params._id
+    if doc?
+      document.title = doc.name + ' - neuron catalog'
+    else
+      document.title = DEFAULT_TITLE
 
 Router.route "/neuropils"
 

Router.configure
  layoutTemplate: "MyLayout"
  notFoundTemplate: "PageNotFound"

Router.setTemplateNameConverter (str) ->
  str

    always_include_name_in_path_action(this, DriverLines, "driver_line_show")
  data: ->
    DriverLines.findOne _id: @params._id
  onAfterAction: ->
    doc = DriverLines.findOne _id: @params._id
    if doc?
      document.title = doc.name + ' - neuron catalog'
    else
      document.title = DEFAULT_TITLE

Router.route "/neuron_types"

