Committer: mchervonniy
LJSV-1823: Edit Journal Privacy Tool should be Linked from Edit Journal EntriesU trunk/htdocs/editjournal.bml U trunk/htdocs/editjournal.bml.text
Modified: trunk/htdocs/editjournal.bml =================================================================== --- trunk/htdocs/editjournal.bml 2011-10-12 11:22:37 UTC (rev 20291) +++ trunk/htdocs/editjournal.bml 2011-10-12 12:36:45 UTC (rev 20292) @@ -40,6 +40,8 @@ my $ret; my $getextra = undef; + my $editprivacy_link = "<p class='i-bubble b-bubble-lite b-bubble-editprivacy b-bubble-noarrow'>" . BML::ml('.editprivacy', { aopts => "href='editprivacy.bml'" }) . "</p>"; + LJ::need_res(qw( stc/entry.css stc/editjournal.css @@ -804,6 +806,8 @@ # header $ret .= "<div class='b-editentries-header'>"; $ret .= "<h1>$title</h1>"; + my $ad = LJ::get_ads({ location => 'bml.editjournal', ljadwrapper => 1 }); + $ret .= $editprivacy_link if !$ad; # edit form @@ -928,7 +932,7 @@ my $ad = LJ::get_ads({ location => 'bml.editjournal', ljadwrapper => 1 }); if ($ad) { - $ret .= "</td><td valign='top'>$ad"; + $ret .= "</td><td valign='top'>$editprivacy_link $ad"; } $ret .= "</td></tr></table>"; Modified: trunk/htdocs/editjournal.bml.text =================================================================== --- trunk/htdocs/editjournal.bml.text 2011-10-12 11:22:37 UTC (rev 20291) +++ trunk/htdocs/editjournal.bml.text 2011-10-12 12:36:45 UTC (rev 20292) @@ -74,3 +74,4 @@ .viewwhat=View What Entries: +.editprivacy=You can edit <a [[aopts]]>Your Privacy List</a>