-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWIK-360: now displays branch and last commit in footer
- Loading branch information
Showing
4 changed files
with
39 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
node_modules | ||
build | ||
logs | ||
.git | ||
coverage |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { NavLink } from 'fluxible-router'; | ||
|
||
class Footer extends React.Component { | ||
render() { | ||
return ( | ||
<div className="ui horizontal segments footer" ref="footer"> | ||
<div className="ui right aligned segment"> | ||
<p> | ||
Copyright © 2016 · All Rights Reserved | ||
</p> | ||
</div> | ||
<div className="ui left aligned segment"> | ||
<NavLink className="item" routeName="about">About</NavLink> | ||
· | ||
<NavLink className="item" routeName="imprint">Imprint</NavLink> | ||
· | ||
<NavLink className="item" routeName="dataprotection">Data Protection Conditions</NavLink> | ||
</div> | ||
<div className="ui left aligned segment"> | ||
<p> | ||
Build GIT_COMMIT on master | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Footer; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
GIT_BRANCH=$(git symbolic-ref --short HEAD) | ||
GIT_COMMIT=$(git rev-parse --short HEAD) | ||
|
||
sed -ie "s/GIT_BRANCH/$GIT_BRANCH/g" /nodeApp/components/Footer/Footer.js | ||
sed -ie "s/GIT_COMMIT/$GIT_COMMIT/g" /nodeApp/components/Footer/Footer.js |