Permalink
Browse files

Add master warning

  • Loading branch information...
jkelin committed Jan 19, 2019
1 parent 4a06c2a commit 192e825851c0f29cec41997953c21f92c8ea3e15
Showing with 76 additions and 75 deletions.
  1. +2 −1 src/index.ts
  2. +72 −72 views/home.handlebars
  3. +2 −2 views/layouts/main.handlebars
@@ -141,7 +141,8 @@ if (STATS_WEB) {
playersTime: data[1],
servers: data[2],
news: data[3].slice(0, 5),
now: new Date()
now: new Date(),
warnings: [{ text: "If you have issues seeing servers in-game, download this <a href='https://downloads.tribesrevengeance.net/other/Engine.dll'>Engine.dll</a> and put it into your Tribes/Program/Bin folder next to your TV_CD_DVD.exe file. If you are asked to overwrite the old one, click yes." }]
};
res.render('home', obj);
})
@@ -9,82 +9,82 @@
</ul>
</div>
<div class="col-lg-10 col-lg-offset-2 main">
{{#if alerts}}
{{#each alerts}}
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
{{text}}
</div>
{{/each}}
{{/if}}
{{#if warnings}}
{{#each warnings}}
<br>
<div class="alert alert-warning alert-dismissible" role="alert">
{{!-- <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> --}}
{{{text}}}
</div>
{{/each}}
{{/if}}

{{#if servers}}
<h2 id="servers">Online servers</h2>
<table class="table table-bordered servertable">
<thead>
<tr>
<th>Name</th>
<th class="hidden-xs">Address</th>
<th>Map</th>
<th>Players</th>
</tr>
</thead>
<tbody>
{{#each servers}}
<tr class="server-map-row">
<td><a href="/server/{{urlencode _id}}">{{name}}</a> {{> flag country=country}}</td>
<td class="hidden-xs">{{_id}}</td>
<td class="server-map-td">
<div class="server-map">
<span class="server-map-description">
[{{lastdata.gametype}}] {{mapName lastdata.mapname}}
</span>
{{#if lastdata.mapnamefull}}
<span class="server-map-thumbnail hidden-xs">
<a href="{{mapImage lastdata.mapnamefull "loadscreens-chopped" false}}" target="_blank">
<img width="91" height="44" src="{{mapImage lastdata.mapnamefull "loadscreens-chopped" true}}" alt="{{lastdata.mapname}}">
</a>
</span>
{{/if}}
</div>
</td>
<td>{{lastdata.numplayers}}</td>
</tr>
{{/each}}
</tbody>
</table>
<div id="oldDiv"></div>
{{else}}
No servers online :(
{{/if}}

{{#if servers}}
<h2 id="servers">Online servers</h2>
<table class="table table-bordered servertable">
<thead>
<tr>
<th>Name</th>
<th class="hidden-xs">Address</th>
<th>Map</th>
<th>Players</th>
</tr>
</thead>
<tbody>
{{#each servers}}
<tr class="server-map-row">
<td><a href="/server/{{urlencode _id}}">{{name}}</a> {{> flag country=country}}</td>
<td class="hidden-xs">{{_id}}</td>
<td class="server-map-td">
<div class="server-map">
<span class="server-map-description">
[{{lastdata.gametype}}] {{mapName lastdata.mapname}}
</span>
{{#if lastdata.mapnamefull}}
<span class="server-map-thumbnail hidden-xs">
<a href="{{mapImage lastdata.mapnamefull "loadscreens-chopped" false}}" target="_blank">
<img width="91" height="44" src="{{mapImage lastdata.mapnamefull "loadscreens-chopped" true}}" alt="{{lastdata.mapname}}">
</a>
</span>
{{/if}}
</div>
</td>
<td>{{lastdata.numplayers}}</td>
</tr>
{{/each}}
</tbody>
</table>
<div id="oldDiv"></div>
{{else}}
No servers online :(
{{/if}}
<h2 id="kills">Greatest killers</h2>
{{> playerstable data=playersKills}}

<h2 id="kills">Greatest killers</h2>
{{> playerstable data=playersKills}}
<h2 id="time">Most addicted</h2>
{{> playerstable data=playersTime}}

<h2 id="time">Most addicted</h2>
{{> playerstable data=playersTime}}
<h2 id="about">About</h2>
<p>
<a href="http://tribesrevengeance.net">Tribes Revengeance</a> stats page. <br>
Made by Fireant with the help of Cobra and HighDive. <br>
Source code available on <a href="https://github.com/jkelin/Tribes-Revengeance-stats">Github</a>.
</p>

<h2 id="about">About</h2>
<p>
<a href="http://tribesrevengeance.net">Tribes Revengeance</a> stats page. <br>
Made by Fireant with the help of Cobra and HighDive. <br>
Source code available on <a href="https://github.com/jkelin/Tribes-Revengeance-stats">Github</a>.
</p>
<h2 id="news">News</h2>
<h3>Code changes</h3>
<table class="table table-striped">
<tr>
<th>When</th>
<th>What</th>
</tr>

<h2 id="news">News</h2>
<h3>Code changes</h3>
<table class="table table-striped">
<tr>
<th>When</th>
<th>What</th>
</tr>

{{#each news}}
<tr>
<td>{{showMoment date}}</td>
<td><a href="{{url}}">{{message}}</a></td>
</tr>
{{/each}}
</table>
{{#each news}}
<tr>
<td>{{showMoment date}}</td>
<td><a href="{{url}}">{{message}}</a></td>
</tr>
{{/each}}
</table>
</div>
@@ -56,8 +56,8 @@
{{#each alerts}}
<br>
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
{{text}}
{{!-- <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> --}}
{{{text}}}
</div>
{{/each}}
{{/if}}

0 comments on commit 192e825

Please sign in to comment.