discourse/app/assets/javascripts/discourse/controllers/static_controller.js
Robin Ward ad1a8db956 Support for linking to static pages with hash URLs like #section. Also
refactor of static code to be more idomatic.
2014-04-29 18:01:13 -04:00

21 lines
467 B
JavaScript

/**
This controller supports displaying static content.
@class StaticController
@extends Em.ObjectController
@namespace Discourse
@module Discourse
**/
Discourse.StaticController = Em.ObjectController.extend({
showLoginButton: Em.computed.equal('path', 'login')
});
Discourse.StaticController.reopenClass({
PAGES: ['faq', 'tos', 'privacy', 'login'],
CONFIGS: {
'faq': 'faq_url',
'tos': 'tos_url',
'privacy': 'privacy_policy_url'
}
});