<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<FotbalPortal.Models.Article>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Html.DisplayFor(model => model.title) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2><%: Html.DisplayFor(model => model.title) %></h2>

<fieldset>
    <legend>Článek</legend>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.author) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.author) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.status) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.status) %>
    </div>
    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.text) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.text) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.created) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.created) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.edited) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.edited) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.published) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.published) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.commentsAllowed) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.commentsAllowed) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.category.name) %>
    </div>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.category.name) %>
    </div>

    <div class="display-label">
        <%: Html.DisplayNameFor(model => model.image) %>
    </div>
    <div class="display-field">
        <img src="/images/<%: Html.DisplayFor(model => model.image) %>" />
    </div>
</fieldset>
<p>
    <% if (User.Identity.IsAuthenticated) {
        Html.ActionLink("Upravit", "Edit", new { id=Model.id });   
    } %>
</p>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
