       count={@getStackUnreadCount()}
       onClick={@bound 'handleUnreadCountClick'} />
 
+
+  handleUnreadCountClick: ->
+
+    @setCoordinates()
+    @setState { showWidget: yes }
+
+
+  renderStackUpdatedWidget: ->
+
+    { coordinates, showWidget } = @state
+
+    return null  unless @getStackUnreadCount()
+    return null  if not coordinates.left and coordinates.top
+
+    coordinates.top = coordinates.top - 156
+    <StackUpdatedWidget className={'stackTemplate'} coordinates={coordinates} stack={@props.stack} show={showWidget} />
+
+
   render: ->
 
     { template, stack, onOpen } = @props

React = require 'kd-react'
TimeAgo = require 'app/components/common/timeago'
UnreadCount = require 'app/components/sidebarmachineslistitem/unreadcount'

module.exports = class StackTemplateItem extends React.Component

  renderButton: ->



    <div className='HomeAppViewListItem StackTemplateItem'>
      <a
        ref='stackTemplateItem'
        href={editorUrl}
        className='HomeAppViewListItem-label'
        onClick={onOpen}>
        { makeTitle { template, stack } }
      </a>
      {@renderUnreadCount()}
      {@renderStackUpdatedWidget()}
      <div className='HomeAppViewListItem-description'>
        Last updated <TimeAgo from={template.getIn ['meta', 'modifiedAt']} />
      </div>
