Commit 75824e35 authored by Matt Edman's avatar Matt Edman
Browse files

"Last Updated:" is perhaps more intuitive than "Published:". And switch around

the ordering of the bandwidth and uptime lines.


svn:r880
parent 3246946f
Loading
Loading
Loading
Loading
+7 −6
Changes for src/gui/network/routerdescriptorview.cpp: 7 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -98,17 +98,18 @@ RouterDescriptorView::display(QList<RouterDescriptor> rdlist)
      html.append(trow(tcol(b(tr("Contact:")))    + tcol(escape(rd.contact()))));
    }

    /* Date the router was published */
    html.append(trow(tcol(b(tr("Published:")))  +
                     tcol(formatPublished(rd.published()))));

    /* If the router is online, then show the uptime and bandwidth stats. */
    if (!rd.offline()) {
      html.append(trow(tcol(b(tr("Uptime:")))   + 
                       tcol(formatUptime(rd.uptime()))));
      html.append(trow(tcol(b(tr("Bandwidth:")))  + 
                       tcol(formatBandwidth(rd.observedBandwidth()) + " KB/s")));
      html.append(trow(tcol(b(tr("Uptime:")))   + 
                       tcol(formatUptime(rd.uptime()))));
    }
    
    /* Date the router was published */
    html.append(trow(tcol(b(tr("Last Updated:")))  +
                     tcol(formatPublished(rd.published()))));
    
    html.append("</table>");
    
    /* If there are multiple descriptors, and this isn't is the last one