Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 25 additions & 159 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ clap = { version = "4.5.56", features = ["derive"] }
deadpool-postgres = { version = "0.14.1", features = ["serde"] }
figment = { version = "0.10.19", features = ["yaml", "env"] }
futures = "0.3.31"
graphql_client = { version = "0.16.0", features = ["reqwest"] }
graphql_client = { version = "0.16.0", features = ["reqwest-rustls"] }
hex = "0.4.3"
hmac = "0.12.1"
http = "1.4.0"
Expand Down
4 changes: 1 addition & 3 deletions templates/audit-vote-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ <h3>Vote details</h3>
{% else -%}
#{{ vote.issue_number }}
{% endif -%}
<svg class="ext-sm" viewBox="0 0 24 24" aria-hidden="true">
<path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h6v2H7v10h10v-4h2v6H5V5Z" />
</svg>
{% include "external-link-icon.html" %}
</a>
</div>
</div>
Expand Down
21 changes: 15 additions & 6 deletions templates/audit.html
Original file line number Diff line number Diff line change
Expand Up @@ -1121,11 +1121,17 @@ <h1>{{ repository_full_name }}</h1>
</div>
<div class="vote-meta">
<div class="type-vote">
{% if vote.is_pull_request %}
Pull request
{% else %}
Issue
{% endif %}
<a class="inline-link"
href="https://github.com/{{ vote.repository_full_name }}/{%- if vote.is_pull_request -%}pull{%- else -%}issues{%- endif -%}/{{ vote.issue_number }}"
target="_blank"
rel="noopener noreferrer">
{% if vote.is_pull_request %}
Pull request
{% else %}
Issue
{% endif %}
{% include "external-link-icon.html" %}
</a>
</div>
<div class="status-badges">
{% if vote.closed %}
Expand Down Expand Up @@ -1349,7 +1355,10 @@ <h2>Vote</h2>
body.style.overflow = '';
};
document.querySelectorAll('tr[data-modal-id]').forEach((row) => {
row.addEventListener('click', () => {
row.addEventListener('click', (event) => {
if (event.target.closest('a')) {
return;
}
const overlay = overlays.get(row.dataset.modalId);
if (overlay) {
openModal(overlay);
Expand Down
3 changes: 3 additions & 0 deletions templates/external-link-icon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<svg class="ext-sm" viewBox="0 0 24 24" aria-hidden="true">
<path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h6v2H7v10h10v-4h2v6H5V5Z" />
</svg>