<li{%block"workflowactive"%}{%endblock%}><ahref="{% url 'the index' %}"class="{% if not user.is_authenticated %}must_login{% endif %}">Workflow editor</a></li>
<li{%block"yourworkflowsactive"%}{%endblock%}><ahref="{% url 'your workflows' %}"class="{% if not user.is_authenticated %}must_login{% endif %}">Your workflows</a></li>
<li><aclass="{% if not user.is_authenticated %}must_login{% endif %}"href="{% if user.is_authenticated %}{% url 'logout' %}{% endif %}{% if not user.is_authenticated %}{% url 'website index' %}{% endif %}">{% if not user.is_authenticated %}Log in{% endif %}{% if user.is_authenticated %}Log out{% endif %}</a></li>
<td>{% if w.public %}<ahref="{{w.get_info_url}}">{{w.get_info_url}}</a>{% else %}This workflow is private.{% endif %}</td>
<td><ahref="{{w.get_absolute_url}}">Edit</a> | <ahref="{{w.get_copy_url}}">Open as new</a> | <ahref="javascript:;"rel="{{w.pk}}"class="delete_workflow">Delete</a> | {% if not w.public %}<ahref="#">Make public</a>{% else %}<ahref="#">Make private</a>{% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
<script type="text/javascript">
$(function(){
$(".delete_workflow").click(function(){
varthistd=$(this);
bootbox.confirm("Are you sure you wish to delete the workflow: "+$(this).parent().parent().find("td.name").html()+"?","No way!","Yes, definitely!",function(result){
l)l={}},alert:function(){varb="",a=k("OK"),c=null;switch(arguments.length){case1:b=arguments[0];break;case2:b=arguments[0];"function"==typeofarguments[1]?c=arguments[1]:a=arguments[1];break;case3:b=arguments[0];a=arguments[1];c=arguments[2];break;default:throwError("Incorrect number of arguments: expected 1-3");}returnm.dialog(b,{label:a,icon:g.OK,"class":l.OK,callback:c},{onEscape:c||!0})},confirm:function(){varb="",a=k("CANCEL"),c=k("CONFIRM"),e=null;switch(arguments.length){case1:b=arguments[0];
break;case2:b=arguments[0];"function"==typeofarguments[1]?e=arguments[1]:a=arguments[1];break;case3:b=arguments[0];a=arguments[1];"function"==typeofarguments[2]?e=arguments[2]:c=arguments[2];break;case4:b=arguments[0];a=arguments[1];c=arguments[2];e=arguments[3];break;default:throwError("Incorrect number of arguments: expected 1-4");}varh=function(){if("function"===typeofe)returne(!1)};returnm.dialog(b,[{label:a,icon:g.CANCEL,"class":l.CANCEL,callback:h},{label:c,icon:g.CONFIRM,"class":l.CONFIRM,
c=arguments[2];e=arguments[3];h=arguments[4];break;default:throwError("Incorrect number of arguments: expected 1-5");}varq=n("<form></form>");q.append("<input autocomplete=off type=text value='"+h+"' />");varh=function(){if("function"===typeofe)returne(null)},d=m.dialog(q,[{label:a,icon:g.CANCEL,"class":l.CANCEL,callback:h},{label:c,icon:g.CONFIRM,"class":l.CONFIRM,callback:function(){if("function"===typeofe)returne(q.find("input[type=text]").val())}}],{header:b,show:!1,onEscape:h});d.on("shown",
s:c.backdrop,keyboard:!1,show:!1});f.on("show",function(){n(w).off("focusin.modal")});("undefined"===typeofc.show||!0===c.show)&&f.modal("show");returnf},modal:function(){varb,a,c,e={onEscape:null,keyboard:!0,backdrop:s};switch(arguments.length){case1:b=arguments[0];break;case2:b=arguments[0];"object"==typeofarguments[1]?c=arguments[1]:a=arguments[1];break;case3:b=arguments[0];a=arguments[1];c=arguments[2];break;default:throwError("Incorrect number of arguments: expected 1-3");}e.header=a;