mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 17:24:42 +08:00
UX: move category logo above navigation
This commit is contained in:
parent
5e8d1549a4
commit
605a302546
|
@ -1,27 +1,3 @@
|
||||||
{{bread-crumbs categories=categories
|
|
||||||
category=category
|
|
||||||
noSubcategories=noSubcategories
|
|
||||||
hideSubcategories=showingSubcategoryList}}
|
|
||||||
|
|
||||||
{{navigation-bar navItems=navItems filterMode=filterMode}}
|
|
||||||
|
|
||||||
{{#if currentUser}}
|
|
||||||
{{category-notifications-button category=category}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if canCreateTopic}}
|
|
||||||
{{d-button id="create-topic"
|
|
||||||
class="btn-default"
|
|
||||||
action="createTopic"
|
|
||||||
icon="plus"
|
|
||||||
label="topic.create"
|
|
||||||
disabled=cannotCreateTopicOnCategory}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if canEditCategory}}
|
|
||||||
{{d-button class="btn-default edit-category" action="editCategory" actionParam=category icon="wrench" label="category.edit_long"}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<section class='category-heading'>
|
<section class='category-heading'>
|
||||||
{{#if category.logo_url}}
|
{{#if category.logo_url}}
|
||||||
{{cdn-img src=category.logo_url class="category-logo"}}
|
{{cdn-img src=category.logo_url class="category-logo"}}
|
||||||
|
@ -30,3 +6,29 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<div class='category-navigation'>
|
||||||
|
{{bread-crumbs categories=categories
|
||||||
|
category=category
|
||||||
|
noSubcategories=noSubcategories
|
||||||
|
hideSubcategories=showingSubcategoryList}}
|
||||||
|
|
||||||
|
{{navigation-bar navItems=navItems filterMode=filterMode}}
|
||||||
|
|
||||||
|
{{#if currentUser}}
|
||||||
|
{{category-notifications-button category=category}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if canCreateTopic}}
|
||||||
|
{{d-button id="create-topic"
|
||||||
|
class="btn-default"
|
||||||
|
action="createTopic"
|
||||||
|
icon="plus"
|
||||||
|
label="topic.create"
|
||||||
|
disabled=cannotCreateTopicOnCategory}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#if canEditCategory}}
|
||||||
|
{{d-button class="btn-default edit-category" action="editCategory" actionParam=category icon="wrench" label="category.edit_long"}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
|
@ -289,6 +289,10 @@ button.dismiss-read {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.category-navigation {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
.category-logo {
|
.category-logo {
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user