Skip to content

Commit

Permalink
Added instructions to exploration page. Renamed dependency graph to e…
Browse files Browse the repository at this point in the history
…xplore
  • Loading branch information
voxlol committed Aug 21, 2015
1 parent eb47ae1 commit 075af7b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion client/app/results/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ <h4>Monthly Downloads.</h4>
</div>
</form>
</div>
<div ng-switch-when="dependency">
<div class="dependency-switch" ng-switch-when="dependency">
<h4>Modules that list {{module.name}} as a dependency.</h4>
<p><span>Instructions:</span> Left click a node to view information. Right click a node to view its analytics page.</p>
<div class="target-stats">
<h3 ng-if="!selectedModule.name">Selected Module</h3>
<h3 ng-if="selectedModule.name">{{selectedModule.name}}</h3>
Expand Down
2 changes: 1 addition & 1 deletion client/app/results/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ angular.module('app')
// console.log(e.type, e.data.node.label, e.data.captor);
});

s.bind('doubleClickNode', function(e) {
s.bind('rightClickNode', function(e) {
var node = e.data.node;
window.location = "/#/details/"+node.label; // Redirect to the node double clicked
});
Expand Down
6 changes: 5 additions & 1 deletion client/main.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions client/styles/_details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
}
}

.dependency-switch{
p span {
font-weight: bold;
}
}

.graph-type{
padding-top: 5px;
padding-bottom: 5px;
Expand Down

0 comments on commit 075af7b

Please sign in to comment.