The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Full.cshtml 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. @model Teknik.Areas.Paste.ViewModels.PasteViewModel
  2. @using Teknik.Utilities
  3. @Styles.Render("~/Content/paste")
  4. @Scripts.Render("~/bundles/paste")
  5. @{
  6. string syntax = string.Empty;
  7. if (Model.Syntax != "auto-detect")
  8. {
  9. syntax = Model.Syntax;
  10. }
  11. }
  12. <div class="container">
  13. <div class="row text-center">
  14. <div class="col-sm-12 text-center">
  15. <h2><b>@((string.IsNullOrEmpty(Model.Title)) ? "Untitled" : Model.Title)</b> <small>Posted on <time datetime="@Model.DatePosted.ToString("s")">@Model.DatePosted.ToString("dddd, MMMM d, yyyy") at @Model.DatePosted.ToString("h:mm:ss tt")</time> - Format: <b id="syntaxLanguage">@Model.Syntax</b></small></h2>
  16. </div>
  17. </div>
  18. <hr />
  19. <div class="row">
  20. <div class="col-sm-12 pull-left">
  21. <div class="btn-group" role="group">
  22. <a role="button" class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Simple", new { url = Model.Url })">Simple</a>
  23. <a role="button" class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Raw", new { url = Model.Url })">Raw</a>
  24. <a role="button" class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Download", new { url = Model.Url })">Download</a>
  25. </div>
  26. </div>
  27. </div>
  28. <br />
  29. <div class="row">
  30. <div class="col-sm-12">@Html.Raw(Model.Content)</div>
  31. </div>
  32. </div>