Changeset 5484


Ignore:
Timestamp:
Nov 11, 2010, 8:06:39 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1546: Publish news as a rss feed

Added <link> tag to index page that make browsers display an rss icon in the title bar (or similar).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/index.jsp

    r5426 r5484  
    2727--%>
    2828<%@ page pageEncoding="UTF-8" session="false"
    29   import="net.sf.basedb.core.*"
     29  import="net.sf.basedb.core.Application"
     30  import="net.sf.basedb.core.SessionControl"
    3031  import="net.sf.basedb.clients.web.Base"
     32  import="net.sf.basedb.clients.web.servlet.RssNewsFeed"
    3133%>
    3234<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
     
    3638%>
    3739<base:page type="frameset" title="">
    38   <base:head />
     40  <base:head>
     41  <%
     42  if (RssNewsFeed.isEnabled())
     43  {
     44    %>
     45    <link rel="alternate" type="application/rss+xml"
     46      title="BASE news from <%=Application.getHostName()%><%=request.getContextPath()%>"
     47      href="info/news.rss"/>
     48    <%
     49  }
     50  %>
     51  </base:head>
    3952  <frameset rows="*,50" frameborder="no" border="0">
    4053    <frame name="main" src="main.jsp?ID=<%=ID%>" scrolling="auto" marginwidth=0 marginheight=0 noresize>
Note: See TracChangeset for help on using the changeset viewer.