Changeset dd5f8041


Ignore:
Timestamp:
Jul 16, 2015 6:06:48 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
63e934f
Parents:
35b0e99f
Message:

Console: Add dates to news headings
Spacing for news headings in summary bar

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/update/NewsFetcher.java

    r35b0e99f rdd5f8041  
    1111import java.net.URI;
    1212import java.net.URISyntaxException;
     13import java.text.DateFormat;
    1314import java.util.ArrayList;
    1415import java.util.Collections;
     
    1920import java.util.Map;
    2021import java.util.StringTokenizer;
     22import java.util.TimeZone;
    2123
    2224import net.i2p.crypto.SU3File;
     
    554556            if (entries == null)
    555557                return;
     558            DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT);
     559            // the router sets the JVM time zone to UTC but saves the original here so we can get it
     560            String systemTimeZone = _context.getProperty("i2p.systemTimeZone");
     561            if (systemTimeZone != null)
     562                fmt.setTimeZone(TimeZone.getTimeZone(systemTimeZone));
    556563            for (NewsEntry e : entries) {
    557564                if (e.title == null || e.content == null)
    558565                    continue;
    559                 out.write("<!-- Entry Date: " + (new Date(e.updated)) + " -->\n");
     566                Date date = new Date(e.updated);
     567                out.write("<!-- Entry Date: " + date + " -->\n");
    560568                out.write("<h3>");
     569                out.write(fmt.format(date));
     570                out.write(": ");
    561571                out.write(e.title);
    562572                out.write("</h3>\n");
  • history.txt

    r35b0e99f rdd5f8041  
     12015-07-16 zzz
     2 * Console: Add dates to news headings
     3
    142015-07-12 zzz
    25 * Findbugs all over
  • installer/resources/themes/console/light/console.css

    r35b0e99f rdd5f8041  
    252252     list-style: none outside url('images/newsbullet_mini.png');
    253253     margin: 0 -4px 2px 8px;
     254     line-height: 140%;
    254255}
    255256
  • router/java/src/net/i2p/router/RouterVersion.java

    r35b0e99f rdd5f8041  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 16;
     21    public final static long BUILD = 17;
    2222
    2323    /** for example "-test" */
    24     public final static String EXTRA = "";
     24    public final static String EXTRA = "-rc";
    2525    public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
    2626    public static void main(String args[]) {
Note: See TracChangeset for help on using the changeset viewer.