From 688c04b163d2acf08dc9c23306c910d05f499dae Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Sat, 21 Jul 2012 01:36:51 -0300 Subject: [PATCH] Adding anchors to line numbers in commit details --- views/commit.twig | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/views/commit.twig b/views/commit.twig index dfd510a..b587726 100644 --- a/views/commit.twig +++ b/views/commit.twig @@ -39,8 +39,26 @@ {% for line in diff.getLines %} - - + +
{{ line.getNumOld }}{{ line.getNumNew }} + {% if line.getType != 'chunk' %} + + + {% endif %} + {{ line.getNumOld }} + {% if line.getType != 'chunk' %} + + {% endif %} + + {% if line.getType != 'chunk' %} + + + {% endif %} + {{ line.getNumNew }} + {% if line.getType != 'chunk' %} + + {% endif %} + {{ line.getLine }}