Skip to content

Commit

Permalink
Add the commit hash to the rendered project information.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimCresswell committed Aug 29, 2015
1 parent d26cc95 commit 699c5c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/specifications/getProjectUsingGit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function getProject(repoUrl, repoName, localName) {
repoName: repoName,
repoUrl: repoUrl,
localName: localName,
head: sha
commit: sha
};
}

Expand Down
2 changes: 1 addition & 1 deletion lib/specifications/projectMetaData.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function deriveProjectData(featureFileRoot, repoData) {
var projectData = {
name: repoData.repoName,
url: repoData.repoUrl,
head: repoData.head,
commit: repoData.commit,
localName: repoData.localName,
featureFilePaths: []
}
Expand Down
2 changes: 1 addition & 1 deletion public/css/features.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
text-decoration: underline;
}

.link-container {
.links-container {
margin-left: 3em;
}
9 changes: 6 additions & 3 deletions views/features.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
</header>
{{#each projects}}
<section class="project">
<h2 class="project-name" id={{this.name}}><a class="quick-link" href="#{{this.name}}"><span class="quick-link-arrow">&Rarr;</span> {{this.name}}</a></h2>
<h2 class="project-name" id={{this.name}}>
<a class="quick-link" href="#{{this.name}}"><span class="quick-link-arrow">&Rarr;</span> {{this.name}}</a>
</h2>
<span class="project-commit">&commat;{{this.commit}}</span>
<span class="repo-link"><a href="{{this.url}}">(visit repository)</a></span>
<div class="link-container">
<div class="links-container">
{{#each this.featureFilePaths}}
<p><a class="spec-link" href="{{this.featureRoute}}">{{this.featureName}}</a></p>
{{else}}
<p>Sorry, this project doesn not appear to contain any specifications</p>
<p>Sorry, this project does not appear to contain any specifications</p>
{{/each}}
</div>
</section>
Expand Down

0 comments on commit 699c5c5

Please sign in to comment.