<%@ 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>
<br />
<div class="read-article">
    <div class="image"><img src="/images/<%: Html.DisplayFor(model => model.image) %>" /></div>
    <div class="text">
        <%: Html.DisplayFor(model => model.text) %>
    </div>
</div>
<br />
<div class="clear-both"></div>
<div class="fb-share-button" data-href="https://www.eurofotbal.com/" data-layout="button_count"></div>

<a href="https://twitter.com/share" class="twitter-share-button" data-via="Steve5CZ">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<div class="g-plus" data-action="share"></div>

<div class="comments">
    <%       
        if (User.Identity.IsAuthenticated)
        { %>
          <%: Html.Action("Create", "Comment", new { articleID = Model.id})  %> 
       <% }     
    %>
    <%: Html.Partial("Comments", ViewData["comments"]) %>
</div>

</asp:Content>

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