about summary refs log tree commit diff
path: root/uploader/templates/species/macro-display-species-card.html
blob: 30c564f9d5613a325022a52d87ba86b5483a931b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{%macro display_species_card(species)%}
<div class="card">
  <div class="card-body">
    <h5 class="card-title">Species</h5>
    <div class="card-text">
      <table class="table">
        <tbody>
          <tr>
            <td>Common Name</td>
            <td>{{species.SpeciesName}}</td>
          </tr>

          <tr>
            <td>Scientific Name</td>
            <td>{{species.FullName}}</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>
{%endmacro%}


{%macro display_sui_species_card(species)%}
<div class="row">
  <table class="table">
    <caption>Current Species</caption>
    <tbody>
      <tr>
        <th>Name</th>
        <td>{{species["Name"] | title}}</td>
      </tr>
      <tr>
        <th>Scientific</th>
        <td>{{species["FullName"]}}</td>
      </tr>
      {%if species["TaxonomyId"]%}
      <tr>
        <th>Taxonomy ID</th>
        <td>
          <a href="https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id={{species.TaxonomyId}}"
             title="NCBI's Taxonomy Browser page for {{species.Name}}">
            {{species.TaxonomyId}}</a>
        </td>
      </tr>
    </tbody>
    {%endif%}
  </table>
</div>
{%endmacro%}