git-object-browser 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/htdocs/common/js/main.js +5 -2
- data/lib/git-object-browser/version.rb +1 -1
- metadata +3 -3
data/htdocs/common/js/main.js
CHANGED
@@ -15,6 +15,7 @@ function routingConfig(steps) {
|
|
15
15
|
if (steps.length > 0) {
|
16
16
|
$routeProvider.
|
17
17
|
whenPath('/:basedir/.git', 10, {controller:GitCtrl, templateUrl:'common/templates/git.html'}).
|
18
|
+
when('/:basedir/.git', {redirectTo:'/:basedir/.git/'}).
|
18
19
|
otherwise({redirectTo:'/' + steps[0].name + '/.git/'});
|
19
20
|
} else {
|
20
21
|
$routeProvider.
|
@@ -504,7 +505,8 @@ function PackIndexCtrl($scope, $location, $routeParams, $rootScope, $resource, $
|
|
504
505
|
function MenuCtrl($scope, $location, $routeParams, $rootScope) {
|
505
506
|
$scope.steps = config.steps;
|
506
507
|
|
507
|
-
$scope.stepPrev = function(goRoot
|
508
|
+
$scope.stepPrev = function(goRoot) {
|
509
|
+
if (goRoot === undefined) goRoot = true;
|
508
510
|
var idx = getStepIndex();
|
509
511
|
if (idx.index > 0) {
|
510
512
|
if (goRoot) {
|
@@ -515,7 +517,8 @@ function MenuCtrl($scope, $location, $routeParams, $rootScope) {
|
|
515
517
|
}
|
516
518
|
}
|
517
519
|
|
518
|
-
$scope.stepNext = function(goRoot
|
520
|
+
$scope.stepNext = function(goRoot) {
|
521
|
+
if (goRoot === undefined) goRoot = true;
|
519
522
|
var idx = getStepIndex();
|
520
523
|
if (idx.index < $scope.steps.length - 1) {
|
521
524
|
if (goRoot) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-object-browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-31 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Browse git raw objects.
|
15
15
|
email:
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
segments:
|
203
203
|
- 0
|
204
|
-
hash:
|
204
|
+
hash: -3734827956190231615
|
205
205
|
requirements: []
|
206
206
|
rubyforge_project:
|
207
207
|
rubygems_version: 1.8.24
|