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

[livejournal] r17756: LJSUP-7420: added default userpic for re...

Committer: mchervonniy
LJSUP-7420: added default userpic for recent posts and communities
U   trunk/templates/Browse/communities.tmpl
U   trunk/templates/Browse/recent_posts.tmpl
Modified: trunk/templates/Browse/communities.tmpl
===================================================================
--- trunk/templates/Browse/communities.tmpl	2010-11-23 10:40:28 UTC (rev 17755)
+++ trunk/templates/Browse/communities.tmpl	2010-11-23 10:44:55 UTC (rev 17756)
@@ -13,7 +13,7 @@
 			<li class="b-catalogue-item">
 				<dl>
 					<dt class="b-catalogue-item-name"><TMPL_VAR journal_name></dt>
-					<dd class="b-catalogue-item-userpic"><TMPL_IF userpic><TMPL_VAR userpic><TMPL_ELSE><TMPL_VAR userpic></TMPL_IF></dd>
+					<dd class="b-catalogue-item-userpic"><TMPL_IF userpic><TMPL_VAR userpic><TMPL_ELSE><img src="/img/profile_icons/comm.gif" alt="<TMPL_VAR journal_name>"/></TMPL_IF></dd>
 					<dd class="b-catalogue-item-ago"><TMPL_VAR updated_ago></dd>
 					<dd class="b-catalogue-item-desc">
 						<h4><TMPL_VAR journal_title></h4>

Modified: trunk/templates/Browse/recent_posts.tmpl
===================================================================
--- trunk/templates/Browse/recent_posts.tmpl	2010-11-23 10:40:28 UTC (rev 17755)
+++ trunk/templates/Browse/recent_posts.tmpl	2010-11-23 10:44:55 UTC (rev 17756)
@@ -13,7 +13,7 @@
 	<li class="b-catalogue-item">
 		<dl class="b-catalogue-item-header">
 			<dt class="b-catalogue-item-subject"><a href="<tmpl_var url_to_post>"><tmpl_var subject></a></dt>
-			<dd class="b-catalogue-item-userpic"><img src="<tmpl_var userpic>"></dd>
+			<dd class="b-catalogue-item-userpic"><tmpl_if userpic><img src="<tmpl_var userpic>"><tmpl_else><img src="/img/profile_icons/user.gif" alt=""/></tmpl_if></dd>
 			<tmpl_if poster><dd class="b-catalogue-item-author">Posted <TMPL_VAR posted_ago> by <TMPL_VAR poster> </dd></tmpl_if>
 			<tmpl_if tags><dd class="b-catalogue-item-tags">Tags: <tmpl_loop tags><tmpl_unless __first__>,&nbsp;</tmpl_unless><tmpl_var tag></tmpl_loop></dd></tmpl_if>
 			<tmpl_if mood><dd class="b-catalogue-item-mood">Mood: <tmpl_var mood></dd></tmpl_if>

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