Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prettied up export log a bit.

  • Loading branch information...
commit 0fb41fabd54452ffba4f9d67aad1b40ac8e960c5 1 parent 58e2993
Daniel Kennett authored
View
6 500px Aperture Uploader/FiveHundredPxExportLogger.m
@@ -115,9 +115,9 @@ -(NSString *)fileNameForLogAtDate:(NSDate *)date {
formatter.dateStyle = NSDateFormatterShortStyle;
formatter.timeStyle = NSDateFormatterShortStyle;
- return [[NSString stringWithFormat:DKLocalizedStringForClass(@"log filename template"),
- [formatter stringFromDate:date]] stringByReplacingOccurrencesOfString:@"/" withString:@"-"];
-
+ return [[[NSString stringWithFormat:DKLocalizedStringForClass(@"log filename template"),
+ [formatter stringFromDate:date]] stringByReplacingOccurrencesOfString:@"/" withString:@"-"]
+ stringByReplacingOccurrencesOfString:@":" withString:@"."];
}
-(NSString *)outputForLogEntry:(NSDictionary *)entry {
View
41 500px Aperture Uploader/en.lproj/log_template.html
@@ -1,31 +1,50 @@
<html>
<head>
- <title>500px Aperture Export Log</title>
+ <title>500px Aperture Export Log: $UPLOAD_START_DATE</title>
+ <script type="text/javascript">
+ function hideAutoLoadIfApplicable() {
+ if (location.search.indexOf("auto_opened=true") == -1) {
+ document.getElementById("auto-open-explanation").style.display = "none";
+ }
+ }
+ </script>
<style type="text/css">
- <!--
- html { font-family: Helvetica; }
- body { width: 80%; margin-left: auto; margin-right: auto; margin-top: 50px; }
- p.footer { text-align: center; font-size: small; }
- -->
- </style>
+ <!--
+ html { font-family: Helvetica; }
+ body { width: 80%; margin-left: auto; margin-right: auto; margin-top: 50px; }
+ p.footer { text-align: center; font-size: small; margin-top: 50px; margin-bottom: 50px; }
+ table { text-align: left; width: 90%; margin:auto; }
+ th.name { width: 30%; }
+ th.status { width: 50%; }
+ th.link { width: 20%; }
+ hr { width:90%; margin-top: 20px; margin-bottom:20px; height:1px; color:lightgray; background-color:lightgray; border:0px; }
+ -->
+ </style>
+
</head>
-<body>
+<body onload="hideAutoLoadIfApplicable()">
<h1>500px Aperture Uploader Export Log</h1>
-<p class="auto-open-explanation"><strong>Note:</strong> This log was auto-opened by the 500px Aperture Uploader plugin. If you don't want to see this automatically, you can switch it off in the plugin's preferences.</p>
+<p id="auto-open-explanation"><strong>Note:</strong> This log was auto-opened by the 500px Aperture Uploader plugin. If you don't want to see this automatically, you can switch it off in the plugin's preferences.</p>
<p class="upload-overview">Upload to user <a href="$USER_PROFILE_URL">$USER_NAME</a> started at $UPLOAD_START_DATE and finished at $UPLOAD_END_DATE. $OVERALL_UPLOAD_STATUS</p>
-<p class="photos-may-be-unavailable-explanation"><strong>Note:</strong> Photos uploaded to 500px.com enter a queue to be processed before they are available. The links below will not work until the photo has been processed.</p>
+<hr>
<table>
-<th><td>Photo Name</td><td>Status</td></th>
+<thead>
+<tr><th class="name">Photo Name</th><th class="status">Status</th><th class="link">Link</th></tr>
+</thead>
<tbody>
$LOG_ROWS
</tbody>
</table>
+<hr>
+
+<p class="photos-may-be-unavailable-explanation"><strong>Note:</strong> Photos uploaded to 500px.com enter a queue to be processed before they are available. The links above will not work until the photo has been processed.</p>
+
<p class="footer">Log generated by <a href="https://github.com/iKenndac/500px-Aperture-Uploader">500px Aperture Uploader</a>.</p>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.