yavsc/web/Models/App.master
Paul Schneider 9eff4b0749 * mdd_help.htm:
* mdd_styles.css:
* LocalizedText.resx:
* all.css:
* jquery-ui-1.11.4.js:
* tabs.css:
* menu.css:
* core.css:
* base.css:
* LocalizedText.fr.resx:
* theme.css:
* slider.css:
* button.css:
* dialog.css:
* spinner.css:
* tooltip.css:
* jquery-ui-1.11.4.min.js:
* sortable.css:
* LocalizedText.Designer.cs:
* resizable.css:
* accordion.css:
* draggable.css:
* selectmenu.css:
* selectable.css:
* datepicker.css:
* progressbar.css:
* LocalizedText.fr.Designer.cs:
* autocomplete.css:
* ui-icons_888888_256x240.png:
* ui-icons_cd0a0a_256x240.png:
* ui-icons_454545_256x240.png:
* ui-icons_2e83ff_256x240.png:
* ui-icons_222222_256x240.png:
* ui-bg_flat_0_aaaaaa_40x100.png:
* ui-bg_glass_95_fef1ec_1x400.png:
* ui-bg_flat_75_ffffff_40x100.png:
* ui-bg_glass_55_fbf9ee_1x400.png:
* ui-bg_glass_65_ffffff_1x400.png:
* ui-bg_glass_75_dadada_1x400.png:
* ui-bg_glass_75_e6e6e6_1x400.png:
* ui-bg_highlight-soft_75_cccccc_1x100.png:

* BlogsController.cs: implements the access control on file upload to
  blog entries

* style.css: nicer appmenu

* BlogsController.cs: Enables the input validation at posting blog
  entries

* MarkdownHelper.cs: enables ExtraMode transformation parameter

* App.master: Error and message html divisions must exist in the DOM
  to display Ajax messages and errors

* yavsc.js:
* yavsc.circles.js: refactoring

* Circles.aspx: removes a DOM element that already exists in the
  mastyer page : the message box

* Edit.aspx: submits files for import as Markdown text

* Web.config: Disables the local trace

* Web.csproj: jQuery.UI addition

* packages.config: adds a ref to jQuery.UI Combined
2015-09-16 01:07:04 +02:00

87 lines
3.4 KiB
Text

<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" CodeBehind="App.master.cs" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<asp:ContentPlaceHolder id="init" runat="server">
</asp:ContentPlaceHolder><%
ViewState["orgtitle"] = Html.Translate(Page.Title);
Page.Title = ViewState["orgtitle"] + " - " + YavscHelpers.SiteName;
%><head runat="server">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="~/App_Themes/style.css" />
<link rel="icon" type="image/png" href="/favicon.png?v=3" />
<script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery-2.1.4.min.js")%>">
</script>
<script type="text/javascript">
var apiBaseUrl = '<%=Url.Content(Yavsc.WebApiConfig.UrlPrefixRelative)%>';
</script>
<script src="/Scripts/yavsc.js">
</script>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<link href='http://fonts.googleapis.com/css?family=Dancing+Script:400,700' rel='stylesheet' type='text/css'/>
</head>
<body>
<header>
<asp:ContentPlaceHolder ID="overHeaderOne" runat="server">
<h1><a href="<%= Html.Encode(Request.Url.AbsoluteUri.ToString()) %>"> <%=ViewState["orgtitle"]%> </a>
<span> -
<a href="<%=Request.Url.Scheme + "://" + Request.Url.Authority%>"><%= YavscHelpers.SiteName %></a>
</span></h1>
</asp:ContentPlaceHolder>
<asp:ContentPlaceHolder ID="header" runat="server"></asp:ContentPlaceHolder>
<div id="error"><%= (ViewData["Error"]!=null)? Html.Encode(ViewData["Error"]) : "" %></div>
<div id="message"><%= Html.Encode(ViewData["Message"]) %></div>
</header>
<div id="appmenu" >
<% if (Membership.GetUser()==null) { %>
<div class="menuitem">
<%= Html.ActionLink("Authentification", "Login", "Account", new { returnUrl=Request.Url.PathAndQuery },null) %>
<div class="hint">Pour pouvoir publier</div>
</div>
<% } else { %><div class="menuitem">
<a href="/Blog/<%= HttpContext.Current.User.Identity.Name%>">
<img src="<%=Html.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" width="25%" alt="vos posts" /></a>
<div class="hint">Votre Blog</div>
</div>
<div class="menuitem">
<%= Html.ActionLink(HttpContext.Current.User.Identity.Name, "Profile", "Account", new { id = HttpContext.Current.User.Identity.Name }, null) %>
<div class="hint"> &Eacute;dition de votre profile </div></div>
<div class="menuitem">
<a href="/Blogs/Post" >Poster</a>
<div class="hint">
&Eacute;dition d'un nouveau billet </div></div>
<div class="menuitem">
<%= Html.ActionLink( "Deconnexion", "Logout", "Account", new { returnUrl=Request.Url.PathAndQuery }, null) %>
<% } %>
</div>
</div>
<main>
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
</main>
<asp:ContentPlaceHolder ID="MASContent" runat="server">
</asp:ContentPlaceHolder>
<footer>
<script src="https://apis.google.com/js/platform.js" defer>
{lang: 'fr'}
</script>
<%= Html.ActionLink("Contact","Contact","Home",null, new { @class="thanks" }) %>
<% foreach ( Link link in Html.Thanks()) { %>
<a class="thanks" href="<%=link.Url%>"><% if (link.Image !=null) {
%><img src="<%= link.Image %>" alt="<%= link.Text %>"/></a>
<% } else { %>
<a class="thanks" href="<%=link.Url%>"><%= link.Text %></a>
<% }} %>
<div class="g-plusone" data-annotation="inline" data-width="230"></div>
</footer>
</body>
</html>