Linking graph name in graph title to graph url.
authorAndrew Otto <acotto@gmail.com>
Fri, 13 Apr 2012 16:02:47 +0000 (12:02 -0400)
committerAndrew Otto <acotto@gmail.com>
Fri, 13 Apr 2012 16:02:47 +0000 (12:02 -0400)
lib/graph/graph-display-view.co
lib/template/graph-display.jade

index b5c241a..1a73a36 100644 (file)
@@ -185,7 +185,7 @@ GraphDisplayView = exports.GraphDisplayView = BaseView.extend do # {{{
     
     update: ->
         locals = @toTemplateLocals()
-        @$el.find '.graph-name' .text(locals.name or '')
+        @$el.find '.graph-name a' .text(locals.name or '')
         @$el.find '.graph-desc' .html jade.filters.markdown locals.desc or ''
         this
     
index caa98c5..478e601 100644 (file)
@@ -3,7 +3,8 @@ include browser-helpers
 section.graph.graph-display(id=view.id)
     
     .graph-name-row.page-header.row-fluid
-        h2.graph-name #{name}
+        h2.graph-name 
+            a(id="graph-title", href="#{model.toLink()}") #{name}
     
     .graph-viewport-row.row-fluid
         .viewport
@@ -15,7 +16,6 @@ section.graph.graph-display(id=view.id)
         
         .span8
             .graph-permalink 
-                a(href="#{model.toLink()}") Permalink: 
                 input.span6(value="#{model.toPermalink()}", readonly="readonly")
 
             //-