[#345] fix projects url path
This commit is contained in:
parent
7df3fd13d6
commit
139cb5aa0d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue