Ignore:
Timestamp:
Oct 25, 2017 9:38:12 AM (3 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
ac833ec
Parents:
df95e29
Message:

/configui: Use larger flags for language selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/flags.jsp

    rdf95e29 rda9c06e  
    1010/**
    1111 *  flags.jsp?c=de => icons/flags/de.png
     12 *  flags.jsp?c=de&s=48 => icons/flags48x48/de.png
    1213 *  with headers set so the browser caches.
    1314 */
     
    1617    (c.length() == 2 || c.length() == 7) &&
    1718    c.replaceAll("[a-z0-9_]", "").length() == 0) {
     19    String flagSet = "flags";
     20    String s = request.getParameter("s");
     21    if ("48".equals(s)) {
     22        flagSet = "flags48x48";
     23    }
    1824    java.io.OutputStream cout = response.getOutputStream();
    1925    String base = net.i2p.I2PAppContext.getGlobalContext().getBaseDir().getAbsolutePath();
    2026    String file = "docs" + java.io.File.separatorChar + "icons" + java.io.File.separatorChar +
    21                   "flags" + java.io.File.separatorChar + c + ".png";
     27                  flagSet + java.io.File.separatorChar + c + ".png";
    2228    java.io.File ffile = new java.io.File(base, file);
    2329    long lastmod = ffile.lastModified();
Note: See TracChangeset for help on using the changeset viewer.