Put h3 footer messages inside the footer tag for easier styling

This commit is contained in:
Neil Lalonde 2013-06-12 13:02:48 -04:00
parent 28ac110a3c
commit 2c68dd1c12
2 changed files with 12 additions and 12 deletions
app/assets
javascripts/discourse/templates/list
stylesheets/application

View file

@ -53,20 +53,20 @@
{{#if loadingMore}} {{#if loadingMore}}
<div class='topics-loading'>{{i18n topic.loading_more}}</div> <div class='topics-loading'>{{i18n topic.loading_more}}</div>
{{/if}} {{/if}}
</footer>
<h3> <h3>
{{footerMessage}} {{footerMessage}}
{{#if allLoaded}} {{#if allLoaded}}
{{#if latest}} {{#if latest}}
{{#if canCreateTopic}} {{#if canCreateTopic}}
<a href='#' {{action createTopic}}>{{i18n topic.suggest_create_topic}}</a> <a href='#' {{action createTopic}}>{{i18n topic.suggest_create_topic}}</a>
{{/if}}
{{else}}
{{#linkTo list.categories}}{{i18n topic.browse_all_categories}}{{/linkTo}} {{i18n or}} {{#linkTo list.latest}}{{i18n topic.view_latest_topics}}{{/linkTo}}
{{/if}} {{/if}}
{{else}}
{{#linkTo list.categories}}{{i18n topic.browse_all_categories}}{{/linkTo}} {{i18n or}} {{#linkTo list.latest}}{{i18n topic.view_latest_topics}}{{/linkTo}}
{{/if}} {{/if}}
{{/if}} </h3>
</h3> </footer>
{{/if}} {{/if}}
{{/unless}} {{/unless}}

View file

@ -257,7 +257,7 @@
// Topics // Topics
#topic-list-bottom { #topic-list-bottom {
padding: 20px; margin: 20px 0;
.topics-loading { .topics-loading {
width: 200px; width: 200px;
margin: 0 auto; margin: 0 auto;