Changeset 5b31540


Ignore:
Timestamp:
Dec 2, 2016 5:23:02 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5be077e2
Parents:
ec94a6e
Message:

Console: Version the css links

Location:
apps
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    rec94a6e r5b31540  
    2525import javax.servlet.http.HttpServletResponse;
    2626
     27import net.i2p.CoreVersion;
    2728import net.i2p.data.Base32;
    2829import net.i2p.data.Base64;
     
    26002601    private static final String DOCTYPE = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    26012602    private static final String HEADER_A = "<link href=\"";
    2602     private static final String HEADER_B = "snark.css\" rel=\"stylesheet\" type=\"text/css\" >";
     2603    private static final String HEADER_B = "snark.css?" + CoreVersion.VERSION + "\" rel=\"stylesheet\" type=\"text/css\" >";
    26032604
    26042605
  • apps/i2ptunnel/jsp/editClient.jsp

    rec94a6e r5b31540  
    2424    <% if (editBean.allowCSS()) {
    2525  %><link rel="icon" href="<%=editBean.getTheme()%>images/favicon.ico" />
    26     <link href="<%=editBean.getTheme()%>default.css" rel="stylesheet" type="text/css" />
    27     <link href="<%=editBean.getTheme()%>i2ptunnel.css" rel="stylesheet" type="text/css" />
     26    <link href="<%=editBean.getTheme()%>default.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
     27    <link href="<%=editBean.getTheme()%>i2ptunnel.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
    2828    <% }
    2929  %>
  • apps/i2ptunnel/jsp/editServer.jsp

    rec94a6e r5b31540  
    2424    <% if (editBean.allowCSS()) {
    2525  %><link rel="icon" href="<%=editBean.getTheme()%>images/favicon.ico" />
    26     <link href="<%=editBean.getTheme()%>default.css" rel="stylesheet" type="text/css" />
    27     <link href="<%=editBean.getTheme()%>i2ptunnel.css" rel="stylesheet" type="text/css" />
     26    <link href="<%=editBean.getTheme()%>default.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
     27    <link href="<%=editBean.getTheme()%>i2ptunnel.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
    2828    <% }
    2929  %>
  • apps/i2ptunnel/jsp/index.jsp

    rec94a6e r5b31540  
    2929    <% if (indexBean.allowCSS()) {
    3030  %><link rel="icon" href="<%=indexBean.getTheme()%>images/favicon.ico" />
    31     <link href="<%=indexBean.getTheme()%>default.css" rel="stylesheet" type="text/css" />
    32     <link href="<%=indexBean.getTheme()%>i2ptunnel.css" rel="stylesheet" type="text/css" />
     31    <link href="<%=indexBean.getTheme()%>default.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
     32    <link href="<%=indexBean.getTheme()%>i2ptunnel.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
    3333    <% }
    3434  %>
  • apps/i2ptunnel/jsp/register.jsp

    rec94a6e r5b31540  
    3030    <% if (editBean.allowCSS()) {
    3131  %><link rel="icon" href="<%=editBean.getTheme()%>images/favicon.ico" />
    32     <link href="<%=editBean.getTheme()%>default.css" rel="stylesheet" type="text/css" />
    33     <link href="<%=editBean.getTheme()%>i2ptunnel.css" rel="stylesheet" type="text/css" />
     32    <link href="<%=editBean.getTheme()%>default.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
     33    <link href="<%=editBean.getTheme()%>i2ptunnel.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
    3434    <% }
    3535  %>
  • apps/i2ptunnel/jsp/wizard.jsp

    rec94a6e r5b31540  
    6363    <% if (editBean.allowCSS()) {
    6464  %><link rel="icon" href="<%=editBean.getTheme()%>images/favicon.ico" />
    65     <link href="<%=editBean.getTheme()%>default.css" rel="stylesheet" type="text/css" />
    66     <link href="<%=editBean.getTheme()%>i2ptunnel.css" rel="stylesheet" type="text/css" />
     65    <link href="<%=editBean.getTheme()%>default.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
     66    <link href="<%=editBean.getTheme()%>i2ptunnel.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" />
    6767    <% }
    6868  %>
  • apps/routerconsole/jsp/css.jsi

    rec94a6e r5b31540  
    4444   }
    4545%>
    46 <link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>console.css" rel="stylesheet" type="text/css">
     46<link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>console.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
    4747<%
    4848   if (intl.getLang().equals("zh")) {
    4949       // make the fonts bigger for chinese
    5050%>
    51 <link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>console_big.css" rel="stylesheet" type="text/css">
     51<link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>console_big.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
    5252<%
    5353   } else if (intl.getLang().equals("ar")) {
    5454       // Use RTL theme for Arabic
    5555%>
    56 <link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>console_ar.css" rel="stylesheet" type="text/css">
     56<link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>console_ar.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
    5757<%
    5858   }
     
    6060%>
    6161<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    62 <link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>mobile.css" rel="stylesheet" type="text/css">
     62<link href="<%=intl.getTheme(request.getHeader("User-Agent"))%>mobile.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css">
    6363<%
    6464   }
    6565%>
    66 <!--[if IE]><link href="/themes/console/classic/ieshim.css" rel="stylesheet" type="text/css" /><![endif]-->
     66<!--[if IE]><link href="/themes/console/classic/ieshim.css?<%=net.i2p.CoreVersion.VERSION%>" rel="stylesheet" type="text/css" /><![endif]-->
  • apps/susidns/src/jsp/addressbook.jsp

    rec94a6e r5b31540  
    5050<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    5151<title>${book.book} <%=intl._t("address book")%> - susidns</title>
    52 <link rel="stylesheet" type="text/css" href="<%=book.getTheme()%>susidns.css">
     52<link rel="stylesheet" type="text/css" href="<%=book.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
    5353</head>
    5454<body>
  • apps/susidns/src/jsp/config.jsp

    rec94a6e r5b31540  
    4747<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    4848<title><%=intl._t("configuration")%> - susidns</title>
    49 <link rel="stylesheet" type="text/css" href="<%=base.getTheme()%>susidns.css">
     49<link rel="stylesheet" type="text/css" href="<%=base.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
    5050</head>
    5151<body>
  • apps/susidns/src/jsp/details.jsp

    rec94a6e r5b31540  
    4444<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    4545<title>${book.book} <%=intl._t("addressbook")%> - susidns</title>
    46 <link rel="stylesheet" type="text/css" href="<%=book.getTheme()%>susidns.css">
     46<link rel="stylesheet" type="text/css" href="<%=book.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
    4747</head>
    4848<body>
  • apps/susidns/src/jsp/index.jsp

    rec94a6e r5b31540  
    4545<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    4646<title><%=intl._t("Introduction")%> - SusiDNS</title>
    47 <link rel="stylesheet" type="text/css" href="<%=base.getTheme()%>susidns.css">
     47<link rel="stylesheet" type="text/css" href="<%=base.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
    4848</head>
    4949<body>
  • apps/susidns/src/jsp/subscriptions.jsp

    rec94a6e r5b31540  
    4646<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    4747<title><%=intl._t("subscriptions")%> - susidns</title>
    48 <link rel="stylesheet" type="text/css" href="<%=subs.getTheme()%>susidns.css">
     48<link rel="stylesheet" type="text/css" href="<%=subs.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
    4949</head>
    5050<body>
  • apps/susimail/src/src/i2p/susi/webmail/WebMail.java

    rec94a6e r5b31540  
    6868import javax.servlet.http.HttpSessionBindingListener;
    6969
     70import net.i2p.CoreVersion;
    7071import net.i2p.I2PAppContext;
    7172import net.i2p.data.DataHelper;
     
    17801781                                        "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n" +
    17811782                                        "<title>" + _t("SusiMail") + " - " + subtitle + "</title>\n" +
    1782                                         "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + sessionObject.themePath + "susimail.css\">\n" );
     1783                                        "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + sessionObject.themePath + "susimail.css?" + CoreVersion.VERSION + "\">\n" );
    17831784                                if (sessionObject.isMobile ) {
    17841785                                        out.println( "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes\" />\n" +
Note: See TracChangeset for help on using the changeset viewer.