#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):

 I expect something like this might help as a quick hack but is there a
 better answer?

 {{{
 #!diff
 Index:
 bloodhound_dashboard/bhdashboard/widgets/templates/widget_timeline.html
 ===================================================================
 ---
 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>
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/204#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Reply via email to