aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/species/list-species.html
blob: 85c9d408c5cb37a684d476f3bbf8101df13fc4c8 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{%extends "species/base.html"%}
{%from "flash_messages.html" import flash_all_messages%}

{%block title%}List Species{%endblock%}

{%block pagetitle%}List Species{%endblock%}

{%block contents%}
{{flash_all_messages()}}
<div class="row">
  <p>
    All data in GeneNetwork revolves around species. This is the core of the
    system.</p>
  <p>Here you can see a list of all the species available in GeneNetwork.
    Click on the link besides each species to view greater detail on the species,
    and access further operations that are possible for said species.</p>
</div>

<div class="row">
  <p>If you cannot find the species you are looking for below, click the button
    below to create it</p>
  <p><a href="{{url_for('species.create_species')}}"
        title="Add a new species to GeneNetwork"
        class="btn btn-danger">Create Species</a></p>
</div>

<div class="row">
  <table class="table">
    <caption>Available Species</caption>
    <thead>
      <tr>
        <th>#</td>
        <th title="A common, layman's name for the species.">Common Name</th>
        <th title="The scientific name for the species">Organism Name</th>
        <th title="An identifier for the species in the NCBI taxonomy database">
          Taxonomy ID
        </th>
        <th title="A generic grouping used internally by GeneNetwork for organising species.">
          Family
        </th>
      </tr>
    </thead>
    <tbody>
      {%for species in allspecies%}
      <tr>
        <td>{{species["sequence_number"]}}</td>
        <td>{{species["SpeciesName"]}}</td>
        <td>
          <a href="{{url_for('species.view_species',
                   species_id=species['SpeciesId'])}}"
             title="View details in GeneNetwork on {{species['FullName']}}">
            {{species["FullName"]}}
          </a>
        </td>
        <td>
          <a href="https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id={{species['TaxonomyId']}}"
             title="View species details on NCBI"
             target="_blank">{{species["TaxonomyId"]}}</a>
        </td>
        <td>{{species.Family}}</td>
      </tr>
      {%else%}
      <tr>
        <td colspan="3">
          <p class="text-danger">
            <span class="glyphicon glyphicon-exclamation-mark"></span>
            There were no species found!
          </p>
        </td>
      </tr>
      {%endfor%}
    </tbody>
  </table>
</div>
{%endblock%}