vnext
Paul Schneider 8 years ago
parent 262d413afd
commit 709d3b6eed
5 changed files with 13 additions and 8 deletions

@ -4,6 +4,8 @@ namespace Yavsc
{ {
public string Title { get; set; } public string Title { get; set; }
public string Slogan { get; set; } public string Slogan { get; set; }
public string Banner { get; set; }
/// <summary> /// <summary>
/// Conceptually, /// Conceptually,
/// This authorisation server only has this present site as unique audience. /// This authorisation server only has this present site as unique audience.

@ -346,6 +346,7 @@ namespace Yavsc
name: "default", name: "default",
template: "{controller=Home}/{action=Index}/{id?}"); template: "{controller=Home}/{action=Index}/{id?}");
}); });
} }
// Entry point for the application. // Entry point for the application.

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" />
<link rel="icon" href="/favicon.ico?v2" /> <link rel="icon" href="/favicon.ico?v2" />
<title>@ViewData["Title"] - @SiteSettings.Value.Title</title> <title>@ViewData["Title"] - @SiteSettings.Value.Title</title>
<environment names="Development"> <environment names="Development">
<link rel="stylesheet" href="~/css/bootstrap.css" /> <link rel="stylesheet" href="~/css/bootstrap.css" />
<link rel="stylesheet" href="~/css/site.css" /> <link rel="stylesheet" href="~/css/site.css" />
@ -32,13 +33,18 @@
<script src="~/js/site.js"></script> <script src="~/js/site.js"></script>
</environment> </environment>
<script src="~/js/jquery.signalR-2.2.1.js"></script> <script src="~/js/jquery.signalR-2.2.1.js"></script>
<style>
nav {
background: url(@Startup.SiteSetup.Banner) 0% 50%;
}
</style>
@RenderSection("header", required: false) @RenderSection("header", required: false)
</head> </head>
<body> <body>
@if (ViewData ["Notify"] != null) { @if (ViewData ["Notify"] != null) {
foreach (Notification n in ViewData ["Notify"] as IEnumerable<Notification>) { foreach (Notification n in ViewData ["Notify"] as IEnumerable<Notification>) {
<div class="alert alert-info alert-dismissable"> <div class="alert alert-info alert-dismissable">
<em><strong>@n.title</strong></em><br> <h1>@n.title</h1><em></em>
@n.body @n.body
<a class="close" data-dismiss="alert" aria-label="close" onclick="notifClick(@n.Id)">@((n.click_action==null)?SR["Fermer"]:SR[n.click_action])</a> <a class="close" data-dismiss="alert" aria-label="close" onclick="notifClick(@n.Id)">@((n.click_action==null)?SR["Fermer"]:SR[n.click_action])</a>
</div> </div>
@ -75,12 +81,7 @@
<environment names="Development"> <environment names="Development">
<p><em>Site de développement</em></p> <p><em>Site de développement</em></p>
</environment> </environment>
<environment names="Lua"> <i>@SiteSettings.Value.Slogan</i>
<i>Get up.</i>
</environment>
<environment names="ZicMoove">
<i>Get up.</i>
</environment>
<script> <script>
window.fbAsyncInit = function() { window.fbAsyncInit = function() {

@ -14,7 +14,8 @@
}, },
"Site": { "Site": {
"Title": "Yavsc", "Title": "Yavsc",
"Slogan":"Yavsc!", "Slogan": "Yavsc!",
"Banner": "/images/banner.jpg",
"Authority": "http://127.0.0.1:5000/", "Authority": "http://127.0.0.1:5000/",
"Audience": "http://127.0.0.1:5000/", "Audience": "http://127.0.0.1:5000/",
"Owner": { "Owner": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Loading…