Permalink
Browse files

Add create repo feature.

  • Loading branch information...
1 parent fe2662d commit cbd3bcce14c33df924d88b69481ebf81b4f484d6 @jjNford committed Apr 19, 2012
Showing with 17 additions and 1 deletion.
  1. +8 −0 css/style.css
  2. BIN img/user_links.png
  3. +7 −0 js/app.js
  4. +1 −1 manifest.json
  5. +1 −0 popup.html
View
@@ -1038,6 +1038,14 @@ button.positive:active {
cursor: pointer;
}
+.user_links li[rel="create_repo"] {
+ background-position: -188px 4px;
+}
+
+.user_links li[rel="create_repo"]:hover {
+ background-position-y: -34px;
+}
+
.user_links li[rel="notifications"] {
background-position: -32px 4px;
}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -46,6 +46,13 @@ window.App = {
});
});
+ // Bind create repo click events.
+ jQuery('.user_links li[rel="create_repo"]').on('click', function(event) {
+ event.preventDefault();
+ event.stopPropagation();
+ window.open("https://github.com/new", '_blank');
+ });
+
// Bind notification click events.
jQuery('.user_links li[rel="notifications"]').on('click', function(event) {
event.preventDefault();
View
@@ -26,5 +26,5 @@
"https://github.com/*",
"https://api.github.com/*"
],
- "version": "2.1.3"
+ "version": "2.1.4"
}
View
@@ -88,6 +88,7 @@ <h1>Log in <a href="https://github.com/plans" target="_blank">(Pricing and Signu
<!-- header -->
<header class="application_header">
<ul class="user_links">
+ <li rel="create_repo" tooltip="Create a New Repo"></li>
<li rel="notifications" tooltip="Notifications"></li>
<li rel="extension_settings" tooltip="Extension Settings"></li>
<li rel="log_out" tooltip="Log Out"></li>

0 comments on commit cbd3bcc

Please sign in to comment.