display svg at the bottom of the page (wf) (fix #1727)

This commit is contained in:
Thomas NOËL 2012-10-15 15:39:58 +02:00
parent 1fdc21aa3f
commit fe622f04f0
2 changed files with 9 additions and 4 deletions

View File

@ -295,8 +295,6 @@ class WorkflowStatusPage(Directory):
'<div class="bo-block">'
'<h3>%s ' % _('Possible Status:')
'%s</h3>' % self.status.name
htmltext(graphviz(self.workflow, url_prefix='../../', include=True,
select='%s' % self.status.id))
'</div>'
if self.status.visibility == ['_receiver']:
@ -338,6 +336,11 @@ class WorkflowStatusPage(Directory):
'<p><a href="../../">%s</a></p>' % _('Back to workflow main page')
'<div class="bo-block">'
htmltext(graphviz(self.workflow, url_prefix='../../', include=True,
select='%s' % self.status.id))
'</div>'
get_response().filter['sidebar'] = self.get_sidebar()
@ -589,8 +592,6 @@ class WorkflowPage(Directory):
'<div class="bo-block">'
'<h3>%s</h3>' % _('Possible Status')
htmltext(graphviz(self.workflow, include=True))
if not self.workflow.possible_status:
'<p>%s</p>' % _('There are not yet any status defined in this workflow.')
else:
@ -606,6 +607,9 @@ class WorkflowPage(Directory):
'<a href="status/%s/">%s</a>' % (status.id, status.name)
'</li>'
'</ul>'
'</div>'
'<div class="bo-block">'
htmltext(graphviz(self.workflow, include=True))
'</div>' # bo-block
get_response().filter['sidebar'] = self.get_sidebar()

View File

@ -694,6 +694,7 @@ ul#fields-filter li {
svg {
width: 100%;
height: 100%;
margin: auto;
}