Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit e7a4f2d

Browse files
Adding branch name alongside commit id for easy reference since releases are pushed from any branch.
1 parent f69fb3d commit e7a4f2d

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

app/models/release.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ var ReleaseSchema = new Schema({
5252
unique: true
5353
},
5454

55+
/**
56+
* The Branch name
57+
* @property {string} branch
58+
*/
59+
branch: {
60+
type: String,
61+
trim: false,
62+
required: false,
63+
unique: false
64+
},
65+
5566
/**
5667
* When the game was created
5768
* @property {Date} created

app/public/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/public/js/embed.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/views/games/releases.jade

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ append gameContent
7575
small: a.commit(href="#{game.repository}/commits/#{release.commitId}" data-toggle="tooltip" title="View Commit")=release.commitId.substr(0,7)
7676
else
7777
include releases-controls
78-
h4: strong Commit
78+
h4.release-data: strong Commit
7979
a(href="#{game.repository}/commits/#{release.commitId}" data-toggle="tooltip" title="View Commit")=release.commitId.substr(0,7)
80+
81+
h4.release-data: strong Branch
82+
a(href="#{game.repository}/browse?at=refs/heads/#{release.branch.replace('origin/', '')}" data-toggle="tooltip" title="View Branch")=release.branch
8083

8184
.help-block.updated
8285
span Updated

src/main.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ a:hover .help-inline {
178178
.play {
179179
margin:0 0 2em;
180180
}
181+
h4 {
182+
&.release-data {
183+
display: inline-block;
184+
margin-right: 20px;
185+
}
186+
}
181187
}
182188
textarea
183189
{

0 commit comments

Comments
 (0)