Source

Sleepy / sleepy / templates / sleepy / twitterish.mako

<%namespace
        name="util"
        file="util.mako" />

<%def
        name="ago_link( entry,
                        **kwargs )">
    ${ util.ago( entry,
                 name="twitter",
                 link="http://www.twitter.com/"
                       + config[ "twitter_user" ]
                       + "/status/"
                       + str( entry.id )) }
</%def>
<%def
        name="show_entry( col,
                          entry,
                          ago=True,
                          **kwargs )">
    % if ago:
        ${ ago_link( entry ) }
    % endif
    % if entry.message:
        <p
                class="message">
            ${ shorties.urlize( entry.message ) }
        </p>
    % endif
</%def>