[#345] fix projects url path

This commit is contained in:
Alexander Machehin 2014-03-24 20:16:41 +06:00
parent 7df3fd13d6
commit 139cb5aa0d
1 changed files with 4 additions and 4 deletions

View File

@ -28,15 +28,15 @@ var BuildList = function(atts, dictionary) {
}
if (self.project) {
self.project.name_with_owner = self.project.owner + '/' + self.project.name;
if (self.last_published_commit_hash) {
self.version_link_text = self.last_published_commit_hash + '...' + self.commit_hash;
self.version_link_url = Routes.diff_path(self.project, self.version_link_text);
self.version_link_url = Routes.diff_path(self.project.name_with_owner, self.version_link_text);
} else {
self.version_link_text = self.commit_hash || self.project_version;
self.version_link_url = Routes.commit_path(self.project, self.version_link_text);
self.version_link_url = Routes.commit_path(self.project.name_with_owner, self.version_link_text);
}
self.project.name_with_owner = self.project.owner + '/' + self.project.name;
self.project.url = Routes.project_path(self.project);
self.project.url = Routes.project_path(self.project.name_with_owner);
}
if (self.user)