Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Didn't need the url

  • Loading branch information...
commit fee74c3688f8b819db9207ee4d73f3ccc4d6f4d5 1 parent e24e581
@zmoazeni authored
View
2  coffee/site.coffee
@@ -272,7 +272,7 @@ class window.App extends Spine.Controller
renderUser: (user) =>
Repo.fetch(user)
- @content.html(@view("show", user:user, url:location.href))
+ @content.html(@view("show", user:user))
@content.find("#timeline").append(@view("joined", user:user))
@refreshElements() # this refreshes @joined and @timeline
@timeline.masonry(itemSelector:"#timeline li:not(.hidden)")
View
2  coffee/views.coffee
@@ -45,7 +45,7 @@ views["show"] = """
</ul>
</div>
- <a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="My gitspective: {{url}}">Tweet</a>
+ <a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="My gitspective: ">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</header>
View
4 index.html
@@ -28,8 +28,8 @@
<script src="js-lib/spine/spine.js" type="text/javascript"></script>
<script src="js-lib/spine/route.js" type="text/javascript"></script>
<script src="js-lib/mustache.js" type="text/javascript"></script>
- <script src="js/views.js?7" type="text/javascript"></script>
- <script src="js/site.js?7" type="text/javascript"></script>
+ <script src="js/views.js?8" type="text/javascript"></script>
+ <script src="js/site.js?8" type="text/javascript"></script>
<!-- footer to try and trick gh-pages fork -->
</body>
View
3  js/site.js
@@ -496,8 +496,7 @@
App.prototype.renderUser = function(user) {
Repo.fetch(user);
this.content.html(this.view("show", {
- user: user,
- url: location.href
+ user: user
}));
this.content.find("#timeline").append(this.view("joined", {
user: user
View
2  js/views.js
@@ -16,7 +16,7 @@
views["index"] = "<div class=\"hero-unit\">\n <h1 class=\"offset1\">A different perspective of a Github User</h1>\n\n<form class=\"form-inline\">\n <input type=\"text\" id=\"username-search\" class=\"input-xlarge offset3\" placeholder=\"Enter username...\">\n <button type=\"submit\" class=\"btn btn-large btn-primary\">gitspect!</button>\n</form>\n</div>";
- views["show"] = "<header class=\"page-header well row\">\n <div class=\"span1 offset3\"><img src=\"{{user.avatar_url}}\" alt=\"image of {{user.name}}\"/></div>\n <div class=\"span5\">\n <h1>{{user.name}} <a href=\"{{user.html_url}}\">{{user.login}}</a></h1>\n <ul>\n {{#user.email}}\n <li>Email: <a href=\"mailto:{{user.email}}\">{{user.email}}</a></li>\n {{/user.email}}\n\n {{#user.company}}\n <li>Company: {{user.company}}</li>\n {{/user.company}}\n\n {{#user.created_at}}\n <li>Joined: {{user.created_at_string}}</li>\n {{/user.created_at}}\n </ul>\n </div>\n\n <a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-count=\"none\" data-text=\"My gitspective: {{url}}\">Tweet</a>\n <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=\"//platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script>\n</header>\n\n<div class\"row\">\n <ul class=\"nav nav-pills offset3\">\n <li class=\"active\"><a href=\"#\" data-type=\"push\">Push</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"fork\">Forks</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"gist\">Gists</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"branch\">Branches</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"tag\">Tags</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"follow\">Follows</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"issue_comment\">Comments</a></li>\n </ul>\n</div>\n\n<div id=\"timeline-container\" class=\"row offset1\">\n <div id=\"timeline-line\">\n </div>\n\n <ol id=\"timeline\">\n </ol>\n</div>";
+ views["show"] = "<header class=\"page-header well row\">\n <div class=\"span1 offset3\"><img src=\"{{user.avatar_url}}\" alt=\"image of {{user.name}}\"/></div>\n <div class=\"span5\">\n <h1>{{user.name}} <a href=\"{{user.html_url}}\">{{user.login}}</a></h1>\n <ul>\n {{#user.email}}\n <li>Email: <a href=\"mailto:{{user.email}}\">{{user.email}}</a></li>\n {{/user.email}}\n\n {{#user.company}}\n <li>Company: {{user.company}}</li>\n {{/user.company}}\n\n {{#user.created_at}}\n <li>Joined: {{user.created_at_string}}</li>\n {{/user.created_at}}\n </ul>\n </div>\n\n <a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-count=\"none\" data-text=\"My gitspective: \">Tweet</a>\n <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=\"//platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document,\"script\",\"twitter-wjs\");</script>\n</header>\n\n<div class\"row\">\n <ul class=\"nav nav-pills offset3\">\n <li class=\"active\"><a href=\"#\" data-type=\"push\">Push</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"fork\">Forks</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"gist\">Gists</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"branch\">Branches</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"tag\">Tags</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"follow\">Follows</a></li>\n <li class=\"active\"><a href=\"#\" data-type=\"issue_comment\">Comments</a></li>\n </ul>\n</div>\n\n<div id=\"timeline-container\" class=\"row offset1\">\n <div id=\"timeline-line\">\n </div>\n\n <ol id=\"timeline\">\n </ol>\n</div>";
views["spinner"] = "<li id=\"spinner\" class=\"prominent\"></li>";
Please sign in to comment.
Something went wrong with that request. Please try again.