madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22127: LJSUP-12151: New Repost feature (S1)

Committer: sbelyaev
LJSUP-12151: New Repost feature (S1)
U   trunk/bin/upgrading/s1styles.dat
U   trunk/cgi-bin/ljviews.pl
Modified: trunk/bin/upgrading/s1styles.dat
===================================================================
--- trunk/bin/upgrading/s1styles.dat	2012-05-31 09:40:38 UTC (rev 22126)
+++ trunk/bin/upgrading/s1styles.dat	2012-05-31 10:31:18 UTC (rev 22127)
@@ -1642,6 +1642,17 @@
 
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<div class="entry" id="entry%%itemid%%" clear="all">
+<div class="entrytext">
+<span class="entryheading"><span class="timestamp">%%datetime%%</span>: <img src="%%cons:img%%/icon_repost.png" width=13 height=15 vspace=0 hspace=0 alt="[Repost]">  %%subject%%</span>
+%%event%%
+%%currents%%</div>
+%%talklinks%%
+</div>
+
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <div class="entry" id="entry%%itemid%%" clear="all">
 <div class="entrytext">
@@ -1698,6 +1709,18 @@
 
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+<div class="entry" id="entry%%itemid%%">
+<div class="entrytext">
+<span class="entryheading">
+<span class="timestamp">%%datetime%%</span>: <img src="%%cons:img%%/icon_repost.png" width=13 height=15 vspace=0 hspace=0 alt="[Repost]"> <img src="%%cons:img%%/icon_private.gif" width=16 height=16 vspace=0 hspace=0 alt="[Private]"> %%subject%%</span>
+%%event%%
+%%currents%%</div>
+%%talklinks%%
+</div>
+
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <div class="entry" id="entry%%itemid%%">
 <div class="entrytext">
@@ -1731,6 +1754,18 @@
 
 <=DAY_EVENT_PROTECTED
 
+DAY_EVENT_PROTECTED_REPOST<=
+<div class="entry" id="entry%%itemid%%">
+<div class="entrytext">
+<span class="entryheading">
+<span class="timestamp">%%datetime%%</span>: <img src="%%cons:img%%/icon_repost.png" width=13 height=15 vspace=0 hspace=0 alt="[Repost]"> <img src="%%cons:img%%/icon_protected.gif" width=16 height=16 vspace=0 hspace=0 alt="[Protected]"> %%subject%%</span>
+%%event%%
+%%currents%%</div>
+%%talklinks%%
+</div>
+
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <div class="entry" id="entry%%itemid%%">
 <div class="entrytext">
@@ -1964,6 +1999,12 @@
 <TD><DIV STYLE="text-align:left">%%subject%% %%event%% %%currents%%</DIV>%%talklinks%%</TD></TR>
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<TR VALIGN=TOP><TD BGCOLOR=%%color:weak_back%% ALIGN=RIGHT><FONT COLOR=%%color:weak_text%%><tt><I>%%datetime%%</I></tt></FONT>
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost"></TD>
+<TD><DIV STYLE="text-align:left">%%subject%% %%event%% %%currents%%</DIV>%%talklinks%%</TD></TR>
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <TR VALIGN=TOP><TD BGCOLOR=%%color:weak_back%% ALIGN=RIGHT><FONT COLOR=%%color:weak_text%%><tt><I>%%datetime%%</I></tt></FONT>
 <IMG SRC="%%cons:img%%/icon_delayed.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Delayed"></TD>
@@ -2017,6 +2058,13 @@
 <TD><DIV STYLE="text-align:left">%%subject%% %%event%% %%currents%%</DIV>%%talklinks%%</TD></TR>
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+<TR VALIGN=TOP><TD BGCOLOR=%%color:weak_back%% ALIGN=RIGHT><FONT COLOR=%%color:weak_text%%><tt><I>%%datetime%%</I></tt></FONT><BR>
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+<IMG SRC="%%cons:img%%/icon_private.gif" WIDTH=16 HEIGHT=16 VSPACE=2 HSPACE=2 ALT="Private"></TD>
+<TD><DIV STYLE="text-align:left">%%subject%% %%event%% %%currents%%</DIV>%%talklinks%%</TD></TR>
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <TR VALIGN=TOP><TD BGCOLOR=%%color:weak_back%% ALIGN=RIGHT><FONT COLOR=%%color:weak_text%%><tt><I>%%datetime%%</I></tt></FONT><BR>
 <IMG SRC="%%cons:img%%/icon_delayed.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Delayed">
@@ -2034,6 +2082,13 @@
 <TD><DIV STYLE="text-align:left">%%subject%% %%event%% %%currents%%</DIV>%%talklinks%%</TD></TR>
 <=DAY_EVENT_PROTECTED
 
+DAY_EVENT_PROTECTED_REPOST<=
+<TR VALIGN=TOP><TD BGCOLOR=%%color:weak_back%% ALIGN=RIGHT><FONT COLOR=%%color:weak_text%%><tt><I>%%datetime%%</I></tt></FONT><BR>
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+<IMG SRC="%%cons:img%%/icon_protected.gif" WIDTH=14 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Protected"></TD>
+<TD><DIV STYLE="text-align:left">%%subject%% %%event%% %%currents%%</DIV>%%talklinks%%</TD></TR>
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <TR VALIGN=TOP><TD BGCOLOR=%%color:weak_back%% ALIGN=RIGHT><FONT COLOR=%%color:weak_text%%><tt><I>%%datetime%%</I></tt></FONT><BR>
 <IMG SRC="%%cons:img%%/icon_delayed.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Delayed">
@@ -2142,6 +2197,33 @@
 </table>
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<table cellspacing=0 class="entries">
+ <tr>
+  <td colspan=2 rowspan=2 class="metabox"><img src="%%cons:img%%/icon_repost.png">%%subject%%&nbsp;</td>
+  <td colspan=2>&nbsp;</td>
+ </tr>
+ <tr>
+  <td class="necorn">%%datetime%%</td>
+ </tr>
+ <tr>
+  <td class="sidepad">&nbsp;</td>
+  <td colspan=2 class="entrybox">
+  %%currents%%
+  %%event%%</td>
+  <td class="sidepad">&nbsp;</td>
+ </tr>
+ <tr>
+  <td>&nbsp;</td>
+  <td class="swcorn">&nbsp;</td>
+  <td colspan=2 rowspan=2 class="metabox">%%talklinks%%</td>
+ </tr>
+ <tr>
+  <td colspan=2>&nbsp;</td>
+ </tr>
+</table>
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <table cellspacing=0 class="entries">
  <tr>
@@ -2238,6 +2320,34 @@
 </table>
 <=DAY_EVENT_PRIVATE
 
+
+DAY_EVENT_PRIVATE_REPOST<=
+<table cellspacing=0 class="entries">
+ <tr>
+  <td colspan=2 rowspan=2 class="metabox"><img src="%%cons:img%%/icon_repost.png"><img src="%%cons:img%%/icon_private.gif">%%subject%%&nbsp;</td>
+  <td colspan=2>&nbsp;</td>
+ </tr>
+ <tr>
+  <td class="necorn">%%datetime%%</td>
+ </tr>
+ <tr>
+  <td class="sidepad">&nbsp;</td>
+  <td colspan=2 class="entrybox">
+  %%currents%%
+  %%event%%</td>
+  <td class="sidepad">&nbsp;</td>
+ </tr>
+ <tr>
+  <td>&nbsp;</td>
+  <td class="swcorn">&nbsp;</td>
+  <td colspan=2 rowspan=2 class="metabox">%%talklinks%%</td>
+ </tr>
+ <tr>
+  <td colspan=2>&nbsp;</td>
+ </tr>
+</table>
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <table cellspacing=0 class="entries">
  <tr>
@@ -2301,6 +2411,33 @@
 </table>
 <=DAY_EVENT_PROTECTED
 
+DAY_EVENT_PROTECTED_REPOST<=
+<table cellspacing=0 class="entries">
+ <tr>
+  <td colspan=2 rowspan=2 class="metabox"><img src="%%cons:img%%/icon_repost.png"><img src="%%cons:img%%/icon_protected.gif">%%subject%%&nbsp;</td>
+  <td colspan=2>&nbsp;</td>
+ </tr>
+ <tr>
+  <td class="necorn">%%datetime%%</td>
+ </tr>
+ <tr>
+  <td class="sidepad">&nbsp;</td>
+  <td colspan=2 class="entrybox">
+  %%currents%%
+  %%event%%</td>
+  <td class="sidepad">&nbsp;</td>
+ </tr>
+ <tr>
+  <td>&nbsp;</td>
+  <td class="swcorn">&nbsp;</td>
+  <td colspan=2 rowspan=2 class="metabox">%%talklinks%%</td>
+ </tr>
+ <tr>
+  <td colspan=2>&nbsp;</td>
+ </tr>
+</table>
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <table cellspacing=0 class="entries">
  <tr>
@@ -2529,6 +2666,32 @@
 
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<table width="600" cellpadding="2" cellspacing="0"
+border="0" summary="" class="entrybox">
+<tr>
+<td bgcolor="%%color:stronger_back%%" align="center">
+<table width="100%" cellpadding="5" cellspacing="0"
+border="0"
+summary="">
+<tr>
+<td class="caption"><img src="%%cons:img%%/icon_repost.png" width="13" height="15"> %%subject%%</td>
+<td align="right" class="index">[%%datetime%%]</td>
+</tr>
+<tr>
+<td colspan="2" bgcolor="%%color:page_back%%">
+%%currents%%
+%%event%%
+</td>
+</tr>
+%%talklinks%%
+</table>
+</td>
+</tr>
+</table><p>
+
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <table width="600" cellpadding="2" cellspacing="0"
 border="0" summary="" class="entrybox">
@@ -2659,6 +2822,34 @@
 
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+<table width="600" cellpadding="2" cellspacing="0"
+border="0" summary="" class="entrybox">
+<tr>
+<td bgcolor="%%color:stronger_back%%" align="center">
+<table width="100%" cellpadding="5" cellspacing="0"
+border="0"
+summary="">
+<tr>
+<td class="caption">
+<img src="%%cons:img%%/icon_repost.png" width="13" height="15"> 
+<img src="%%cons:img%%/icon_private.gif" width="14" height="15"> %%subject%%</td>
+<td align="right" class="index">[%%datetime%%]</td>
+</tr>
+<tr>
+<td colspan="2" bgcolor="%%color:page_back%%">
+%%currents%%
+%%event%%
+</td>
+</tr>
+%%talklinks%%
+</table>
+</td>
+</tr>
+</table><p>
+
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <table width="600" cellpadding="2" cellspacing="0"
 border="0" summary="" class="entrybox">
@@ -2724,6 +2915,35 @@
 
 <=DAY_EVENT_PROTECTED
 
+
+DAY_EVENT_PROTECTED_REPOST<=
+<table width="600" cellpadding="2" cellspacing="0"
+border="0" summary="" class="entrybox">
+<tr>
+<td bgcolor="%%color:stronger_back%%" align="center">
+<table width="100%" cellpadding="5" cellspacing="0"
+border="0"
+summary="">
+<tr>
+<td class="caption">
+<img src="%%cons:img%%/icon_repost.png" width="13" height="15">
+<img src="%%cons:img%%/icon_protected.gif" width="14" height="15"> %%subject%%</td>
+<td align="right" class="index">[%%datetime%%]</td>
+</tr>
+<tr>
+<td colspan="2" bgcolor="%%color:page_back%%">
+%%currents%%
+%%event%%
+</td>
+</tr>
+%%talklinks%%
+</table>
+</td>
+</tr>
+</table><p>
+
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <table width="600" cellpadding="2" cellspacing="0"
 border="0" summary="" class="entrybox">
@@ -2929,9 +3149,24 @@
 
 <=DAY_EVENT
 
+
+DAY_EVENT_REPOST<=
+  <div class="H3Holder">
+   <h3><span>%%datetime%%%%subject%%</span>
+   <img src="%%cons:img%%/icon_repost.png" style="width: 16px; height: 16px; margin: 2px; vertical-align: bottom;" alt="Repost">
+   </h3>
+<p>%%event%%</p>
+%%currents%%
+%%talklinks%%
+  </div>
+
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
   <div class="H3Holder">
-   <h3><span>%%datetime%%%%subject%%</span></h3>
+   <h3><span>%%datetime%%%%subject%%</span>
+       <img src="%%cons:img%%/icon_delayed.png" style="width: 16px; height: 16px; margin: 2px; vertical-align: bottom;" alt="Delayed">
+   </h3>
 <p>%%event%%</p>
 %%currents%%
 %%talklinks%%
@@ -2981,10 +3216,22 @@
 
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+  <div class="H3Holder">
+   <h3><span>%%datetime%%%%subject%%</span>
+      <img src="%%cons:img%%/icon_repost.png" style="width: 13px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Repost">
+   <img src="%%cons:img%%/icon_private.gif" style="width: 16px; height: 16px; margin: 2px; vertical-align: bottom;" alt="Private"></h3>
+<p>%%event%%</p>
+%%currents%%
+%%talklinks%%
+  </div>
+
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
   <div class="H3Holder">
    <h3><span>%%datetime%%%%subject%%</span>
-      <img src="%%cons:img%%/icon_delayed.png" style="width: 13px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Delayed">\
+      <img src="%%cons:img%%/icon_delayed.png" style="width: 13px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Delayed">
    <img src="%%cons:img%%/icon_private.gif" style="width: 16px; height: 16px; margin: 2px; vertical-align: bottom;" alt="Private"></h3>
 <p>%%event%%</p>
 %%currents%%
@@ -3007,10 +3254,23 @@
 
 <=DAY_EVENT_PROTECTED
 
+
+DAY_EVENT_PROTECTED_REPOST<=
+  <div class="H3Holder">
+   <h3><span>%%datetime%%%%subject%%</span>
+   <img src="%%cons:img%%/icon_repost.png" style="width: 13px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Repost">
+   <img src="%%cons:img%%/icon_protected.gif" style="width: 14px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Protected"></h3>
+<p>%%event%%</p>
+%%currents%%
+%%talklinks%%
+  </div>
+
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
   <div class="H3Holder">
    <h3><span>%%datetime%%%%subject%%</span>
-   <img src="%%cons:img%%/icon_delayed.png" style="width: 13px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Private">
+   <img src="%%cons:img%%/icon_delayed.png" style="width: 13px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Delayed">
    <img src="%%cons:img%%/icon_protected.gif" style="width: 14px; height: 15px; margin: 2px; vertical-align: bottom;" alt="Protected"></h3>
 <p>%%event%%</p>
 %%currents%%
@@ -3096,6 +3356,14 @@
 <P><CENTER><IMG SRC="%%cons:img%%/style/notepad/hr.gif" WIDTH="345" HEIGHT="23"></CENTER></P>
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost"> <FONT SIZE="+1">%%datetime%%%%subject%%</FONT><BR><BR>
+%%event%%
+%%currents%%
+%%talklinks%%
+<P><CENTER><IMG SRC="%%cons:img%%/style/notepad/hr.gif" WIDTH="345" HEIGHT="23"></CENTER></P>
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <IMG SRC="%%cons:img%%/icon_delayed.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Delayed"> <FONT SIZE="+1">%%datetime%%%%subject%%</FONT><BR><BR>
 %%event%%
@@ -3134,6 +3402,15 @@
 <P><CENTER><IMG SRC="%%cons:img%%/style/notepad/hr.gif" WIDTH="345" HEIGHT="23"></CENTER></P>
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+<IMG SRC="%%cons:img%%/icon_private.gif" WIDTH=14 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Private"> <FONT SIZE="+1">%%datetime%%%%subject%%</FONT><BR><BR>
+%%event%%
+%%currents%%
+%%talklinks%%
+<P><CENTER><IMG SRC="%%cons:img%%/style/notepad/hr.gif" WIDTH="345" HEIGHT="23"></CENTER></P>
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <IMG SRC="%%cons:img%%/icon_delayed.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Delayed">
 <IMG SRC="%%cons:img%%/icon_private.gif" WIDTH=14 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Private"> <FONT SIZE="+1">%%datetime%%%%subject%%</FONT><BR><BR>
@@ -3156,6 +3433,15 @@
 <P><CENTER><IMG SRC="%%cons:img%%/style/notepad/hr.gif" WIDTH="345" HEIGHT="23"></CENTER></P>
 <=DAY_EVENT_PROTECTED
 
+DAY_EVENT_PROTECTED_REPOST<=
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+<IMG SRC="%%cons:img%%/icon_protected.gif" WIDTH=14 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Protected"> <FONT SIZE="+1">%%datetime%%%%subject%%</FONT><BR><BR>
+%%event%%
+%%currents%%
+%%talklinks%%
+<P><CENTER><IMG SRC="%%cons:img%%/style/notepad/hr.gif" WIDTH="345" HEIGHT="23"></CENTER></P>
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <IMG SRC="%%cons:img%%/icon_delayed.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Delayed">
 <IMG SRC="%%cons:img%%/icon_protected.gif" WIDTH=14 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Protected"> <FONT SIZE="+1">%%datetime%%%%subject%%</FONT><BR><BR>
@@ -3257,6 +3543,21 @@
 </TR>
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<TR><TD VALIGN=TOP>
+<FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
+<B>%%datetime%%</B>%%subject%% &nbsp;<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+</FONT>
+<BR>
+<FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
+%%event%%
+</FONT>
+%%currents%% %%talklinks%%
+<P>
+</TD>
+</TR>
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <TR><TD VALIGN=TOP>
 <FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
@@ -3312,6 +3613,22 @@
 </TR>
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+<TR><TD VALIGN=TOP>
+<FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
+<B>%%datetime%%</B>%%subject%% &nbsp;
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+<IMG SRC="%%cons:img%%/icon_private.gif" WIDTH=16 HEIGHT=16 VSPACE=2 HSPACE=2 ALT="Private"></FONT>
+<BR>
+<FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
+%%event%%
+</FONT>
+%%currents%% %%talklinks%%
+<P>
+</TD>
+</TR>
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <TR><TD VALIGN=TOP>
 <FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
@@ -3346,6 +3663,22 @@
 </TR>
 <=DAY_EVENT_PROTECTED
 
+DAY_EVENT_PROTECTED_REPOST<=
+<TR><TD VALIGN=TOP>
+<FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
+<B>%%datetime%%</B>%%subject%% &nbsp;
+<IMG SRC="%%cons:img%%/icon_repost.png" WIDTH=13 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Repost">
+<IMG SRC="%%cons:img%%/icon_protected.gif" WIDTH=14 HEIGHT=15 VSPACE=2 HSPACE=2 ALT="Protected"></FONT>
+<BR>
+<FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
+%%event%%
+</FONT>
+%%currents%% %%talklinks%%
+<P>
+</TD>
+</TR>
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <TR><TD VALIGN=TOP>
 <FONT FACE="Verdana,Arial,Helvetica" SIZE="2">
@@ -3481,6 +3814,21 @@
 <br><br><hr size="1">
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<br>
+<table>
+%%altposter%%
+<tr><td><font class="date"><b>Date:</b></font></td><td><font class="date">%%datetime%%</font></td></tr>
+<tr><td><font class="date"><b>Subject:</b></font></td><td><font class="date">%%subject%%<font class="date"></td></tr>
+<tr><td><font class="date"><b>Event type:</b></font></td><td><font class="date">Repost</font></td></tr>
+<tr><td><font class="date"><b>Security:</b></font></td><td><font class="date">Public</font></td></tr>
+%%currents%%
+</table>
+<p>%%event%%</p>
+<font class="author">%%talklinks%%</font>
+<br><br><hr size="1">
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <br>
 <table>
@@ -3552,6 +3900,21 @@
 <br><br><hr size="1">
 <=DAY_EVENT_PRIVATE
 
+DAY_EVENT_PRIVATE_REPOST<=
+<br>
+<table>
+%%altposter%%
+<tr><td><font class="date"><b>Date:</b></font></td><td><font class="date">%%datetime%%</font></td></tr>
+<tr><td><font class="date"><b>Subject:</b></font></td><td><font class="date">%%subject%%<font class="date"></td></tr>
+<tr><td><font class="date"><b>Event type:</b></font></td><td><font class="date">Repost</font></td></tr>
+<tr><td><font class="date"><b>Security:</b></font></td><td><font class="date">Private</font></td></tr>
+%%currents%%
+</table>
+<p>%%event%%</p>
+<font class="author">%%talklinks%%</font>
+<br><br><hr size="1">
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <br>
 <table>
@@ -3585,6 +3948,22 @@
 <br><br><hr size="1">
 <=DAY_EVENT_PROTECTED
 
+
+DAY_EVENT_PROTECTED_REPOST<=
+<br>
+<table>
+%%altposter%%
+<tr><td><font class="date"><b>Date:</b></font></td><td><font class="date">%%datetime%%</font></td></tr>
+<tr><td><font class="date"><b>Subject:</b></font></td><td><font class="date">%%subject%%<font class="date"></td></tr>
+<tr><td><font class="date"><b>Event type:</b></font></td><td><font class="date">Repost</font></td></tr>
+<tr><td><font class="date"><b>Security:</b></font></td><td><font class="date">Protected</font></td></tr>
+%%currents%%
+</table>
+<p>%%event%%</p>
+<font class="author">%%talklinks%%</font>
+<br><br><hr size="1">
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <br>
 <table>
@@ -3804,6 +4183,31 @@
 <BR>
 <=DAY_EVENT
 
+DAY_EVENT_REPOST<=
+<DIV ALIGN="right">
+<TABLE BORDER="0" WIDTH="95%" CELLPADDING="5" CELLSPACING="1" BGCOLOR="%%color:weak_back%%">
+<TR>
+<TD BGCOLOR="%%color:weak_back%%">
+<TABLE BORDER="0">
+<TR><TD ROWSPAN="4" VALIGN="top"><IMG SRC="%%cons:img%%/icon_repost.png"></TD></TR>
+%%subject%%
+%%altposter%%
+<TR><TD ALIGN="right"><FONT COLOR="%%color:weak_text%%">Time:</FONT></TD><TD><FONT COLOR="%%color:weak_text%%">%%datetime%%</FONT></TD></TR>
+%%currents%%
+</TABLE>
+</TD>
+</TR>
+<TR>
+<TD BGCOLOR="%%color:page_back%%">
+%%event%%
+</TD>
+</TR>
+%%talklinks%%
+</TABLE>
+</DIV>
+<BR>
+<=DAY_EVENT_REPOST
+
 DAY_EVENT_DELAYED<=
 <DIV ALIGN="right">
 <TABLE BORDER="0" WIDTH="95%" CELLPADDING="5" CELLSPACING="1" BGCOLOR="%%color:weak_back%%">
@@ -3902,6 +4306,32 @@
 <BR>
 <=DAY_EVENT_PRIVATE
 
+
+DAY_EVENT_PRIVATE_REPOST<=
+<DIV ALIGN="right">
+<TABLE BORDER="0" WIDTH="95%" CELLPADDING="5" CELLSPACING="1" BGCOLOR="%%color:weak_back%%">
+<TR>
+<TD BGCOLOR="%%color:weak_back%%">
+<TABLE BORDER="0">
+<TR><TD ROWSPAN="4" VALIGN="top"><IMG SRC="%%cons:img%%/icon_repost.png"><IMG SRC="%%cons:img%%/icon_private.gif"></TD></TR>
+%%subject%%
+%%altposter%%
+<TR><TD ALIGN="right"><FONT COLOR="%%color:weak_text%%">Time:</FONT></TD><TD><FONT COLOR="%%color:weak_text%%">%%datetime%%</FONT></TD></TR>
+%%currents%%
+</TABLE>
+</TD>
+</TR>
+<TR>
+<TD BGCOLOR="%%color:page_back%%">
+%%event%%
+</TD>
+</TR>
+%%talklinks%%
+</TABLE>
+</DIV>
+<BR>
+<=DAY_EVENT_PRIVATE_REPOST
+
 DAY_EVENT_PRIVATE_DELAYED<=
 <DIV ALIGN="right">
 <TABLE BORDER="0" WIDTH="95%" CELLPADDING="5" CELLSPACING="1" BGCOLOR="%%color:weak_back%%">
@@ -3957,6 +4387,31 @@
 <BR>
 <=DAY_EVENT_PROTECTED
 
+DAY_EVENT_PROTECTED_REPOST<=
+<DIV ALIGN="right">
+<TABLE BORDER="0" WIDTH="95%" CELLPADDING="5" CELLSPACING="1" BGCOLOR="%%color:weak_back%%">
+<TR>
+<TD BGCOLOR="%%color:weak_back%%">
+<TABLE BORDER="0">
+<TR><TD ROWSPAN="4" VALIGN="top"><IMG SRC="%%cons:img%%/icon_repost.png"><IMG SRC="%%cons:img%%/icon_protected.gif"></TD></TR>
+%%subject%%
+%%altposter%%
+<TR><TD ALIGN="right"><FONT COLOR="%%color:weak_text%%">Time:</FONT></TD><TD><FONT COLOR="%%color:weak_text%%">%%datetime%%</FONT></TD></TR>
+%%currents%%
+</TABLE>
+</TD>
+</TR>
+<TR>
+<TD BGCOLOR="%%color:page_back%%">
+%%event%%
+</TD>
+</TR>
+%%talklinks%%
+</TABLE>
+</DIV>
+<BR>
+<=DAY_EVENT_PROTECTED_REPOST
+
 DAY_EVENT_PROTECTED_DELAYED<=
 <DIV ALIGN="right">
 <TABLE BORDER="0" WIDTH="95%" CELLPADDING="5" CELLSPACING="1" BGCOLOR="%%color:weak_back%%">

Modified: trunk/cgi-bin/ljviews.pl
===================================================================
--- trunk/cgi-bin/ljviews.pl	2012-05-31 09:40:38 UTC (rev 22126)
+++ trunk/cgi-bin/ljviews.pl	2012-05-31 10:31:18 UTC (rev 22127)
@@ -2834,8 +2834,19 @@
             $vars->{'DAY_EVENT_PRIVATE'}) { $var = 'DAY_EVENT_PRIVATE'; }
         if ($security eq "usemask" &&
             $vars->{'DAY_EVENT_PROTECTED'}) { $var = 'DAY_EVENT_PROTECTED'; }
-        if (LJ::is_enabled("delayed_entries")) {
-            $var .= '_STICKY' if $entry_obj->is_sticky();
+
+        if (!$repost_entry_obj) {
+            if (LJ::is_enabled("delayed_entries")) {
+                $var .= '_STICKY' if $entry_obj->is_sticky();
+            }
+        } else {
+            if (LJ::is_enabled("entry_reference")) {
+                $var .= '_REPOST';
+
+                my $reposter = $repost_entry_obj->poster;
+                my $ref_text = LJ::Lang::ml( 'entry.reference.reposter',
+                                    { 'reposter' => LJ::ljuser2($reposter) } );
+            }
         }
 
         $events .= LJ::fill_var_props($vars, $var, \%day_event);

Tags: dat, livejournal, madeon, pl, sbelyaev
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