added permalink-generating code to topics.jsp and posts.jsp, and fixed
a bug in StringUtil.splitList
This commit is contained in:
		
							parent
							
								
									f237e30021
								
							
						
					
					
						commit
						e40c1e6a58
					
				@ -310,6 +310,9 @@ public class StringUtil
 | 
			
		||||
 | 
			
		||||
    } // end for
 | 
			
		||||
 | 
			
		||||
    if (accumulate)
 | 
			
		||||
      rc.add(buf.toString());
 | 
			
		||||
 | 
			
		||||
    if (rc.isEmpty())
 | 
			
		||||
      return Collections.EMPTY_LIST;
 | 
			
		||||
    else
 | 
			
		||||
 | 
			
		||||
@ -161,6 +161,19 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l
 | 
			
		||||
       ]
 | 
			
		||||
    </util:font></TD>
 | 
			
		||||
  </TR>
 | 
			
		||||
  <TR VALIGN=MIDDLE>
 | 
			
		||||
    <TD ALIGN=CENTER COLSPAN=2><util:font color="content.fg" size="post-reference">
 | 
			
		||||
      <util:xlink>
 | 
			
		||||
        <util:href type="servlet"><%= view.getPageQID() %></util:href>
 | 
			
		||||
        <util:text>[Permalink to this topic]</util:text>
 | 
			
		||||
      </util:xlink>
 | 
			
		||||
        
 | 
			
		||||
      <util:xlink>
 | 
			
		||||
        <util:href type="servlet"><%= view.getPageQID() %>.<%= my_first %>-<%= my_last %></util:href>
 | 
			
		||||
        <util:text>[Permalink to these posts]</util:text>
 | 
			
		||||
      </util:xlink>
 | 
			
		||||
    </util:font></TD>
 | 
			
		||||
  </TR>
 | 
			
		||||
</TABLE>
 | 
			
		||||
<% out.flush(); response.flushBuffer(); %>
 | 
			
		||||
 | 
			
		||||
@ -199,6 +212,11 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l
 | 
			
		||||
    </util:xlink>
 | 
			
		||||
    <util:font color="content.fg" size="post-reference">
 | 
			
		||||
      <<%= view.getTopicStem() %><%= msg.getPostNumber() %>>
 | 
			
		||||
        
 | 
			
		||||
      <util:xlink>
 | 
			
		||||
        <util:href type="servlet"><%= view.getPageQID() %>.<%= msg.getPostNumber() %></util:href>
 | 
			
		||||
        <util:text>[Permalink]</util:text>
 | 
			
		||||
      </util:xlink>
 | 
			
		||||
    </util:font>
 | 
			
		||||
 | 
			
		||||
<%    
 | 
			
		||||
@ -376,6 +394,19 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l
 | 
			
		||||
<util:comment>End Actual Messages</util:comment>
 | 
			
		||||
 | 
			
		||||
<TABLE BORDER=0 WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
 | 
			
		||||
  <TR VALIGN=MIDDLE>
 | 
			
		||||
    <TD ALIGN=CENTER COLSPAN=2><util:font color="content.fg" size="post-reference">
 | 
			
		||||
      <util:xlink>
 | 
			
		||||
        <util:href type="servlet"><%= view.getPageQID() %></util:href>
 | 
			
		||||
        <util:text>[Permalink to this topic]</util:text>
 | 
			
		||||
      </util:xlink>
 | 
			
		||||
        
 | 
			
		||||
      <util:xlink>
 | 
			
		||||
        <util:href type="servlet"><%= view.getPageQID() %>.<%= my_first %>-<%= my_last %></util:href>
 | 
			
		||||
        <util:text>[Permalink to these posts]</util:text>
 | 
			
		||||
      </util:xlink>
 | 
			
		||||
    </util:font></TD>
 | 
			
		||||
  </TR>
 | 
			
		||||
  <TR VALIGN=BOTTOM>
 | 
			
		||||
    <TD NOWRAP ALIGN=LEFT> </TD>
 | 
			
		||||
    <TD NOWRAP ALIGN=RIGHT CLASS="content"><util:font color="content.fg" size="content">
 | 
			
		||||
@ -466,3 +497,4 @@ conf/posts.js.vs?<%= topic_locator %>&p1=<%= my_last + 1 %>&p2=<%= Math.min(my_l
 | 
			
		||||
%>
 | 
			
		||||
<%= view.getBottomCustom() %>
 | 
			
		||||
<% out.flush(); response.flushBuffer(); %>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -83,6 +83,11 @@
 | 
			
		||||
        <util:text><util:button id="add_to_hotlist"/></util:text>
 | 
			
		||||
      </util:xlink> 
 | 
			
		||||
    </conf:can_add_to_hotlist>
 | 
			
		||||
    <BR>
 | 
			
		||||
    <util:font color="content.fg" size="post-reference"><util:xlink>
 | 
			
		||||
      <util:href type="servlet"><%= view.getPageQID() %></util:href>
 | 
			
		||||
      <util:text>[Permalink to this conference]</util:text>
 | 
			
		||||
    </util:xlink></util:font>
 | 
			
		||||
  </DIV>
 | 
			
		||||
  <% out.flush(); response.flushBuffer(); %>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user