Skip to content

Commit 0690af6

Browse files
authored
Merge pull request #8 from maxplanck-ie/jmv_dev
Added missing changes to app templates
2 parents 3e48ba0 + 432da73 commit 0690af6

File tree

6 files changed

+66
-50
lines changed

6 files changed

+66
-50
lines changed

hicbrowser/client/README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1-
# HiCBrowser-web-client
2-
A web client for HiCBrowser
1+
# HiCBrowser web client
2+
3+
This project aims to visualize gene expression profiles in the context of mitochondrial processes. See a working demo [here](http://jmvillaveces.github.io/mito_models_visualization/dist/).
4+
5+
## Getting Started
6+
7+
1. Clone the project
8+
`git clone https://github.com/maxplanck-ie/HiCBrowser`
9+
2. Install dependencies
10+
`npm i`
11+
3. Compile the project
12+
`grunt dist`
13+
14+
## Built With
15+
16+
* [NPM](https://www.npmjs.com/) - Dependency Management
17+
* [GRUNT](http://gruntjs.com/) - Task Runner
18+
* [Backbone](http://backbonejs.org/) - model–view–presenter (MVP) application design paradigm
19+
* [Handlebars](http://handlebarsjs.com/) - HTML templating

hicbrowser/client/js/templates.js

Lines changed: 8 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="container-fixed">
22
<div class="row">
33
{{#each tracks}}
4-
<div class="col-xs-4 img_wrapper">
4+
<div class="col-xs-12 img_wrapper">
55
<img class="lazy" data-original="{{this}}">
66
<!--<img src="{{this}}" onload="imgLoaded(this)">-->
77
</div>
88
{{/each}}
99
</div>
10-
</div>
10+
</div>

hicbrowser/client/templates/gene.hbs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<div class="col-lg-12">
2-
2+
33
{{#if name}}
44
<h1 class="page-header">
55
{{name}}
6-
<small>
6+
<small>
77
chromosome {{chromosome}} (start: {{start}}, end: {{end}})
88
</small>
99
</h1>
1010
<div style="width: 900px;" id="{{feature_viewer}}"></div>
11-
<a href="/#/browser/{{chromosome}}:{{start}}-{{end}}">
12-
<img class="img-responsive" src="{{img}}" alt="" data-toggle="tooltip" title="Click image to explore region in browser">
13-
</a>
11+
12+
<ul class="nav nav-pills">
13+
<li class="active">
14+
<a href="/#/browser/{{chromosome}}:{{start}}-{{end}}">Explore region in browser</a>
15+
</li>
16+
</ul>
1417
{{/if}}
15-
18+
1619
{{#if error}}
1720
<div style="height:55%">
1821
<div class="alert alert-danger" role="alert">
@@ -23,4 +26,4 @@
2326
</div>
2427
{{/if}}
2528
<hr>
26-
</div>
29+
</div>

hicbrowser/static/js/App.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,31 +248,29 @@ this["Templates"]["browser"] = Handlebars.template({"1":function(container,depth
248248

249249
return "<div class=\"container-fixed\">\n <div class=\"row\">\n"
250250
+ ((stack1 = helpers.each.call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.tracks : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
251-
+ " </div>\n</div>";
251+
+ " </div>\n</div>\n";
252252
},"useData":true});
253253

254254
this["Templates"]["gene"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
255255
var helper, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
256256

257257
return " <h1 class=\"page-header\">\n "
258258
+ alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
259-
+ "\n <small> \n chromosome "
259+
+ "\n <small>\n chromosome "
260260
+ alias4(((helper = (helper = helpers.chromosome || (depth0 != null ? depth0.chromosome : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"chromosome","hash":{},"data":data}) : helper)))
261261
+ " (start: "
262262
+ alias4(((helper = (helper = helpers.start || (depth0 != null ? depth0.start : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"start","hash":{},"data":data}) : helper)))
263263
+ ", end: "
264264
+ alias4(((helper = (helper = helpers.end || (depth0 != null ? depth0.end : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"end","hash":{},"data":data}) : helper)))
265265
+ ")\n </small>\n </h1>\n <div style=\"width: 900px;\" id=\""
266266
+ alias4(((helper = (helper = helpers.feature_viewer || (depth0 != null ? depth0.feature_viewer : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"feature_viewer","hash":{},"data":data}) : helper)))
267-
+ "\"></div>\n <a href=\"/#/browser/"
267+
+ "\"></div>\n\n <ul class=\"nav nav-pills\">\n <li class=\"active\">\n <a href=\"/#/browser/"
268268
+ alias4(((helper = (helper = helpers.chromosome || (depth0 != null ? depth0.chromosome : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"chromosome","hash":{},"data":data}) : helper)))
269269
+ ":"
270270
+ alias4(((helper = (helper = helpers.start || (depth0 != null ? depth0.start : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"start","hash":{},"data":data}) : helper)))
271271
+ "-"
272272
+ alias4(((helper = (helper = helpers.end || (depth0 != null ? depth0.end : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"end","hash":{},"data":data}) : helper)))
273-
+ "\">\n <img class=\"img-responsive\" src=\""
274-
+ alias4(((helper = (helper = helpers.img || (depth0 != null ? depth0.img : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"img","hash":{},"data":data}) : helper)))
275-
+ "\" alt=\"\" data-toggle=\"tooltip\" title=\"Click image to explore region in browser\">\n </a>\n";
273+
+ "\">Explore region in browser</a>\n </li>\n </ul>\n";
276274
},"3":function(container,depth0,helpers,partials,data) {
277275
var helper;
278276

@@ -282,11 +280,11 @@ this["Templates"]["gene"] = Handlebars.template({"1":function(container,depth0,h
282280
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
283281
var stack1, alias1=depth0 != null ? depth0 : {};
284282

285-
return "<div class=\"col-lg-12\">\n \n"
283+
return "<div class=\"col-lg-12\">\n\n"
286284
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.name : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
287-
+ " \n"
285+
+ "\n"
288286
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.error : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
289-
+ " <hr>\n</div>";
287+
+ " <hr>\n</div>\n";
290288
},"useData":true});
291289

292290
this["Templates"]["index"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {

hicbrowser/static/js/App.min.js

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)