コード例 #1
0
ファイル: modernized_mobile.py プロジェクト: happytk/moin
    def recentchanges_daybreak(self, d):
        """
        Assemble a rc daybreak indication (table row)

        @param d: parameter dictionary
        @rtype: string
        @return: recentchanges daybreak html
        """
        if not self.is_mobile:
            return ThemeBase.recentchanges_daybreak(self, d)

        if d['bookmark_link_html']:
            set_bm = '  %(bookmark_link_html)s' % d
        else:
            set_bm = ''
        return ('<tr class="rcdaybreak"><td colspan="%d">'
                '<strong>%s</strong>'
                '%s'
                '</td></tr>\n') % (1, d['date'], set_bm)