cleaning up

This commit is contained in:
Sacha Greif 2015-05-08 11:53:38 +09:00
parent 3c22937896
commit bf8040457f
7 changed files with 8 additions and 6 deletions

View file

@ -59,7 +59,6 @@ Package.onUse(function (api) {
'lib/client/templates/post_item.html',
'lib/client/templates/post_item.js',
'lib/client/templates/post_list_top.html',
'lib/client/templates/post_list_top.js',
'lib/client/templates/post_page.html',
'lib/client/templates/post_page.js',
'lib/client/templates/post_submit.html',

View file

@ -0,0 +1,3 @@
{
"showTaglineBanner": "Afficher le slogan"
}

View file

@ -1,4 +1,4 @@
<template name="taglineBanner">
<template name="tagline_banner">
{{#if showTaglineBanner}}
<h3 class="grid tagline"><span>{{getSetting "tagline"}}</span></h3>
{{/if}}

View file

@ -1,4 +1,4 @@
Template.taglineBanner.helpers({
Template.tagline_banner.helpers({
showTaglineBanner: function () {
return !!Settings.get('tagline') && !!Settings.get('showTaglineBanner');
}

View file

@ -1,5 +1,5 @@
Telescope.modules.register("postListTop", {
template: 'taglineBanner',
template: 'tagline_banner',
order: 1
});
@ -8,7 +8,6 @@ var showTaglineBanner = {
propertySchema: {
type: Boolean,
optional: true,
label: 'Tagline banner',
autoform: {
group: '01_general',
instructions: 'Show tagline on homepage.'

View file

@ -28,7 +28,8 @@ Package.onUse(function (api) {
], ['client']);
api.addFiles([
"i18n/en.i18n.json"
"i18n/en.i18n.json",
"i18n/fr.i18n.json"
], ["client", "server"]);
});