gl-website-deployer/views/partials/papers.mustache

20 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2024-11-19 08:02:04 +01:00
<div class="row" data-bind="visible: paper_list">
List of papers in the database:
<div class="mb-0" data-bind="foreach: papers" class="list-group papers">
<span class="list-group-item list-group-item-action" data-bind="visible: ($data.owned() || $root.show_all_papers)">
<span class="label_ads">ADS id: </span><span data-bind="text: ads"></span><br/>
<span class="label_title">Title:</span> <span data-bind="text: title"></span><br/>
<span class="label_authors">Authors:</span>
<span data-bind="foreach: authors"><span class="author" data-bind="text: $data"></span>; </span><br/>
<!--ko if: $data['journal'] --> <span class="label_journal">Journal:</span> <span data-bind="text: journal"></span><br/> <!--/ko-->
<!--ko if: $data['arxiv'] --> <a class="label_arxiv" data-bind="attr: { href: ('https://arxiv.org/abs/' + $data['arxiv'])}">arXiV: <span data-bind="text: arxiv"></span></a>
<!--/ko-->
<!--ko if: $data['doi'] --> <span class="label_arxiv">DOI: <span data-bind="text: doi"></span></span> <!--/ko-->
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" data-bind="checked: $data.owned">
<label class="form-check-label">Owned?</label>
</div>
</span>
</div>
</div>