Skip to content

Commit

Permalink
permalink can haz nagcat_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Evans committed Aug 10, 2011
1 parent c3e267e commit 2ae617a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railroad/railroad/permalink/views.py
Expand Up @@ -74,8 +74,14 @@ def retrieve_link(request, link):
service['service'])
servicedetail['slug'] = service['slug']
service['duration'] = servicedetail['state_duration']
if '_TEST' in servicedetail:
servicedetail['nagcat_template'] = servicedetail['_TEST'].split(';',
1)[-1]
else:
servicedetail['nagcat_template'] = ''
html = render_to_response("graph.html",servicedetail).content
service['html'] = html
service['nagcat_template'] = servicedetail['nagcat_template']
graphs.append(service)

return views.configurator(request,stat,obj,graphs=graphs)
Expand Down

0 comments on commit 2ae617a

Please sign in to comment.