forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes TryGhost#3568 - Deleted html placeholders in client - Added new grunt task, buildAboutPage, which 1)creates -contributors.hbs partial and 2) downloads contributor avatars - buildAboutPage is called by anything that does an emberTemplates task - Removed unused code from ghostpaths
- Loading branch information
Showing
9 changed files
with
151 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]'), | ||
errorImageSrcSet: assetUrl('/ghost/img/404-ghost.png') + ' 1x, ' + | ||
assetUrl('/ghost/img/[email protected]') + ' 2x', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import BaseView from 'ghost/views/settings/content-base'; | ||
|
||
var SettingsAboutView = BaseView.extend(); | ||
|
||
export default SettingsAboutView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters