|
|
@@ -19,6 +19,7 @@
|
|
|
<%namespace name="utils" file="../../utils.inc.mako" />
|
|
|
|
|
|
<%!
|
|
|
+ import re
|
|
|
from django.utils.translation import ugettext as _
|
|
|
%>
|
|
|
|
|
|
@@ -47,7 +48,7 @@
|
|
|
|
|
|
<%def name="get_content(form, action, control, inverse=False)">
|
|
|
<div class="row-fluid">
|
|
|
- % if action and action.externalId:
|
|
|
+ % if action and action.externalId and re.match('\\w+', action.externalId):
|
|
|
<div style="text-align:left; padding:10px;border:1px solid #DDD; border-top:0" class="span12">
|
|
|
<div style="font-size: 30px; margin-top:14px" class="pull-right"><a href="${ url('jobbrowser.views.job_single_logs', job=action.externalId) }" title="${ _('View the logs') }" rel="tooltip" data-row-selector-exclude="true"><i class="fa fa-tasks"></i></a></div>
|
|
|
<h4><a href="${ action.get_absolute_url() }" title="${ _('View workflow action') }" rel="tooltip">${ form.instance.__unicode__() }</a></h4>
|