From: Andrew Otto Date: Fri, 13 Apr 2012 16:02:47 +0000 (-0400) Subject: Linking graph name in graph title to graph url. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=435bc35f25e6c85d502e5dffa47c623e655c2d4e;p=limn-bak.git Linking graph name in graph title to graph url. --- diff --git a/lib/graph/graph-display-view.co b/lib/graph/graph-display-view.co index b5c241a..1a73a36 100644 --- a/lib/graph/graph-display-view.co +++ b/lib/graph/graph-display-view.co @@ -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 diff --git a/lib/template/graph-display.jade b/lib/template/graph-display.jade index caa98c5..478e601 100644 --- a/lib/template/graph-display.jade +++ b/lib/template/graph-display.jade @@ -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") //-