-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also add a /comments page with all comments on it Fixes #396
- Loading branch information
Showing
7 changed files
with
125 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "layouts/layout.html" %} | ||
{%- from 'macros/nav.html' import nav -%} | ||
{%- from 'macros/comments.html' import comment_list -%} | ||
|
||
{% block body %} | ||
{{ nav("runs") }} | ||
<main> | ||
<section> | ||
<h1>All Comments</h1> | ||
{{ comment_list(comments) }} | ||
</section> | ||
</main> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% macro comment_list(comments) -%} | ||
<ul class="comments"> | ||
{% for comment in comments -%} | ||
<li> | ||
<span class="run-id"> | ||
<a href="/runs/{{ comment['vcf_id'] }}/examine">Run {{ comment['vcf_id'] }}</a> | ||
</span> | ||
<span class="location">{{ comment['contig'] }}:{{ comment['position'] }}</span> | ||
<span class="summary">{{ comment['comment_text']|truncate(80)}}</span> | ||
</li> | ||
{% endfor -%} | ||
</ul> | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% macro run_form() -%} | ||
<form method="POST" action="/runs" role="form" id="submit"> | ||
<h2><button type="button" class="close" aria-hidden="true">×</button></h3> | ||
<div class="form-group"> | ||
<label>Variant Caller Name:</label> | ||
<input class="form-control" type="text" name="variantCallerName" | ||
placeholder="Guacamole::Somatic"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Dataset Name:</label> | ||
<input class="form-control" type="text" name="dataset" | ||
placeholder="DREAM training chr20"> | ||
</div> | ||
<div class="form-group"> | ||
<label>VCF Path:</label> | ||
<input class="uploadable form-control" type="text" name="vcfPath" | ||
placeholder="/data/somevcf.vcf"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Truth VCF Path:</label> | ||
<input class="uploadable form-control" type="text" name="truthVcfPath" | ||
placeholder="/data/true_somevcf.vcf"> | ||
</div> | ||
<br/> | ||
<h4>Optional <small>all paths should be HDFS paths to canonical data</small></h4> | ||
<div class="form-group"> | ||
<label>Tumor BAM:</label> | ||
<input class="form-control" type="text" name="tumorPath" | ||
placeholder="/data/dream/tumor.chr20.bam"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Normal BAM:</label> | ||
<input class="form-control" type="text" name="normalPath" | ||
placeholder="/data/dream/normal.chr20.bam"> | ||
</div> | ||
<div class="form-group"> | ||
<label>Notes, Config, Params:</label> | ||
<textarea class="form-control" rows="3" name="params" | ||
placeholder="command line parameters here"></textarea> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-success btn-block">Submit New Run</button> | ||
</form> | ||
{%- endmacro -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters