Skip to content

Commit

Permalink
Moving all list links to target blank
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneTR committed Oct 30, 2023
1 parent 5807ffb commit f68cb05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/js/energy-timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function () {
chart_node.classList.add('ui')
chart_node.classList.add('wide')

const url_link = `${replaceRepoIcon(url)} <a href="${url}"><i class="icon external alternate"></i></a>`;
const url_link = `${replaceRepoIcon(url)} <a href="${url}" target="_blank"><i class="icon external alternate"></i></a>`;
chart_node.innerHTML = `
<div class="content">
<div class="header">${name}</div>
Expand Down Expand Up @@ -47,7 +47,7 @@ $(document).ready(function () {
<i class="question circle icon link"></i>
</i>
</div>
<span class="energy-badge-container"><a href="${METRICS_URL}/timeline.html?uri=${url}&branch=${branch}&filename=${filename}&machine_id=${machine_id}"><img src="${API_URL}/v1/badge/timeline?uri=${url}&branch=${branch}&filename=${filename}&machine_id=${machine_id}&metrics=${metric_name}&detail_name=${detail_name}" alt="Image Failed to Load" onerror="this.closest('.field').style.display='none'"></a></span>
<span class="energy-badge-container"><a href="${METRICS_URL}/timeline.html?uri=${url}&branch=${branch}&filename=${filename}&machine_id=${machine_id}" target="_blank"><img src="${API_URL}/v1/badge/timeline?uri=${url}&branch=${branch}&filename=${filename}&machine_id=${machine_id}&metrics=${metric_name}&detail_name=${detail_name}" alt="Image Failed to Load" onerror="this.closest('.field').style.display='none'"></a></span>
<a href="#" class="copy-badge"><i class="copy icon"></i></a>
</div>
</div>
Expand All @@ -57,11 +57,11 @@ $(document).ready(function () {
chart_node.innerHTML = `${chart_node.innerHTML}
</div>
<hr>
<a class="ui button blue" href="/timeline.html?uri=${url}&filename=${filename}&branch=${branch}&machine_id=${machine_id}">
<a class="ui button blue" href="/timeline.html?uri=${url}&filename=${filename}&branch=${branch}&machine_id=${machine_id}" target="_blank">
Show Timeline <i class="external alternate icon"></i>
</a>
<hr>
<a class="ui button grey" href="/index.html?uri=${url}&filename=${filename}&branch=${branch}&machine_id=${machine_id}">
<a class="ui button grey" href="/index.html?uri=${url}&filename=${filename}&branch=${branch}&machine_id=${machine_id}" target="_blank">
Show All Measurements <i class="external alternate icon"></i>
</a>`

Expand Down
2 changes: 1 addition & 1 deletion frontend/js/helpers/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const getRunsTable = (el, url, include_uri=true, include_button=true, searching=

if(row[9] == null) name = `${name} (in progress 🔥)`;
if(row[5] != null) name = `${name} <span class="ui yellow horizontal label" title="${row[5]}">invalidated</span>`;
return `<a href="/stats.html?id=${row[0]}">${name}</a>`
return `<a href="/stats.html?id=${row[0]}" target="_blank">${name}</a>`
},
},
]
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const loadCharts = async () => {
<i class="question circle icon link"></i>
</i>
</div>
<span class="energy-badge-container"><a href="${METRICS_URL}/timeline.html?${buildQueryParams()}"><img src="${API_URL}/v1/badge/timeline?${buildQueryParams(skip_dates=false,metric_override=series[my_series].metric_name,detail_name=series[my_series].detail_name)}"></a></span>
<span class="energy-badge-container"><a href="${METRICS_URL}/timeline.html?${buildQueryParams()}" target="_blank"><img src="${API_URL}/v1/badge/timeline?${buildQueryParams(skip_dates=false,metric_override=series[my_series].metric_name,detail_name=series[my_series].detail_name)}"></a></span>
<a href="#" class="copy-badge"><i class="copy icon"></i></a>
</div>
<p></p>`
Expand Down

0 comments on commit f68cb05

Please sign in to comment.