Skip to content

Commit

Permalink
Display version number. Fixes kiswa#60.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiswa committed Oct 26, 2014
1 parent 8659537 commit b3c0ba8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ a:hover.fa {
#board-nav :last-child.form-control {
margin-right: 0;
}
.version {
margin-top: 5px;
font-size: small !important;
}
/* #SiteNav*/
.nav {
margin-top: -.7em;
Expand Down
4 changes: 3 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ function($routeProvider, $httpProvider) {
}]);

// Custom handlers for route authentication and rejection of invalid board id
taskBoard.run(['$rootScope', '$location', '$window', 'AuthenticationService',
taskBoard.run(['$rootScope', '$location', '$window', 'AuthenticationService',
function($rootScope, $location, $window, AuthenticationService) {
$rootScope.version = 'v0.2.5';

$rootScope.$on('$routeChangeStart', function(event, nextRoute, currentRoute) {
// Redirect to default path if authentication is required but not present.
if (nextRoute !== null && nextRoute.authRequired !== null &&
Expand Down
2 changes: 1 addition & 1 deletion partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<li data-ng-class="{ active: page.settings }"><a id="nav-settings" href="#/settings">Settings</a></li>
<li><a id="nav-logout" href="#/" data-ng-click="logout()">Logout {{ display.username }}</a></li>
</ul>
<h2>TaskBoard<small>{{ display.smallText }}</small></h2>
<h2>TaskBoard<small>{{ display.smallText }}</small><span class="version"> ({{ version }})</span></h2>
</div>
1 change: 1 addition & 0 deletions partials/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ <h2 class="form-signin-heading">TaskBoard - Sign in</h2>
</label>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</fieldset>
<p class="small text-center version">{{ version }}</p>
</form>
</div>
<div data-on-load-callback="clear"></div>

0 comments on commit b3c0ba8

Please sign in to comment.