Skip to content

Commit cb266de

Browse files
committed
add steam banner to download page, fix #2666
1 parent 1b25d04 commit cb266de

4 files changed

Lines changed: 41 additions & 2 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using PlasmaShared;
2+
using Ratings;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Data.Entity;
6+
using System.Linq;
7+
using System.Security.Cryptography;
8+
using System.Web.Helpers;
9+
using System.Web.Mvc;
10+
using ZkData;
11+
12+
namespace ZeroKWeb.Controllers
13+
{
14+
15+
public class DownloadController : Controller
16+
{
17+
18+
// GET: Download
19+
public ActionResult Index()
20+
{
21+
return View("DownloadIndex");
22+
}
23+
}
24+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@using ZkData
2+
@using System.Globalization
3+
4+
@{
5+
Page.Title = "Download Zero-K";
6+
}
7+
<div class="fleft width-100" style="padding: 5px;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;">
8+
<h1>Downloading Zero-K</h1> <br />
9+
<iframe src="http://store.steampowered.com/widget/334920/" width="600" height="190" frameborder="0"></iframe>
10+
@Html.IncludeWiki("Download")
11+
12+
</div>
13+
<br class="clearfloat" />

Zero-K.info/Views/Shared/TopMenu.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<ul class="menu">
1818
<li><a href="/Wiki/Download">Play</a>
1919
<ul>
20-
<li><a href="/Wiki/Download">Download Zero-K<span>Download the game, it's free! :)</span></a></li>
21-
<!--<li><a href="Url.Action("Index", "Missions")">Missions<span>Single player missions</span></a></li>-->
20+
<li><a href="@Url.Action("Index", "Download")">Download Zero-K<span>Download the game, it's free! :)</span></a></li>
21+
<!--<li><a href="Url.Action("Index", "Missions")">Missions<span>Single player missions</span></a></li>-->
2222
<!--Mission hidden until Chobby supports them-->
2323
<li><a href="@Url.Action("Index", "Maps")">Maps<span>Thousands of maps to pick</span></a></li>
2424
<li><a href="@Url.Action("Index", "Battles")">Replays<span>All your past victories, stored here!</span></a></li>

Zero-K.info/asp.net.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
</Compile>
173173
<Compile Include="Controllers\AdminController.cs" />
174174
<Compile Include="Controllers\AutocompleteController.cs" />
175+
<Compile Include="Controllers\DownloadController.cs" />
175176
<Compile Include="Controllers\ChartsController.cs" />
176177
<Compile Include="Controllers\ClansController.cs" />
177178
<Compile Include="Controllers\EnginesController.cs" />
@@ -1573,6 +1574,7 @@
15731574
<Content Include="Views\Ladders\LaddersMaps.cshtml">
15741575
<BrowseToURL>~/Ladders/LaddersMaps</BrowseToURL>
15751576
</Content>
1577+
<Content Include="Views\Download\DownloadIndex.cshtml" />
15761578
</ItemGroup>
15771579
<ItemGroup>
15781580
<Content Include="Views\_ViewStart.cshtml" />

0 commit comments

Comments
 (0)