Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

we now link to transfer page or file if done

  • Loading branch information...
commit 0931d4b506aef5dcba1cfe587a7242471d7786fc 1 parent a551c0b
@skorecky authored
Showing with 12 additions and 5 deletions.
  1. +3 −3 Info.plist
  2. +6 −0 plugin.css
  3. +3 −2 popover.html
View
6 Info.plist
@@ -5,7 +5,7 @@
<key>Author</key>
<string>Stephen Korecky</string>
<key>Builder Version</key>
- <string>7534.51.22</string>
+ <string>7535.18.5</string>
<key>CFBundleDisplayName</key>
<string>put.io</string>
<key>CFBundleIdentifier</key>
@@ -13,9 +13,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
- <string>1.1</string>
+ <string>1.2</string>
<key>CFBundleVersion</key>
- <string>1.1</string>
+ <string>1.2</string>
<key>Chrome</key>
<dict>
<key>Global Page</key>
View
6 plugin.css
@@ -13,13 +13,19 @@ body {
}
h2 {
+ margin:0;
+}
+
+h2 a {
background:#E7EBEF;
border:1px solid #CCC;
border-radius:3px;
color:#BBBEC1;
+ display:block;
margin:0;
padding:8px 0;
text-align:center;
+ text-decoration:none;
text-shadow:0 1px 0 #FFF;
}
View
5 popover.html
@@ -27,7 +27,8 @@
var percent_done = results[i].percent_done;
var statusClass = (results[i].status === "Completed")? "completed" : "";
var statusIcon = (results[i].status === "Completed")? "2" : "";
- $("ul").append("<li class='"+statusClass+"'><div class='progress' style='width:"+percent_done+"%;'></div><div class='text'>"+name+"<span>"+statusIcon+"</span></div></li>");
+ var link = (results[i].status === "Completed")? "https://put.io/file/"+results[i].id : "https://put.io/transfers";
+ $("ul").append("<li class='"+statusClass+"'><div class='progress' style='width:"+percent_done+"%;'></div><a href='"+link+"' class='text'>"+name+"<span>"+statusIcon+"</span></a></li>");
};
var totalTransfers = $("ul li").length;
updateHeight(totalTransfers);
@@ -46,7 +47,7 @@
</script>
</head>
<body>
- <h2>No Active Transfers</h2>
+ <h2><a href="http://put.io">No Active Transfers</a></h2>
<ul>
</ul>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.