incubator-bloodhound-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olemis Lang <ole...@gmail.com>
Subject Re: [Apache Bloodhound] #204: Activity feed currently breaks new ticket page link
Date Wed, 19 Sep 2012 18:38:36 GMT
On 9/19/12, Apache Bloodhound <bloodhound-dev@incubator.apache.org> wrote:
> #204: Activity feed currently breaks new ticket page link
> ------------------------+-----------------------
>   Reporter:  gjm        |      Owner:  nobody
>       Type:  defect     |     Status:  new
>   Priority:  critical   |  Milestone:  Release 2
>  Component:  dashboard  |    Version:
> Resolution:             |   Keywords:
> ------------------------+-----------------------
>
> Comment (by gjm):
>
[...]
>
>  ---
>  bloodhound_dashboard/bhdashboard/widgets/templates/widget_timeline.html
>  (revision 1387596)
>  +++
>  bloodhound_dashboard/bhdashboard/widgets/templates/widget_timeline.html
>  (working copy)
>  @@ -50,6 +50,7 @@
>       </tbody>
>     </table>
>     <py:otherwise>
>  +    <py:if test="context.resource.id">
>       <py:def function="timeline_empty()">
>         No events reported for <em>${summary_of(context.resource)}</em> in
>  the
>         last <em>$daysback</em> days since
>  @@ -59,5 +60,6 @@
>       </py:def>
>       <xi:include href="widget_alert.html"
>           py:with="msglabel = 'Warning'; msgbody = timeline_empty()" />
>  +    </py:if>
>     </py:otherwise>
>   </div>
>  }}}
>

I'd rather sugesst doing something like

<em py:if="context.resource.id">${summary_of(context.resource)}</em>

or

<em>${summary_of(context.resource) if context.resource.id else
'Unknown resource'}</em>


-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Mime
View raw message