mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Removed tree
This commit is contained in:
parent
e1c3d21f38
commit
0123fc1512
1 changed files with 0 additions and 2 deletions
|
@ -102,13 +102,11 @@ class SnippetDetailView(SnippetView, DetailView):
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
self.object = snippet = self.get_object()
|
self.object = snippet = self.get_object()
|
||||||
tree = snippet.get_root().get_descendants(include_self=True)
|
|
||||||
|
|
||||||
ctx = super(SnippetDetailView, self).get_context_data(**kwargs)
|
ctx = super(SnippetDetailView, self).get_context_data(**kwargs)
|
||||||
ctx.update(template_globals)
|
ctx.update(template_globals)
|
||||||
ctx.update({
|
ctx.update({
|
||||||
'highlighted': self.highlight_snippet().splitlines(),
|
'highlighted': self.highlight_snippet().splitlines(),
|
||||||
'tree': tree,
|
|
||||||
'wordwrap': snippet.lexer in LEXER_WORDWRAP and 'True' or 'False',
|
'wordwrap': snippet.lexer in LEXER_WORDWRAP and 'True' or 'False',
|
||||||
})
|
})
|
||||||
return ctx
|
return ctx
|
||||||
|
|
Loading…
Reference in a new issue