Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
fnikitin committed Apr 20, 2015
2 parents cf1e4d6 + 49ca800 commit d064f8a
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 231 deletions.
24 changes: 16 additions & 8 deletions app/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-cloud pink"></span> neXtProt SnorQL</a>
</div>


<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">

Expand All @@ -52,9 +51,9 @@
aria-expanded="false">Resources <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<!-- Learn -->
<li ng-class=""><a href="{{'search' | getNeXtProtUrl}}">Search</a></li>
<li ng-class=""><a href="{{'snorql' | getNeXtProtUrl}}">Snorql</a></li>
<li ng-class=""><a href="{{'api' | getNeXtProtUrl}}">API</a></li>
<li ng-class=""><a href="{{'search' | getNeXtProtUrl}}" ng-click="routingOutside('ui')">Search</a></li>
<li ng-class=""><a href="{{'snorql' | getNeXtProtUrl}}" ng-click="routingOutside('snorql')">Snorql</a></li>
<li ng-class=""><a href="{{'api' | getNeXtProtUrl}}" ng-click="routingOutside('api')">API</a></li>
</ul>
</li>
<li><a href="/help/doc/introduction">Help</a></li>
Expand Down Expand Up @@ -116,22 +115,31 @@ <h4 class="list-group-item-heading">List group item heading</h4>
<footer class="container text-center small">
<hr/>
<div class="row">
<div class="col-md-4">
<div class="col-lg-12">
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="/legal-disclaimer">Legal disclaimer</a></li>
</ul>
</div>
<div class="col-md-4">
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="/copyright">&copy; 2015 SIB</a></li>
</ul>
</div>
<div class="col-md-4">
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="https://github.com/calipho-sib/nextprot-snorql" target="_blank"><i class="icon-github"></i>For developers</a></li></a></li>
<li><a href="https://github.com/calipho-sib/nextprot-snorql" target="_blank"><i class="icon-github"></i>For
developers</a></li>
</ul>
</div>
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked">
<li><a href="https://github.com/calipho-sib/nextprot-snorql/releases" target="_blank">
<i class="icon-tag"></i>Version: <span sq-build-version></span></a></li>
</ul>
</div>
</div>
</div>
<hr/>
</footer>

Expand Down
6 changes: 3 additions & 3 deletions app/js/app.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,11 @@ function snorql($http, $q, $timeout, $location, config) {
// html output is done by parsing json
params.output='json'
this.$promise=$http({method:'GET', url:url,params:params,headers:accept, timeout: this.canceler.promise});
console.log(this.$promise)

this.$promise.then(function(config){
self.result=(config.data);
console.log(self.result);
}, function() {
console.log('promise failed');
})
return this;
}
Expand Down Expand Up @@ -229,7 +230,6 @@ function snorql($http, $q, $timeout, $location, config) {

// TODO: Refactor; non-standard link makers should be passed into the class by the caller
this._getLinkMaker = function(varName) {
//console.log(varName);
if (varName == 'property') {
return function(uri) { return '?property=' + encodeURIComponent(uri); };
} else if (varName == 'class') {
Expand Down
Loading

0 comments on commit d064f8a

Please sign in to comment.