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.6KB

12345678910111213141516171819202122232425262728293031323334
  1. @model Teknik.Areas.Paste.ViewModels.PasteViewModel
  2. @using Teknik.Utilities
  3. @Styles.Render("~/Content/paste")
  4. <script type="text/javascript">
  5. var createVaultURL = '@Url.SubRouteUrl("vault", "Vault.NewVaultFromService", new { type = "Paste" })';
  6. </script>
  7. <div class="container">
  8. <div class="row text-center">
  9. <div class="col-sm-12 text-center">
  10. <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>
  11. </div>
  12. </div>
  13. <hr />
  14. <div class="row">
  15. <div class="col-sm-12 pull-left">
  16. <div class="btn-group" role="group">
  17. <a role="button" class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Simple", new { url = Model.Url })">Simple</a>
  18. <a role="button" class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Raw", new { url = Model.Url })">Raw</a>
  19. <a role="button" class="btn btn-default" href="@Url.SubRouteUrl("paste", "Paste.Download", new { url = Model.Url })">Download</a>
  20. <button type="button" class="btn btn-default" id="create-vault" data-paste-url="@Model.Url" data-paste-title="@((string.IsNullOrEmpty(Model.Title)) ? "Untitled" : Model.Title)">Create Vault</button>
  21. </div>
  22. </div>
  23. </div>
  24. <br />
  25. <div class="row">
  26. <div class="col-sm-12">@Html.Raw(Model.Content)</div>
  27. </div>
  28. </div>
  29. @Scripts.Render("~/bundles/paste")