Remove all the partials in the Site Map. Those made no sense.

This commit is contained in:
Robin Ward 2014-07-28 15:15:24 -04:00
parent cbe3a72c1f
commit d17dbf61a8
9 changed files with 31 additions and 29 deletions

View File

@ -1,30 +1,53 @@
<section class="d-dropdown" id="site-map-dropdown">
<ul class="location-links">
{{#if showAdminLinks}}
<li>{{partial "siteMap/adminLink"}}</li>
<li>{{partial "siteMap/flaggedPostsLinks"}}</li>
<li>
<a href="/admin" class="admin-link"><i class='fa fa-wrench'></i>{{i18n admin_title}}</a>
</li>
<li>
<a href="/admin/flags/active" class="flagged-posts-link"><i class='fa fa-flag'></i>{{i18n flags_title}}</a>
{{#if flaggedPostsCount}}
<a href='/admin/flags/active' title='{{i18n notifications.total_flagged}}' class='badge-notification flagged-posts'>{{flaggedPostsCount}}</a>
{{/if}}
</li>
{{/if}}
<li>{{partial "siteMap/latestTopicsLink"}}</li>
<li>
{{#titled-link-to "discovery.latest" titleKey="filters.latest.help" class="latest-topics-link"}}{{i18n filters.latest.title}}{{/titled-link-to}}
</li>
{{#if showBadgesLink}}
<li>{{partial "siteMap/badges"}}</li>
<li>
<a href="{{unbound badgesUrl}}" class="badge-link">{{i18n badges.title}}</a>
</li>
{{/if}}
{{#if showKeyboardShortcuts}}
<li><a href="#" {{action keyboardShortcuts}} class="keyboard-shortcuts-link">{{i18n keyboard_shortcuts_help.title}}</a>
{{/if}}
<li>{{partial "siteMap/faqLink"}}</li>
<li>
<a href="{{unbound faqUrl}}" class="faq-link">{{i18n faq}}</a>
</li>
{{#if showMobileToggle}}
<li>{{partial "siteMap/mobileToggleLink"}}</li>
<li><a href="#" class="mobile-toggle-link" {{action toggleMobileView}}>{{boundI18n mobileViewLinkTextKey}}</a></li>
{{/if}}
</ul>
{{#if categories}}
<ul class="category-links">
<li class="heading" title="{{i18n filters.categories.help}}">
{{partial "siteMap/allCategoriesLink"}}
{{#link-to "discovery.categories"}}{{i18n filters.categories.title}}{{/link-to}}
</li>
{{#each categories itemController=itemController}}
<li class="category">{{partial "siteMap/category"}}</li>
{{category-link this allowUncategorized=true showParent=true}}
{{#if showBadges}}
{{#if unreadTopics}}
<a href={{unbound unreadUrl}} class='badge unread-posts badge-notification' title='{{i18n topic.unread_topics count="unreadTopics"}}'>{{unreadTopics}}</a>
{{/if}}
{{#if newTopics}}
<a href={{unbound newUrl}} class='badge new-posts badge-notification' title='{{i18n topic.new_topics count="newTopics"}}'>{{newTopics}} {{i18n filters.new.title.zero}}</a>
{{/if}}
{{else}}
<b class="topics-count">{{unbound topic_count}}</b>
{{/if}}
{{/each}}
</ul>
{{/if}}

View File

@ -1 +0,0 @@
<a href="/admin" class="admin-link"><i class='fa fa-wrench'></i>{{i18n admin_title}}</a>

View File

@ -1 +0,0 @@
{{#link-to "discovery.categories"}}{{i18n filters.categories.title}}{{/link-to}}

View File

@ -1 +0,0 @@
<a href="{{unbound badgesUrl}}" class="badge-link">{{i18n badges.title}}</a>

View File

@ -1,11 +0,0 @@
{{category-link this allowUncategorized=true showParent=true}}
{{#if showBadges}}
{{#if unreadTopics}}
<a href={{unbound unreadUrl}} class='badge unread-posts badge-notification' title='{{i18n topic.unread_topics count="unreadTopics"}}'>{{unreadTopics}}</a>
{{/if}}
{{#if newTopics}}
<a href={{unbound newUrl}} class='badge new-posts badge-notification' title='{{i18n topic.new_topics count="newTopics"}}'>{{newTopics}} {{i18n filters.new.title.zero}}</a>
{{/if}}
{{else}}
<b class="topics-count">{{unbound topic_count}}</b>
{{/if}}

View File

@ -1 +0,0 @@
<a href="{{unbound faqUrl}}" class="faq-link">{{i18n faq}}</a>

View File

@ -1,4 +0,0 @@
<a href="/admin/flags/active" class="flagged-posts-link"><i class='fa fa-flag'></i>{{i18n flags_title}}</a>
{{#if flaggedPostsCount}}
<a href='/admin/flags/active' title='{{i18n notifications.total_flagged}}' class='badge-notification flagged-posts'>{{flaggedPostsCount}}</a>
{{/if}}

View File

@ -1 +0,0 @@
{{#titled-link-to "discovery.latest" (query-params ascending="false" order="default") titleKey="filters.latest.help" class="latest-topics-link"}}{{i18n filters.latest.title}}{{/titled-link-to}}

View File

@ -1 +0,0 @@
<a href="#" class="mobile-toggle-link" {{action toggleMobileView}}>{{boundI18n mobileViewLinkTextKey}}</a>