Skip to content
Snippets Groups Projects
Commit 8a1008bc authored by Adam Caprez's avatar Adam Caprez
Browse files

Table shortcode

parent 55e08579
Branches
No related tags found
No related merge requests found
Showing
with 142 additions and 148 deletions
+++ +++
title = "Available Software for Crane" title = "Available Software for Crane"
description = "List of available software for crane.unl.edu." description = "List of available software for crane.unl.edu."
scripts = ["https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/jquery.tablesorter.min.js", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-pager.min.js","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-filter.min.js","/js/sort-table.js"]
css = ["http://mottie.github.io/tablesorter/css/theme.default.css","https://mottie.github.io/tablesorter/css/theme.dropbox.css", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/jquery.tablesorter.pager.min.css","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/filter.formatter.min.css"]
+++ +++
{{% notice tip %}} {{% notice tip %}}
...@@ -32,4 +34,4 @@ Some packages list multiple compilers for prerequisites. This means that ...@@ -32,4 +34,4 @@ Some packages list multiple compilers for prerequisites. This means that
the package has been built with each version of the compilers listed. the package has been built with each version of the compilers listed.
{{% /panel %}} {{% /panel %}}
{{< readfile file="/static/html/crane-modules.html" >}} {{< table url="http://crane-head.unl.edu:8192/lmod/spider/json" >}}
+++ +++
title = "Available Software for Tusker" title = "Available Software for Tusker"
description = "List of available software for tusker.unl.edu." description = "List of available software for tusker.unl.edu."
scripts = ["https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/jquery.tablesorter.min.js", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-pager.min.js","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-filter.min.js","/js/sort-table.js"]
css = ["http://mottie.github.io/tablesorter/css/theme.default.css","https://mottie.github.io/tablesorter/css/theme.dropbox.css", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/jquery.tablesorter.pager.min.css","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/filter.formatter.min.css"]
+++ +++
{{% notice tip %}} {{% notice tip %}}
...@@ -32,4 +34,4 @@ Some packages list multiple compilers for prerequisites. This means that ...@@ -32,4 +34,4 @@ Some packages list multiple compilers for prerequisites. This means that
the package has been built with each version of the compilers listed. the package has been built with each version of the compilers listed.
{{% /panel %}} {{% /panel %}}
{{< readfile file="/static/html/tusker-modules.html" >}} {{< table url="http://tusker-head.unl.edu:8192/lmod/spider/json" >}}
...@@ -90,9 +90,8 @@ sleep 60 ...@@ -90,9 +90,8 @@ sleep 60
The name of the job. Will be reported in the job listing. The name of the job. Will be reported in the job listing.
- **partition** - **partition**
The partition the job should run in. Partitions determine the job's The partition the job should run in. Partitions determine the job's
priority and on what nodes the partition can run on. See priority and on what nodes the partition can run on. See the
[Available Partitions on Crane and Tusker]({{< relref "available_partitions_on_crane_and_tusker" >}}) [Partitions]({{< relref "partitions" >}}) page for a list of possible partitions.
for a list of possible partitions.
- **error** - **error**
Location of the stderr will be written for the job. `[groupname]` Location of the stderr will be written for the job. `[groupname]`
and `[username]` should be replaced your group name and username. and `[username]` should be replaced your group name and username.
...@@ -146,7 +145,7 @@ $ squeue -u <username> ...@@ -146,7 +145,7 @@ $ squeue -u <username>
{{< /highlight >}} {{< /highlight >}}
Additionally, if you want to see the status of a specific partition, for Additionally, if you want to see the status of a specific partition, for
example if you are part of a [partition]({{< relref "available_partitions_on_crane_and_tusker" >}}), example if you are part of a [partition]({{< relref "partitions" >}}),
you can use the `-p` option to `squeue`: you can use the `-p` option to `squeue`:
{{< highlight batch >}} {{< highlight batch >}}
......
+++ +++
title = "Available partitions on Tusker and Crane" title = "Partitions"
description = "Listing of partitions on Tusker and Crane." description = "Listing of partitions on Tusker and Crane."
scripts = ["https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/jquery.tablesorter.min.js", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-pager.min.js","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-filter.min.js","/js/sort-table.js"]
css = ["http://mottie.github.io/tablesorter/css/theme.default.css","https://mottie.github.io/tablesorter/css/theme.dropbox.css", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/jquery.tablesorter.pager.min.css","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/filter.formatter.min.css"]
+++ +++
Partitions are used in Crane and Tusker to distinguish different Partitions are used in Crane and Tusker to distinguish different
...@@ -8,14 +10,11 @@ resources. You can view the partitions with the command `sinfo`. ...@@ -8,14 +10,11 @@ resources. You can view the partitions with the command `sinfo`.
### Crane: ### Crane:
{{< readfile file="/static/html/crane-partitions.html" >}} [Full list for Crane]({{< relref "crane_available_partitions" >}})
### Tusker: ### Tusker:
{{< readfile file="/static/html/tusker-partitions.html" >}} [Full list for Tusker]({{< relref "tusker_available_partitions" >}})
Two nodes have 512GB of memory instead of 256GB (Max Request = 500GB),
and two have 1024GB of memory (Max Request = 1000GB).
#### Priority for short jobs #### Priority for short jobs
......
+++
title = "Available Partitions for Crane"
description = "List of available partitions for crane.unl.edu."
scripts = ["https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/jquery.tablesorter.min.js", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-pager.min.js","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-filter.min.js","/js/sort-table.js"]
css = ["http://mottie.github.io/tablesorter/css/theme.default.css","https://mottie.github.io/tablesorter/css/theme.dropbox.css", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/jquery.tablesorter.pager.min.css","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/filter.formatter.min.css"]
+++
### Crane:
{{< table url="http://crane-head.unl.edu:8192/slurm/partitions/json" >}}
+++
title = "Available Partitions for Tusker"
description = "List of available partitions for tusker.unl.edu."
scripts = ["https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/jquery.tablesorter.min.js", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-pager.min.js","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/js/widgets/widget-filter.min.js","/js/sort-table.js"]
css = ["http://mottie.github.io/tablesorter/css/theme.default.css","https://mottie.github.io/tablesorter/css/theme.dropbox.css", "https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/jquery.tablesorter.pager.min.css","https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.31.1/css/filter.formatter.min.css"]
+++
### Tusker:
{{< table url="http://tusker-head.unl.edu:8192/slurm/partitions/json" >}}
Two nodes have 512GB of memory instead of 256GB (Max Request = 500GB), and two have 1024GB of memory (Max Request = 1000GB).
<link rel="stylesheet" href="/css/custom.css"> <link rel="stylesheet" href="/css/custom.css">
<link href="//cloud.typography.com/7717652/616662/css/fonts.css" type="text/css" rel="stylesheet"> <link href="//cloud.typography.com/7717652/616662/css/fonts.css" type="text/css" rel="stylesheet">
{{ if isset .Params "scripts" }}{{ range .Params.scripts }}<script src="{{ printf "%s" . | absURL }}"></script>{{ end }}{{ end }}
{{ if isset .Params "css" }}{{ range .Params.css }}<link rel="stylesheet" href="{{ printf "%s" . | absURL }}">{{ end }}{{ end }}
{{ $url := .Get "url" }}
{{ $json := getJSON $url }}
{{ if $json.table_generated }}
<p><em>last generated {{ $json.table_generated }}</em></p>
{{ end }}
<div class="pager">
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/first.png" class="first"/>
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/prev.png" class="prev"/>
<!-- the "pagedisplay" can be any element, including an input -->
<span class="pagedisplay" data-pager-output-filtered="{startRow:input} &ndash; {endRow} / {filteredRows} of {totalRows} total rows"></span>
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/next.png" class="next"/>
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/last.png" class="last"/>
<select class="pagesize">
<option value="5">5</option>
<option value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="all">All Rows</option>
</select>
<select class="gotoPage" title="Select page number">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<table class="sorttable">
<thead>
<tr>
{{ range $table_header := $json.table_header }}
<th>{{ $table_header }}</th>
{{ end }}
</tr>
</thead>
<tbody>
{{ range $table_row := $json.table_data }}
<tr>
{{ range $table_data := $table_row }}
<td>{{ $table_data }}</td>
{{ end }}
</tr>
{{ end }}
</tbody>
</table>
<div class="pager">
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/first.png" class="first"/>
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/prev.png" class="prev"/>
<!-- the "pagedisplay" can be any element, including an input -->
<span class="pagedisplay" data-pager-output-filtered="{startRow:input} &ndash; {endRow} / {filteredRows} of {totalRows} total rows"></span>
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/next.png" class="next"/>
<img src="http://mottie.github.com/tablesorter/addons/pager/icons/last.png" class="last"/>
<select class="pagesize">
<option value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="all">All Rows</option>
</select>
<select class="gotoPage" title="Select page number">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
...@@ -109,3 +109,12 @@ color: #6a0000; ...@@ -109,3 +109,12 @@ color: #6a0000;
border-bottom-style: dotted; border-bottom-style: dotted;
border-bottom-width: 1px; border-bottom-width: 1px;
} }
.sorttable table {
table-layout: fixed;
}
.pager img, select, input {
display: inline !important;
}
<table style="font-size: small">
<colgroup>
<col style="width: 8.83281%;"/>
<col style="width: 7.9085%;"/>
<col style="width: 10.4543%;"/>
<col style="width: 25.3754%;"/>
<col style="width: 10.2429%;"/>
<col style="width: 10.57098%;"/>
<col style="width: 19.80757%;"/>
</colgroup>
<tbody>
<tr style="font-size: x-small">
<th>Name</th>
<th>Version</th>
<th>Module Name</th>
<th>Prerequisites</th>
<th>Type</th>
<th>Domain</th>
<th>Description</th>
</tr>
<tr>
<td colspan="1">abacus</td>
<td colspan="1" >1.0.1</td>
<td colspan="1">abacus/1.0</td>
<td colspan="1">compiler/intel/13:openmpi/1.8</td>
<td colspan="1">library</td>
<td colspan="1">runtime support</td>
<td colspan="1">Finite element simulation</td>
</tr>
</tbody>
</table>
<p><em>last generated Wed Nov 7 15:47:00 2018</em></p>
<table style="font-size: small">
<colgroup>
<col style="width: 8.83281%;"/>
<col style="width: 11.9085%;"/>
<col style="width: 18.4543%;"/>
<col style="width: 18.3754%;"/>
<col style="width: 19.2429%;"/>
<col style="width: 7.57098%;"/>
<col style="width: 7.80757%;"/>
<col style="width: 7.80757%;"/>
</colgroup>
<tbody>
<tr style="font-size: x-small">
<th>Partition</th>
<th>Owner</th>
<th>Node total (NODExCPU/MEM/FEATURE)</th>
<th>Description</th>
<th>SLURM Specification</span> </th>
<th>Max Job Run Time</th>
<th>Max CPUs Per User</th>
<th>Max Jobs Per User</th>
</tr>
<tr>
<td colspan="1">batch</td>
<td colspan="1">shared</td>
<td colspan="1">399 total (377x16/64GB/ib; 6x36/256GB/opa; 16x36/512GB/opa)</td>
<td colspan="1">(default, no specification)</td>
<td colspan="1">#SBATCH --partition=batch</td>
<td colspan="1" style="text-align: center;" >7-00:00:00</td>
<td colspan="1" style="text-align: center;" >ib:2000 opa:576</td>
<td colspan="1" style="text-align: center;" >1000</td>
</tr>
</tbody>
</table>
<table style="font-size: small">
<colgroup>
<col style="width: 8.83281%;"/>
<col style="width: 7.9085%;"/>
<col style="width: 10.4543%;"/>
<col style="width: 25.3754%;"/>
<col style="width: 10.2429%;"/>
<col style="width: 10.57098%;"/>
<col style="width: 19.80757%;"/>
</colgroup>
<tbody>
<tr style="font-size: x-small">
<th>Name</th>
<th>Version</th>
<th>Module Name</th>
<th>Prerequisites</th>
<th>Type</th>
<th>Domain</th>
<th>Description</th>
</tr>
<tr>
<td colspan="1">abacus</td>
<td colspan="1" >1.0.1</td>
<td colspan="1">abacus/1.0</td>
<td colspan="1">compiler/intel/13:openmpi/1.8</td>
<td colspan="1">library</td>
<td colspan="1">runtime support</td>
<td colspan="1">Finite element simulation</td>
</tr>
</tbody>
</table>
<p><em>last generated Wed Nov 7 15:14:27 2018</em></p>
<table style="font-size: small">
<colgroup>
<col style="width: 8.83281%;"/>
<col style="width: 11.9085%;"/>
<col style="width: 18.4543%;"/>
<col style="width: 18.3754%;"/>
<col style="width: 19.2429%;"/>
<col style="width: 7.57098%;"/>
<col style="width: 7.80757%;"/>
<col style="width: 7.80757%;"/>
</colgroup>
<tbody>
<tr style="font-size: x-small">
<th>Partition</th>
<th>Owner</th>
<th>Node total (NODExCPU/MEM/FEATURE)</th>
<th>Description</th>
<th>SLURM Specification</span> </th>
<th>Max Job Run Time</th>
<th>Max CPUs Per User</th>
<th>Max Jobs Per User</th>
</tr>
<tr>
<td colspan="1" >batch</td>
<td colspan="1" >shared</td>
<td colspan="1" >38 total (38x64/256GB/none)</td>
<td colspan="1" >(default, no specification)</td>
<td colspan="1" >#SBATCH --partition=batch</td>
<td colspan="1" style="text-align: center;" >7-00:00:00</td>
<td colspan="1" style="text-align: center;" >2000</td>
<td colspan="1" style="text-align: center;" >1000</td>
</tr>
</tbody>
</table>
$(function(){
$(".sorttable")
.tablesorter({theme: "dropbox", sortList: [[0,0]], widthFixed: true, ignoreCase: true, widgets: ['pager','filter'],
widgetOptions: {
pager_css: {
container : 'tablesorter-pager', // class added to make included pager.css file work
errorRow : 'tablesorter-errorRow', // error information row (don't include period at beginning); styled in theme file
disabled : 'disabled' // class added to arrows @ extremes (i.e. prev/first arrows "disabled" on first page)
},
pager_selectors: {
container : '.pager', // target the pager markup (wrapper)
first : '.first', // go to first page arrow
prev : '.prev', // previous page arrow
next : '.next', // next page arrow
last : '.last', // go to last page arrow
gotoPage : '.gotoPage', // go to page selector - select dropdown that sets the current page
pageDisplay : '.pagedisplay', // location of where the "output" is displayed
pageSize : '.pagesize' // page size selector - select dropdown that sets the "size" option
},
pager_output: '{startRow:input} – {endRow} / {totalRows} rows',
}
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment