wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17844: LJSUP-7468. contextual popup don't viewi...

Committer: gprochaev
LJSUP-7468. contextual popup don't viewing

U   trunk/cgi-bin/LJ/Widget/Browse.pm
U   trunk/templates/Browse/featured_communities.tmpl
Modified: trunk/cgi-bin/LJ/Widget/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Browse.pm	2010-12-01 11:36:54 UTC (rev 17843)
+++ trunk/cgi-bin/LJ/Widget/Browse.pm	2010-12-01 11:49:18 UTC (rev 17844)
@@ -220,6 +220,7 @@
                 {
                     featured            => 0,
                     userpic             => $userpic,
+                    ljuser              => LJ::ljuser($comm->user),
                     journal_name        => $comm->ljuser_display(),
                     journal_user        => $comm->{user},
                     journal_base        => $comm->journal_base(),
@@ -353,6 +354,7 @@
                 userpic         => $userpic ? $userpic->url : '',
                 community       => $c->user,
                 bio             => $descr_trimmed,
+                ljuser          => LJ::ljuser($c->user),
                 is_subtitle_trimmed => $descr ne $descr_trimmed ? 1 : 0,
             };
         }
@@ -365,6 +367,7 @@
         $posts = $vertical->load_vertical_posts( count => $vertical->show_entries, is_random => 1 );
         foreach my $post (@$posts) {
             my $entry = LJ::Entry->new ($post->{journalid}, jitemid => $post->{jitemid});
+            next unless $entry;
             next unless $entry->valid;
             my $userpic = $entry->userpic;
             my $poster = $entry->poster;

Modified: trunk/templates/Browse/featured_communities.tmpl
===================================================================
--- trunk/templates/Browse/featured_communities.tmpl	2010-12-01 11:36:54 UTC (rev 17843)
+++ trunk/templates/Browse/featured_communities.tmpl	2010-12-01 11:49:18 UTC (rev 17844)
@@ -16,7 +16,7 @@
 					<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>
+							<tmpl_var ljuser>
 						</p>
 						<p class="b-posts-data"><tmpl_var bio><tmpl_if is_subtitle_trimmed>&hellip;</tmpl_if></p>
 						<ul class="b-catalogue-item-action">

Tags: livejournal, pm, tmpl, wisest-owl
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