Skip to content

Commit

Permalink
#43: update views
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Apr 16, 2017
1 parent 3ce4c3b commit 46133d9
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 20 deletions.
2 changes: 0 additions & 2 deletions ForneverMind/views/404.cshtml
@@ -1,5 +1,3 @@
@using RazorEngine.Templating
@inherits TemplateBase
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Страница не найдена";
Expand Down
3 changes: 1 addition & 2 deletions ForneverMind/views/Archive.cshtml
@@ -1,5 +1,4 @@
@using RazorEngine.Templating
@inherits TemplateBase<ForneverMind.Models.PostArchiveModel>
@model ForneverMind.Models.PostArchiveModel

@{
Layout = "_Layout.cshtml";
Expand Down
3 changes: 0 additions & 3 deletions ForneverMind/views/Contact.cshtml
@@ -1,6 +1,3 @@
@using RazorEngine.Templating
@inherits TemplateBase

@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Контакты";
Expand Down
2 changes: 0 additions & 2 deletions ForneverMind/views/Error.cshtml
@@ -1,5 +1,3 @@
@using RazorEngine.Templating
@inherits TemplateBase
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Ошибка сервера";
Expand Down
3 changes: 1 addition & 2 deletions ForneverMind/views/Index.cshtml
@@ -1,5 +1,4 @@
@using RazorEngine.Templating
@inherits TemplateBase<ForneverMind.Models.PostArchiveModel>
@model ForneverMind.Models.PostArchiveModel

@{
Layout = "_Layout.cshtml";
Expand Down
3 changes: 1 addition & 2 deletions ForneverMind/views/Post.cshtml
@@ -1,5 +1,4 @@
@using RazorEngine.Templating
@inherits TemplateBase<ForneverMind.Models.PostModel>
@model ForneverMind.Models.PostModel

@{
Layout = "_Layout.cshtml";
Expand Down
5 changes: 1 addition & 4 deletions ForneverMind/views/Talks.cshtml
@@ -1,7 +1,4 @@
@using RazorEngine.Templating
@inherits TemplateBase

@{
@{
Layout = "_Layout.cshtml";
ViewBag.Title = "Доклады";
}
Expand Down
5 changes: 2 additions & 3 deletions ForneverMind/views/_Layout.cshtml
@@ -1,11 +1,10 @@
<!DOCTYPE html>
@using RazorEngine.Templating
@inherits TemplateBase
<html lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>F. von Never — @ViewBag.Title</title>
<base href="@System.Configuration.ConfigurationManager.AppSettings["BaseUrl"]"/>
<!--<base href="System.Configuration.ConfigurationManager.AppSettings["BaseUrl"]"/>
TODO[F]: Fix base url determination here. -->
<link rel="alternate" type="application/rss+xml" href="./rss.xml" title="RSS Feed"/>
<link rel="stylesheet" type="text/css" href="app/app.css"/>
<script src="app/app.js" async></script>
Expand Down

0 comments on commit 46133d9

Please sign in to comment.