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">
<div class="footer-code">
<div class="footer-code {{moduleClass}}">
{{#if footerCode}}
{{#markdown}}{{footerCode}}{{/markdown}}
{{else}}

View file

@ -1,5 +1,5 @@
<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 showApprove}}
<span>|</span>

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
<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="unit">{{pointsUnitDisplayText}}</span>
{{#if postedAt}}<span class="post-time">{{timeAgo postedAt}}</span>{{/if}}

View file

@ -1,5 +1,5 @@
<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>
</h3>
</template>

View file

@ -1,5 +1,5 @@
<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"}}
</div>
</template>

View file

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

View file

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