Skip to content

Commit acf67af

Browse files
committed
Fix broken templates, update CSS, update workflow
1 parent c3f97b3 commit acf67af

16 files changed

Lines changed: 60 additions & 52 deletions

File tree

‎.github/workflows/js-lint.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: JavaScript linting
1+
name: JavaScript and Jinja linting
22

33
on:
44
push:
55
branches:
66
- main
77
paths:
8+
- '**.jinja'
89
- '**.js'
10+
- '**.html'
911
- '**.ts'
1012
- '**.tsx'
1113
- '**.css'
@@ -17,7 +19,9 @@ on:
1719
branches:
1820
- main
1921
paths:
22+
- '**.jinja'
2023
- '**.js'
24+
- '**.html'
2125
- '**.ts'
2226
- '**.tsx'
2327
- '**.css'
@@ -32,8 +36,8 @@ jobs:
3236
name: eslint
3337
runs-on: ubuntu-latest
3438
steps:
35-
- uses: actions/checkout@v5
36-
- uses: actions/setup-node@v5
39+
- uses: actions/checkout@v6
40+
- uses: actions/setup-node@v6
3741
with: { node-version: '22' }
3842
- name: Install dependencies
3943
run: npm ci
@@ -44,8 +48,8 @@ jobs:
4448
name: prettier
4549
runs-on: ubuntu-latest
4650
steps:
47-
- uses: actions/checkout@v5
48-
- uses: actions/setup-node@v5
51+
- uses: actions/checkout@v6
52+
- uses: actions/setup-node@v6
4953
with: { node-version: '22' }
5054
- name: Install dependencies
5155
run: npm ci

‎pontoon/base/static/css/heading_info.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ul {
4848
#heading .details .title sup {
4949
position: absolute;
5050
top: -5px;
51+
margin-left: -3px;
5152
}
5253

5354
#heading .details .value {

‎pontoon/base/templates/widgets/checkbox.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% macro checkbox(label, class, attribute, is_enabled=False, title=False, help=False, form_field=None) %}
22
<div
3-
class="check-box {{ class }}{% if is_enabled %}enabled{% endif %}"
3+
class="check-box {{ class }} {% if is_enabled %}enabled{% endif %}"
44
data-attribute="{{ attribute }}"
55
{% if title %}title="{{ title }}"{% endif %}
66
>

‎pontoon/base/templates/widgets/heading_info.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<span class="title"
1111
>{{ title }}{% if title_link %}
1212
<sup
13-
><a href="{{ title_link }}" target="_blank" rel="noopener noreferrer"
14-
>*</a
13+
><a href="{{ title_link }}" target="_blank" rel="noopener noreferrer">
14+
*</a
1515
></sup
1616
>
1717
{% endif %}</span
@@ -146,7 +146,7 @@
146146
</p>
147147
{% endif %}
148148
</div>
149-
<div class="unreviewed{% if stats.unreviewed %}pending{% endif %}">
149+
<div class="unreviewed {% if stats.unreviewed %}pending{% endif %}">
150150
{% if link %}
151151
<a href="{{ link + '?status=unreviewed' }}">
152152
<p class="title">Unreviewed</p>

‎pontoon/base/templates/widgets/progress_chart.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
></span>
2828
</span>
2929
<span
30-
class="unreviewed-status fas fa-lightbulb{% if chart.unreviewed > 0 %}pending{% endif %}"
30+
class="unreviewed-status fas fa-lightbulb {% if chart.unreviewed > 0 %}pending{% endif %}"
3131
></span>
3232
</div>
3333
<div class="legend">

‎pontoon/contributors/static/css/contributors.css‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ body.top-contributors #heading .legend li .status.fas {
5959

6060
.details div {
6161
display: inline-block;
62-
width: 90px;
62+
flex: 0 0 90px;
6363
}
6464

6565
.details div span {
@@ -71,8 +71,15 @@ body.top-contributors #heading .legend li .status.fas {
7171
color: var(--white-1);
7272
}
7373

74-
th:last-child,
74+
th:last-child {
75+
text-align: center;
76+
width: 270px;
77+
}
78+
79+
.contributors-list th:last-child,
7580
.stats .details {
81+
display: flex;
82+
justify-content: center;
7683
text-align: center;
7784
width: 270px;
7885
}

‎pontoon/contributors/templates/contributors/widgets/contributor_list.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
{# Widget to display list of contributors. #}
1515
{% macro list_contributors(contributors, title="Contributors") %}
16-
<table class="striped">
16+
<table class="striped contributor-list">
1717
<thead>
1818
<tr>
1919
<th>{{ title }}</th>

‎pontoon/contributors/templates/contributors/widgets/notifications_menu.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% set unread_count = user.notifications.unread().count() %}
55
<div
66
id="notifications"
7-
class="notifications select{% if unread_count %}unread{% endif %}"
7+
class="notifications select {% if unread_count %}unread{% endif %}"
88
>
99
<div class="button selector">
1010
<i class="icon far fa-bell fa-fw"></i>

‎pontoon/localizations/templates/localizations/widgets/resource_list.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<thead>
1111
<tr>
1212
<th
13-
class="resource{% if deadline %}with-deadline{% endif %}{% if priority %}with-priority{% endif %} asc"
13+
class="resource {% if deadline %}with-deadline{% endif %} {% if priority %}with-priority{% endif %} asc"
1414
>
1515
Resource<i class="fas"></i>
1616
</th>
@@ -38,7 +38,7 @@
3838
{% macro item(resource, main_link, chart_link, latest_activity, chart, deadline, priority) %}
3939
<tr class="limited">
4040
<td
41-
class="resource{% if deadline %}with-deadline{% endif %}{% if priority %}with-priority{% endif %}"
41+
class="resource {% if deadline %}with-deadline{% endif %} {% if priority %}with-priority{% endif %}"
4242
>
4343
<h4>
4444
<a href="{{ main_link }}">{{ resource.title }}</a>

‎pontoon/messaging/templates/messaging/notifications/suggestions_reviewed.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
<a
1010
href="{{ full_url('pontoon.translate', locale.code, project.slug, 'all-resources') }}?list={{ ids }}"
1111
>
12-
{{ project.name }} ({{ locale.code }}): {{ msg }}
13-
</a>
12+
{{ project.name }} ({{ locale.code }}):</a
13+
>
14+
{{ msg }}
1415
</li>
1516
{% endfor %}
1617
</ul>

0 commit comments

Comments
 (0)