mirror of
https://github.com/munki/munki.git
synced 2026-01-23 15:39:26 -06:00
Make default showcase, sidebar, and footer templates generic.
This commit is contained in:
@@ -218,6 +218,7 @@ def build_list_page(category=None, developer=None, filter=None):
|
||||
item_html = build_list_page_items_html(
|
||||
category=category, developer=developer, filter=filter)
|
||||
|
||||
# make HTML for Categories pop-up menu
|
||||
if category:
|
||||
categories_html = u'<option>All Categories</option>\n'
|
||||
else:
|
||||
@@ -229,9 +230,16 @@ def build_list_page(category=None, developer=None, filter=None):
|
||||
else:
|
||||
categories_html += u'<option>%s</option>\n' % item
|
||||
|
||||
categories_html_list = ''
|
||||
# make HTML for list of categories
|
||||
for item in sorted(category_list):
|
||||
categories_html_list += u'<li class="link"><a href="category-%s.html">%s</a></li>\n' % (
|
||||
quote(item), item)
|
||||
|
||||
page = {}
|
||||
page['list_items'] = item_html
|
||||
page['category_items'] = categories_html
|
||||
page['category_list'] = categories_html_list
|
||||
page['header_text'] = header
|
||||
if category or filter or developer:
|
||||
showcase = ''
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="bottom-links">
|
||||
<ul class="list" role="presentation">
|
||||
<li><a target="_blank" href="http://www.apple.com">Apple</a></li>
|
||||
<li><a target="_blank" href="http://www.google.com">Google</a></li>
|
||||
<li><a href="category-all.html">Software</a></li>
|
||||
<li><a href="categories.html">Categories</a></li>
|
||||
<li><a href="updates.html">Updates</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -40,8 +40,8 @@ window.onload=function(){
|
||||
|
||||
<div class="showcase">
|
||||
<div class="stage" onClick='stageClicked();'>
|
||||
<img target="_blank" href="http://www.apple.com" alt="Branding" src="static/branding.png" />
|
||||
<img href="detail-GoogleChrome.html" alt="Branding" src="static/branding1.png" />
|
||||
<img href="developer-Google.html" alt="Branding" src="static/branding2.png" />
|
||||
<img href="#" alt="Branding" src="static/branding.png" />
|
||||
<img href="#" alt="Branding" src="static/branding1.png" />
|
||||
<img href="#" alt="Branding" src="static/branding2.png" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,30 +1,9 @@
|
||||
<div class="sidebar">
|
||||
<div class="chart titled-box quick-links">
|
||||
<h2>Quick Links</h2>
|
||||
<h2>Categories</h2>
|
||||
<div class="content">
|
||||
<ol class="list">
|
||||
<li class="link user-link"><a href="#">Welcome</a></li>
|
||||
<li class="link user-link"><a href="#">Support</a></li>
|
||||
<li class="separator"><hr/></li>
|
||||
<li class="popup">
|
||||
<div class="select links">
|
||||
<label>
|
||||
<span></span>
|
||||
<select id="category-selector" onchange="category_select()">
|
||||
${category_items}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
<li class="link"><a href="http://www.apple.com/osx/whats-new/">What's new in Mavericks</a></li>
|
||||
<li class="link"><a target="_blank" href="http://www.apple.com">Apple</a></li>
|
||||
<li class="link"><a target="_blank" href="http://google.com">Search Google</a></li>
|
||||
<li class="link"><a target="_blank" href="http://bing.com">Search Bing</a></li>
|
||||
<li class="separator"><hr/></li>
|
||||
<li class="link"><a target="_blank" href="http://www.apple.com/support/">Apple support</a></li>
|
||||
<li class="link"><a target="_blank" href="http://www.apple.com/support/mac/">Mac</a></li>
|
||||
<li class="link"><a target="_blank" href="http://www.apple.com/support/osx/">OS X</a></li>
|
||||
<li class="link"><a target="_blank" href="http://www.apple.com/support/mac-apps/">Mac Apps</a></li>
|
||||
${category_list}
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user