[IMP]Improved website_mail module and removed dependency from website_contract.

bzr revid: bth@tinyerp.com-20130827132439-77uo7dgacx3xhyv0
This commit is contained in:
bth-openerp 2013-08-27 18:54:39 +05:30
parent 35216e1a53
commit 1f118d0ed8
4 changed files with 24 additions and 5 deletions

View File

@ -202,4 +202,14 @@ header .collapse ul {
}
.navbar-nav>li>a {
padding:10px 15px 10px;
}
/* -- Hack for nav header -- */
.nav > li.nav-header {
display: block;
font-size: 11px;
font-weight: bold;
line-height: 20px;
color: #999999;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
text-transform: uppercase;
}

View File

@ -144,4 +144,13 @@ header
.navbar-nav >li >a
padding:10px 15px 10px
+/* -- Hack for nav header -- */
.nav > li.nav-header
display: block
font-size: 11px
font-weight: bold
line-height: 20px
color: #999999
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
text-transform: uppercase

View File

@ -9,7 +9,7 @@ OpenERP Blog
""",
'author': 'OpenERP SA',
'depends': ['website', 'sale', 'website_crm_partner_assign'],
'depends': ['website', 'sale'],
'data': [
'views/website_contract.xml',
],

View File

@ -108,15 +108,15 @@
<template id="blog_history" inherit_id="website_mail.index" inherit_option_id="website_mail.index" name="History">
<xpath expr="//div[@id='left_column']" position="inside">
<ul class="nav nav-pills nav-stacked">
<li><a t-attf-href="/blog/#{ mail_group_id }/">BLOG ARCHIVE</a></li>
<li class="nav-header"><a t-attf-href="/blog/#{ mail_group_id }/">BLOG ARCHIVE</a></li>
<!-- TODO: check qweb iteration -->
<li t-foreach="nav_list" t-as="year" class="js_nav_year">
<t t-set="year" t-value="nav_list[year]"/>
<a href="#"><t t-esc="year['name']"/> <small>(<t t-esc="year['date_count']"/>)</small></a>
<ul class="nav nav-list css_nav_month">
<ul class="nav list-group css_nav_month" style="padding-left: 16px;">
<t t-foreach="year['months']">
<li class="js_nav_month"><a href="#" t-att-data-domain="__domain"><t t-esc="date"/> <small>(<t t-esc="date_count"/>)</small></a>
<ul class="nav nav-list"/>
<ul class="nav list-group"/>
</li>
</t>
</ul>