Skip to content

Commit

Permalink
fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pegasy committed Jul 31, 2017
1 parent 8ad58c2 commit 7ab8c4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
<body>
<section class="page-header">
<header id="header">
<a href="/">Recent Trials</a> |
<a href="/top/lor">Top 100 LoR</a> |
<a href="/top/lornm">Top 100 NM LoR</a> |
<a href="/top/jv">Top 100 JV</a> | Monthly Leaderboard (<a href="/top/monthly/lor">LoR</a> | <a href="/top/monthly/lornm">LoR NM</a> | <a href="/top/monthly/jv">JV</a>)
<a href="{{ '/' | relative_url}">Recent Trials</a> |
<a href="{{ '/top/lor' | relative_url }}">Top 100 LoR</a> |
<a href="{{ '/top/lornm' | relative_url }}">Top 100 NM LoR</a> |
<a href="{{ '/top/jv' | relative_url }}">Top 100 JV</a> | Monthly Leaderboard (
<a href="{{ '/top/monthly/lor' | relative_url }}">LoR</a> |
<a href="{{ '/top/monthly/lornm' | relative_url }}">LoR NM</a> |
<a href="{{ '/top/monthly/jv' | relative_url }}">JV</a>
)
<div style="float:right;">
<a href="https://trials.wf">PC</a> |
<a href="https://ps4.trials.wf">PS4</a> |
Expand Down
6 changes: 3 additions & 3 deletions assets/js/loadRaids.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ function populateTable(data) {
}
kills.innerHTML = r.kills;
deaths.innerHTML = r.deaths;
$(host).append($("<a>").attr("href", "/player/?user=" + r.host).text(r.host));
$(host).append($("<a>").attr("href", "{{ '/player/' | relative_url }}?user=" + r.host).text(r.host));
$.each(r.players, function (i, p) {
var player = $("<a>")
.attr("href", "/player/?user=" + p)
.attr("href", "{{ '/player/' | relative_url }}?user=" + p)
.text(p);
$(players).append(player);
if (i < r.players.length - 1) {
Expand Down Expand Up @@ -234,7 +234,7 @@ function markPersonalBest(type) {
var top = $(sorted[0]);
var objective = top.children('.objective');
var img = $('<img>')
.attr('src', '/assets/images/star.png')
.attr('src', "{{ '/assets/images/star.png' | relative_url }}")
.attr('height', '19px')
.attr('title', 'Personal Best');
objective.append(img);
Expand Down

0 comments on commit 7ab8c4d

Please sign in to comment.