mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +03:00
commit
2b34e40fa1
@ -33,6 +33,7 @@ Router.map(function () {
|
||||
this.resource('settings.users', { path: '/users' }, function () {
|
||||
this.route('user', { path: '/:slug' });
|
||||
});
|
||||
this.route('about');
|
||||
});
|
||||
this.route('debug');
|
||||
//Redirect legacy content to posts
|
||||
|
25
ghost/admin/routes/settings/about.js
Normal file
25
ghost/admin/routes/settings/about.js
Normal file
@ -0,0 +1,25 @@
|
||||
import loadingIndicator from 'ghost/mixins/loading-indicator';
|
||||
|
||||
var SettingsAboutRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, loadingIndicator, {
|
||||
cachedConfig: false,
|
||||
model: function () {
|
||||
var cachedConfig = this.get('cachedConfig'),
|
||||
self = this;
|
||||
if (cachedConfig) {
|
||||
return cachedConfig;
|
||||
}
|
||||
|
||||
return ic.ajax.request(this.get('ghostPaths.url').api('configuration'))
|
||||
.then(function (configurationResponse) {
|
||||
var configKeyValues = configurationResponse.configuration;
|
||||
cachedConfig = {};
|
||||
configKeyValues.forEach(function (configKeyValue) {
|
||||
cachedConfig[configKeyValue.key] = configKeyValue.value;
|
||||
});
|
||||
self.set('cachedConfig', cachedConfig);
|
||||
return cachedConfig;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
export default SettingsAboutRoute;
|
@ -14,6 +14,8 @@
|
||||
{{gh-activating-list-item route="settings.users" title="Users" classNames="settings-menu-users"}}
|
||||
|
||||
{{/unless}}
|
||||
|
||||
{{gh-activating-list-item route="settings.about" title="About" classNames="settings-menu-about"}}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
55
ghost/admin/templates/settings/about.hbs
Normal file
55
ghost/admin/templates/settings/about.hbs
Normal file
@ -0,0 +1,55 @@
|
||||
<header class="settings-view-header">
|
||||
<h2 class="page-title">About</h2>
|
||||
<div class="settings-header-inner">
|
||||
{{#link-to 'settings' class='btn btn-default btn-back'}}Back{{/link-to}}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="content settings-about">
|
||||
<section class="about-ghost-intro">
|
||||
<h1>
|
||||
<span class="ghost_logo">
|
||||
<span class="hidden">Ghost</span>
|
||||
</span>
|
||||
<span class="version blue">v{{version}}</span>
|
||||
</h1>
|
||||
<p>A free, open, simple publishing platform</p>
|
||||
|
||||
<div class="about-environment-help clearfix">
|
||||
<div class="about-environment">
|
||||
<dl>
|
||||
<dt>Version:</dt>
|
||||
<dd class="about-environment-detail">{{version}}</dd>
|
||||
<dt>Environment:</dt>
|
||||
<dd class="about-environment-detail">{{environment}}</dd>
|
||||
<dt>Database:</dt>
|
||||
<dd class="about-environment-detail">{{database}}</dd>
|
||||
<dt>Mail:</dt>
|
||||
<dd class="about-environment-detail">{{#if mail}}{{mail}}{{else}}Native{{/if}}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="about-help">
|
||||
<a href="http://support.ghost.org" class="btn">User Documentation</a>
|
||||
<a href="https://ghost.org/forum/" class="btn">Get Help With Ghost</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="about-credits">
|
||||
<h1>The People Who Made it Possible</h1>
|
||||
|
||||
<ul class="top-contributors clearfix">
|
||||
{{partial "contributors"}}
|
||||
</ul>
|
||||
|
||||
<p class="about-contributors-info">Ghost is built by an incredible group of contributors from all over the world. Here are just a few of the people who helped create the version you’re using right now.</p>
|
||||
|
||||
<a href="https://github.com/TryGhost/Ghost/blob/master/CONTRIBUTING.md" class="about-get-involved btn-blue btn-lg btn">Find out how you can get involved</a>
|
||||
|
||||
<p class="about-copyright">
|
||||
Copyright 2013 - 2014 Ghost Foundation, released under the <a href="https://github.com/TryGhost/Ghost/blob/master/LICENSE">MIT license</a>.
|
||||
<br>
|
||||
<a href="https://ghost.org/">Ghost</a> is a trademark of the <a href="https://ghost.org/about/">Ghost Foundation</a>.
|
||||
</p>
|
||||
</section>
|
||||
</section>
|
@ -25,7 +25,7 @@ function ghostPaths() {
|
||||
blogRoot: subdir + '/',
|
||||
adminRoot: adminRoot,
|
||||
apiRoot: apiRoot,
|
||||
userImage: assetUrl('/assets/img/user-image.png'),
|
||||
contributorsDir: assetUrl('/ghost/img/contributors'),
|
||||
errorImageSrc: assetUrl('/ghost/img/404-ghost@2x.png'),
|
||||
errorImageSrcSet: assetUrl('/ghost/img/404-ghost.png') + ' 1x, ' +
|
||||
assetUrl('/ghost/img/404-ghost@2x.png') + ' 2x',
|
||||
|
5
ghost/admin/views/settings/about.js
Normal file
5
ghost/admin/views/settings/about.js
Normal file
@ -0,0 +1,5 @@
|
||||
import BaseView from 'ghost/views/settings/content-base';
|
||||
|
||||
var SettingsAboutView = BaseView.extend();
|
||||
|
||||
export default SettingsAboutView;
|
Loading…
Reference in New Issue
Block a user