mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
Create base route for ember admin
This commit is contained in:
parent
f42653003a
commit
edfc98f65f
@ -45,8 +45,7 @@ function setSelected(list, name) {
|
||||
adminControllers = {
|
||||
'index': function (req, res) {
|
||||
/*jslint unparam:true*/
|
||||
// Ember goes here.
|
||||
res.send(200);
|
||||
res.render('default-ember');
|
||||
},
|
||||
// Route: index
|
||||
// Path: /ghost/
|
||||
|
@ -55,4 +55,6 @@ module.exports = function (server) {
|
||||
res.redirect(subdir + '/ghost/');
|
||||
});
|
||||
server.get('/ghost/', admin.indexold);
|
||||
|
||||
server.get('/ghost/ember/', admin.index);
|
||||
};
|
53
core/server/views/default-ember.hbs
Normal file
53
core/server/views/default-ember.hbs
Normal file
@ -0,0 +1,53 @@
|
||||
<!doctype html>
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
||||
<!--[if (gte IE 9)| IEMobile |!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="csrf-param" content="{{csrfToken}}">
|
||||
|
||||
<title>Ghost Admin</title>
|
||||
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
|
||||
|
||||
<meta http-equiv="cleartype" content="on">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
|
||||
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
|
||||
<link rel="apple-touch-icon-precomposed" href="{{asset "img/touch-icon-iphone.png" ghost="true"}}" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{asset "img/touch-icon-ipad.png" ghost="true"}}" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{asset "img/small.png" ghost="true"}}" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{asset "img/medium.png" ghost="true"}}" />
|
||||
|
||||
<meta name="application-name" content="Ghost"/>
|
||||
<meta name="msapplication-TileColor" content="#ffffff"/>
|
||||
<meta name="msapplication-square70x70logo" content="{{asset "img/small.png" ghost="true"}}" />
|
||||
<meta name="msapplication-square150x150logo" content="{{asset "img/medium.png" ghost="true"}}" />
|
||||
<meta name="msapplication-square310x310logo" content="{{asset "img/large.png" ghost="true"}}" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:400,300,700">
|
||||
<link rel="stylesheet" href="{{asset "css/screen.css" ghost="true"}}">
|
||||
</head>
|
||||
<body class="{{bodyClass}}{{update_notification classOnly="true"}}">
|
||||
{{#unless hideNavbar}}
|
||||
{{> navbar}}
|
||||
{{/unless}}
|
||||
|
||||
<main role="main" id="main">
|
||||
{{update_notification}}
|
||||
|
||||
<aside id="notifications" class="notifications">
|
||||
{{> notifications}}
|
||||
</aside>
|
||||
|
||||
{{{body}}}
|
||||
</main>
|
||||
|
||||
<div id="modal-container"></div>
|
||||
<div class="modal-background fade"></div>
|
||||
|
||||
{{{ghost_script_tags}}}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user