adding moduleClass helper to modules

This commit is contained in:
Sacha Greif 2015-08-16 17:34:54 +09:00
parent 93f55191d4
commit 773aa026d2
10 changed files with 12 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<template name="footer_code"> <template name="footer_code">
<div class="footer-code"> <div class="footer-code {{moduleClass}}">
{{#if footerCode}} {{#if footerCode}}
{{#markdown}}{{footerCode}}{{/markdown}} {{#markdown}}{{footerCode}}{{/markdown}}
{{else}} {{else}}

View file

@ -1,5 +1,5 @@
<template name="post_admin"> <template name="post_admin">
<div class="post-meta-item post-admin" aria-live="off"> <div class="{{moduleClass}} post-admin" aria-live="off">
{{#if isAdmin}} {{#if isAdmin}}
{{#if showApprove}} {{#if showApprove}}
<span>|</span> <span>|</span>

View file

@ -1,5 +1,5 @@
<template name="post_author"> <template name="post_author">
<div class="post-meta-item"> <div class="{{moduleClass}}">
<a class="post-author" href="{{getProfileUrl userId}}">{{getDisplayName userId}}</a> <a class="post-author" href="{{getProfileUrl userId}}">{{getDisplayName userId}}</a>
</div> </div>
</template> </template>

View file

@ -1,5 +1,5 @@
<template name="post_comments_link"> <template name="post_comments_link">
<div class="post-meta-item"> <div class="{{moduleClass}}">
<a class="comments-link" href="{{this.getPageUrl}}"> <a class="comments-link" href="{{this.getPageUrl}}">
<span class="comments-count">{{commentCount}}</span> <span class="comments-count">{{commentCount}}</span>
<span class="comments-action">{{_ 'comments_'}}</span> <span class="comments-action">{{_ 'comments_'}}</span>

View file

@ -1,3 +1,5 @@
<template name="post_domain"> <template name="post_domain">
{{#if url}}<span class="post-domain">{{domain}}</span>{{/if}} {{#if url}}
<span class="post-domain {{moduleClass}}">{{domain}}</span>
{{/if}}
</template> </template>

View file

@ -1,5 +1,5 @@
<template name="post_info"> <template name="post_info">
<div class="post-meta-item" aria-live="off"> <div class="{{moduleClass}}" aria-live="off">
<span class="points">{{baseScore}}</span> <span class="points">{{baseScore}}</span>
<span class="unit">{{pointsUnitDisplayText}}</span> <span class="unit">{{pointsUnitDisplayText}}</span>
{{#if postedAt}}<span class="post-time">{{timeAgo postedAt}}</span>{{/if}} {{#if postedAt}}<span class="post-time">{{timeAgo postedAt}}</span>{{/if}}

View file

@ -1,5 +1,5 @@
<template name="post_title"> <template name="post_title">
<h3 class="post-title"> <h3 class="post-title {{moduleClass}}">
<a href="{{this.getLink}}" class="post-title" target="{{this.getLinkTarget}}">{{title}}</a> <a href="{{this.getLink}}" class="post-title" target="{{this.getLinkTarget}}">{{title}}</a>
</h3> </h3>
</template> </template>

View file

@ -1,5 +1,5 @@
<template name="posts_views_nav"> <template name="posts_views_nav">
<div class="posts-views-nav grid-module"> <div class="posts-views-nav grid-module {{moduleClass}}">
{{> menuComponent menuName="view" menuItems=menuItems mode="list"}} {{> menuComponent menuName="view" menuItems=menuItems mode="list"}}
</div> </div>
</template> </template>

View file

@ -1,6 +1,6 @@
<template name="tagline_banner"> <template name="tagline_banner">
{{#if showTaglineBanner}} {{#if showTaglineBanner}}
<div class="tagline-banner"> <div class="tagline-banner {{moduleClass}}">
<h3 class="tagline"><span>{{getSetting "tagline"}}</span></h3> <h3 class="tagline"><span>{{getSetting "tagline"}}</span></h3>
</div> </div>
{{/if}} {{/if}}

View file

@ -1,5 +1,5 @@
<template name="post_categories"> <template name="post_categories">
<div class="post-categories"> <div class="post-categories {{moduleClass}}">
{{#each categoriesArray}} {{#each categoriesArray}}
<a href="{{categoryLink}}" class="post-category category-{{slug}}">{{name}}</a> <a href="{{categoryLink}}" class="post-category category-{{slug}}">{{name}}</a>
{{/each}} {{/each}}