Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
71 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
extends layout.jade | ||
block content | ||
h1= user | ||
if doclets.length > 0 | ||
img.avatar(src=doclets[0].repo.user_image) | ||
ul.versions | ||
each doclet in doclets | ||
li.doclet | ||
a(href=user + '/' + doclet.repo.name + '/' + doclet.repo.branch)= doclet.repo.name + ' ' + doclet.repo.branch | ||
else | ||
span No modules by this user | ||
- var first = doclets[0] | ||
- var _ = first._ | ||
h2 | ||
a(href='#')= first.repo.user | ||
img.avatar(src=first.repo.user_image, style='width: 100px') | ||
|
||
h3= '' + doclets.length + ' doclets by ' + first.repo.user | ||
ul.versions | ||
each docletsByName, name in _.groupBy(doclets, function(doclet) {return doclet.repo.name}) | ||
- var first = docletsByName[0] | ||
li.doclet | ||
h3 | ||
a(href=name)= first.repo.name | ||
p.description= first.description | ||
p.version | ||
each version in _.map(docletsByName, function(doclet) {return doclet.repo.branch}) | ||
a(href=name + '/' + version)= version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
extends layout.jade | ||
block content | ||
h1= name | ||
span by | ||
a(href='./')= user | ||
ul.versions | ||
each version in versions | ||
li.version | ||
a(href=name + '/' + version.repo.branch)= version.repo.branch | ||
- var first = versions[0] | ||
h2 | ||
a.name(href='#')= first.repo.name | ||
a.user(href='./')= first.repo.user | ||
img(src=first.repo.user_image, style='width: 100px') | ||
p.description= first.description | ||
if first.tags | ||
p.tags= first.tags.join(', ') | ||
h3= '' + versions.length + ' versions documented' | ||
ul | ||
each doclet in versions | ||
li | ||
h4 | ||
a(href=doclet.repo.name + '/' + doclet.repo.branch)= doclet.repo.branch | ||
|