Skip to content

Commit 9a21fca

Browse files
committed
More bs5 templates
- Legacy-Id: 19715
1 parent c65f681 commit 9a21fca

48 files changed

Lines changed: 1586 additions & 1290 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/person/templatetags/person_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ def email_person_link(email, **kwargs):
4848
name = email.person.name if email.person.alias_set.filter(name=email.person.name).exists() else ''
4949
plain_name = email.person.plain_name()
5050
email = email.address
51-
return {'name': name, 'plain_name': plain_name, 'email': email, 'title': title, 'class': cls}
51+
return {'name': name, 'plain_name': plain_name, 'email': email, 'title': title, 'class': cls}
1.58 KB
Loading

ietf/static/js/flot.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "~/node_modules/flot";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "~/node_modules/highcharts/modules/export-data";

ietf/static/js/ietf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jQuery.ajaxSetup({
4343
$(document)
4444
.ready(function () {
4545
$('[title][title!=""]')
46-
.not("th")
4746
.attr("data-bs-toggle", "tooltip")
4847
.tooltip();
4948
});
@@ -128,7 +127,7 @@ $(document)
128127
.attr("data-bs-offset", 0)
129128
.attr("tabindex", 0)
130129
.after($(`
131-
<div class="col-md-2 small">
130+
<div class="col-xl-2 small">
132131
<nav id="righthand-nav" class="position-fixed navbar navbar-light bg-light overflow-auto" style="height: 70vh;">
133132
<!--<a class="navbar-brand" href="#">Navbar</a>-->
134133
</nav>

ietf/static/js/list.js

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ $(document)
3939

4040
$(header_row)
4141
.children("[data-sort]")
42-
.addClass("sort");
42+
.addClass("sort")
43+
.each((i, e) => {
44+
if (fields[i] == "date" || fields[i] == "num") {
45+
// magic
46+
$(e)
47+
.addClass("text-end");
48+
}
49+
});
4350

4451
if ($(header_row)
4552
.text()
@@ -77,15 +84,15 @@ $(document)
7784
var list_instance = [];
7885
var internal_table = [];
7986

80-
var pagination = $(table)
81-
.children("tbody")
82-
.length == 1;
87+
// var pagination = $(table)
88+
// .children("tbody")
89+
// .length == 1;
8390

8491
// list.js cannot deal with tables with multiple tbodys,
8592
// so maintain separate internal "tables" for
8693
// sorting/searching and update the DOM based on them
8794
$(table)
88-
.children("tbody")
95+
.children("tbody, tfoot")
8996
.addClass("list")
9097
.each(function () {
9198
// add the required classes to the cells
@@ -97,7 +104,7 @@ $(document)
97104
.each((i, e) => {
98105
$(e)
99106
.addClass(fields[i]);
100-
if (fields[i] == "date") {
107+
if (fields[i] == "date" || fields[i] == "num") {
101108
// magic
102109
$(e)
103110
.addClass("text-end");
@@ -113,6 +120,13 @@ $(document)
113120
var tbody = $(this)
114121
.clone();
115122

123+
if ($(tbody)
124+
.find("tr")
125+
.length == 0) {
126+
console.log("Skipping empty tbody");
127+
return;
128+
}
129+
116130
var parent = $(table)
117131
.clone()
118132
.empty()

ietf/static/js/review-stats.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
$(document)
2+
.ready(function () {
3+
if (window.timeSeriesData && window.timeSeriesOptions) {
4+
var placeholder = $(".stats-time-graph");
5+
placeholder.height(Math.round(placeholder.width() * 1 / 3));
6+
7+
$.plot(placeholder, window.timeSeriesData, window.timeSeriesOptions);
8+
}
9+
});

0 commit comments

Comments
 (0)