mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
parent
0290d04d4e
commit
cd57521e62
|
@ -78,6 +78,7 @@ public async Task<ActionResult> viewGroup(byte major, byte minor, ushort number,
|
|||
public async Task<ActionResult> viewBuild(Guid id)
|
||||
{
|
||||
BuildModel b = await bModel.SelectById(id);
|
||||
if (b == null) return new HttpNotFoundResult();
|
||||
return View(b);
|
||||
}
|
||||
|
||||
|
@ -85,17 +86,19 @@ public async Task<ActionResult> viewBuild(Guid id)
|
|||
public async Task<ActionResult> viewBuild(long id)
|
||||
{
|
||||
BuildModel b = await bModel.SelectByLegacyId(id);
|
||||
if (b == null) return new HttpNotFoundResult();
|
||||
return RedirectToAction("viewBuild", new { id = b.Id });
|
||||
}
|
||||
|
||||
[Route("twitter/{id}/")]
|
||||
[Route("twitter/{id:guid}/", Name = "Twitter")]
|
||||
#if !DEBUG
|
||||
// [OutputCache(Duration = 600, VaryByParam = "none")]
|
||||
// [OutputCache(Duration = 600, VaryByParam = "none")]
|
||||
[CustomContentType(ContentType = "image/png", Order = 2)]
|
||||
#endif
|
||||
public async Task<ActionResult> twitterCard(Guid id)
|
||||
{
|
||||
BuildModel b = await bModel.SelectById(id);
|
||||
if (b == null) return new HttpNotFoundResult();
|
||||
|
||||
using (Bitmap bm = new Bitmap(560, 300))
|
||||
{
|
||||
|
@ -124,6 +127,14 @@ public async Task<ActionResult> twitterCard(Guid id)
|
|||
return new EmptyResult();
|
||||
}
|
||||
|
||||
[Route("twitter/{id:long}/", Name = "Twitter (Legacy)")]
|
||||
public async Task<ActionResult> twitterCard(long id)
|
||||
{
|
||||
BuildModel b = await bModel.SelectByLegacyId(id);
|
||||
if (b == null) return new HttpNotFoundResult();
|
||||
return RedirectToAction("twitterCard", new { id = b.Id });
|
||||
}
|
||||
|
||||
[Route("lab/{lab}/", Order = 1, Name = "Lab Root")]
|
||||
#if !DEBUG
|
||||
// [OutputCache(Duration = 600, VaryByParam = "none", VaryByCustom = "userName")]
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
@model System.Web.Mvc.HandleErrorInfo
|
||||
@{
|
||||
Layout = null;
|
||||
bool IsRTL = System.Globalization.CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft;
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -70,6 +70,9 @@
|
|||
</rules>
|
||||
<rewriteMaps>
|
||||
<rewriteMap name="Support Pages">
|
||||
<add key="/rss/feed/low/" value="/rss/feed/wif/" />
|
||||
<add key="/rss/feed/medium/" value="/rss/feed/msit/" />
|
||||
<add key="/rss/feed/high/" value="/rss/feed/osg/" />
|
||||
<add key="/support/question/" value="/" />
|
||||
<add key="/support/stats/" value="/statistics/" />
|
||||
<add key="/support/rss/" value="/rss/" />
|
||||
|
|
Loading…
Reference in New Issue
Block a user