Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[livejournal] r17745: LJSUP-7420: default userpic added to fea...

Committer: mchervonniy
LJSUP-7420: default userpic added to featired posts and communities
U   trunk/templates/Browse/featured_communities.tmpl
U   trunk/templates/Browse/top_posts.tmpl
Modified: trunk/templates/Browse/featured_communities.tmpl
===================================================================
--- trunk/templates/Browse/featured_communities.tmpl	2010-11-23 03:04:15 UTC (rev 17744)
+++ trunk/templates/Browse/featured_communities.tmpl	2010-11-23 03:13:11 UTC (rev 17745)
@@ -13,7 +13,7 @@
 			<tmpl_loop top_comms>
 			<li<tmpl_if __last__> class="last"</tmpl_if>>
 				<dl>
-					<dt><img src="<tmpl_var userpic>"></dt>
+					<dt><tmpl_if userpic><img src="<tmpl_var userpic>" alt="<tmpl_var community>"/><tmpl_else><img src="/img/profile_icons/comm.gif" alt="<tmpl_var community>"/></tmpl_if></dt>
 					<dd>
 						<p class="b-posts-head">
 							<span class="ljuser"><a href="/community/<tmpl_var community>/profile"><img width="16" height="16" alt="[info]" src="/img/community.gif" class="ContextualPopup"/></a><a href="/community/<tmpl_var community>/"><b><tmpl_var community></b></a></span>

Modified: trunk/templates/Browse/top_posts.tmpl
===================================================================
--- trunk/templates/Browse/top_posts.tmpl	2010-11-23 03:04:15 UTC (rev 17744)
+++ trunk/templates/Browse/top_posts.tmpl	2010-11-23 03:13:11 UTC (rev 17745)
@@ -13,7 +13,7 @@
 			<tmpl_loop top_posts>
 			<li<tmpl_if __last__> class="last"</tmpl_if>>
 				<dl>
-					<dt><img src="<tmpl_var userpic>"></dt>
+					<dt><tmpl_if userpic><img src="<tmpl_var userpic>" alt=""/><tmpl_else><img src="/img/profile_icons/user.gif" alt=""/></tmpl_if></dt>
 					<dd>
 						<h3 class="b-posts-head"><a href="<tmpl_var url_to_post>"><tmpl_var subject></a></h3>
 						<p class="b-posts-data"><tmpl_var ljuser><i class="i-posts-delimiter"> | </i><i class="i-posts-comments"><a href="<tmpl_var url_to_post>"><tmpl_var comments_count> comments</a></i></p>

Tags: fiskus_boulder, livejournal, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments