/**
 * VIEW: Document Summary
 * 
 */

var template = require('./templates/documentHighlight.tpl');

module.exports = Backbone.Marionette.ItemView.extend({

  //--------------------------------------
  //+ PUBLIC PROPERTIES / CONSTANTS
  //--------------------------------------

  tagName: "li",
  className: "clearfix",
  template: template,

  templateHelpers: function(){
    var baseUrl = aeolus.baseRoot + "/documents/" + this.docId;

    return {
      pageURL: baseUrl
    };
  },

  //--------------------------------------
  //+ INHERITED / OVERRIDES
  //--------------------------------------

  initialize: function(options){
    this.docId = options.documentId;
  }

  //--------------------------------------
  //+ PUBLIC METHODS / GETTERS / SETTERS
  //--------------------------------------

  //--------------------------------------
  //+ EVENT HANDLERS
  //--------------------------------------

  //--------------------------------------
  //+ PRIVATE AND PROTECTED METHODS
  //--------------------------------------

});
@@ -381,63 +381,275 @@
 var 
-baseUrl = aeolus.baseRoot + %22/documents/%22 + this.docId;
+$projectData = $('body').data(),%0A        baseUrl;%0A%0A    if ($projectData.editable)%7B%0A      baseUrl = aeolus.baseRoot + %22/documents/%22 + this.docId;%0A    %7D else %7B%0A      baseUrl = aeolus.baseRoot + %22/projects/%22 + $projectData.slug + %22/comb?document_id=%22 + this.docId;%0A    %7D
 %0A%0A  

Fix search document's url