Committer: ailyin
LJSUP-6941 (Add indentation between 10th tweet and "Read more"): move template to a template fileU trunk/cgi-bin/LJ/TwitterDigest.pm A trunk/templates/TwitterDigest.tmpl
Modified: trunk/cgi-bin/LJ/TwitterDigest.pm =================================================================== --- trunk/cgi-bin/LJ/TwitterDigest.pm 2010-09-29 03:35:17 UTC (rev 9560) +++ trunk/cgi-bin/LJ/TwitterDigest.pm 2010-09-29 03:57:23 UTC (rev 9561) @@ -265,26 +265,7 @@ splice @tweets_under_cut, 0, $LJ::TWITTER_DIGEST_CUT_AFTER; my $template = LJ::HTML::Template->new( - 'scalarref' => \q{ - <ul> - <TMPL_LOOP tweets> - <li> - <a href="<TMPL_VAR url>"><em><TMPL_VAR time></em></a>: - <TMPL_VAR text> - </li> - </TMPL_LOOP> - <TMPL_IF tweets_under_cut> - <lj-cut> - <TMPL_LOOP tweets_under_cut> - <li> - <a href="<TMPL_VAR url>"><em><TMPL_VAR time></em></a>: - <TMPL_VAR text> - </li> - </TMPL_LOOP> - </lj-cut> - </TMPL_IF> - </ul> - }, + 'filename' => 'templates/TwitterDigest.tmpl', ); $template->param( Added: trunk/templates/TwitterDigest.tmpl =================================================================== --- trunk/templates/TwitterDigest.tmpl (rev 0) +++ trunk/templates/TwitterDigest.tmpl 2010-09-29 03:57:23 UTC (rev 9561) @@ -0,0 +1,21 @@ +<ul> + <TMPL_LOOP tweets> + <li> + <a href="<TMPL_VAR url>"><em><TMPL_VAR time></em></a>: + <TMPL_VAR text> + </li> + </TMPL_LOOP> +</ul> + +<TMPL_IF tweets_under_cut> + <lj-cut> + <ul> + <TMPL_LOOP tweets_under_cut> + <li> + <a href="<TMPL_VAR url>"><em><TMPL_VAR time></em></a>: + <TMPL_VAR text> + </li> + </TMPL_LOOP> + </ul> + </lj-cut> +</TMPL_IF>