mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-24 07:33:07 +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):
|
||||
self.object = snippet = self.get_object()
|
||||
tree = snippet.get_root().get_descendants(include_self=True)
|
||||
|
||||
ctx = super(SnippetDetailView, self).get_context_data(**kwargs)
|
||||
ctx.update(template_globals)
|
||||
ctx.update({
|
||||
'highlighted': self.highlight_snippet().splitlines(),
|
||||
'tree': tree,
|
||||
'wordwrap': snippet.lexer in LEXER_WORDWRAP and 'True' or 'False',
|
||||
})
|
||||
return ctx
|
||||
|
|
Loading…
Reference in a new issue