Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: caolan/users-core
base: 4411565807
...
head fork: caolan/users-core
compare: b60a4d8c54
  • 2 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
View
2  templates/home.html
@@ -1,5 +1,5 @@
<div class="container page">
- <h1>Users</h1>
+ <h1>Profiles</h1>
<form id="user-search-form" style="margin-top: 1em" class="form-inline hide">
<div class="control-group">
<div class="input-append">
View
6 templates/profile.html
@@ -12,7 +12,11 @@
</div>
<div class="span10">
- <h1>{{profile.name}}</h1>
+ <h1>
+ <a href="#/">Profiles</a>
+ <i style="font-size: 72%; color: #999; margin: 0 0.25em" class="icon-chevron-right"></i>
+ {{profile.name}}
+ </h1>
<table style="margin-top: 1em" class="table table-striped profile-table">
<tbody>
View
4 templates/profile_list.html
@@ -1,10 +1,10 @@
{{#each rows}}
<li class="profile" title="{{doc.bio}}" rel="{{key}}">
- <a class="avatar" href="#/view/{{uc id}}">
+ <a class="avatar" href="#/profile/{{uc id}}">
<img class="avatar" src="{{gravatar_url}}" />
</a>
<div class="details">
- <a class="name" href="#/view/{{uc id}}">
+ <a class="name" href="#/profile/{{uc id}}">
{{id}}
</a>
{{#if doc.full_name}}
View
2  ui/app.js
@@ -5,7 +5,7 @@ exports.init = function (url) {
'/signup': require('./views/signup'),
'/login': require('./views/login'),
'/login/:next': require('./views/login'),
- '/view/:id': require('./views/profile')
+ '/profile/:id': require('./views/profile')
});
$(window).trigger('hashchange');
};
View
2  ui/views/home.js
@@ -5,7 +5,7 @@ var templates = require('handlebars').templates,
// max number of profiles to list on page
-var PAGE_LENGTH = 2;
+var PAGE_LENGTH = 5;
module.exports = function () {
$('#content').html(
View
4 ui/views/login.js
@@ -108,13 +108,13 @@ function checkProfile(username, next, callback) {
}
return callback(
null,
- '#/view/' + encodeURIComponent(username)
+ '#/profile/' + encodeURIComponent(username)
);
});
});
return;
}
}
- return callback(null, next || '#/view/' + encodeURIComponent(username));
+ return callback(null, next || '#/profile/' + encodeURIComponent(username));
});
}
View
2  ui/views/signup.js
@@ -102,7 +102,7 @@ module.exports = function () {
}
return;
}
- window.location = '#/view/' + encodeURIComponent(username);
+ window.location = '#/profile/' + encodeURIComponent(username);
});
return false;

No commit comments for this range

Something went wrong with that request. Please try again.