[IMP] add template for shorting.

bzr revid: tpa@tinyerp.com-20140224111927-bqmdjd5fyhev30k3
This commit is contained in:
Turkesh Patel (Open ERP) 2014-02-24 16:49:27 +05:30
parent 256ccb2f18
commit f6cd4a3d67
1 changed files with 63 additions and 77 deletions

View File

@ -99,26 +99,55 @@
</div> </div>
</template> </template>
<template id="shorting">
<div class="col-xs-3">
<h5>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Short by
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="#">By Date</a>
</li>
<li>
<a href="#">By Activity</a>
</li>
<li>
<a href="#">By Answer</a>
</li>
<li>
<a href="#">By Votes</a>
</li>
</ul>
</h5>
</div>
</template>
<template id="answer"> <template id="answer">
<div class="row"> <ul class="media-list">
<t t-call="website_forum.question_vote" /> <li t-foreach="question.child_ids" t-as="answer" class="media">
<div class="col-md-9 col-xs-10">
<div class="row"> <div class="row">
<div class="col-xs-12"> <t t-call="website_forum.question_vote" />
<span> <div class="col-md-9 col-xs-10">
<h6> <div class="row">
<t t-esc="question.name" /> <div class="col-xs-12">
</h6> <span>
</span> <h4>
<t t-esc="answer.name" />
</h4>
</span>
</div>
</div>
<div class="row">
<t t-call="website_forum.user_detail" />
</div>
<t t-call="website_forum.question_links" />
</div> </div>
</div> </div>
<div class="row"> </li>
<t t-call="website_forum.user_detail" /> </ul>
</div>
<t t-call="website_forum.question_links" />
<t t-call="website_forum.question_vote" />
</div>
</div>
</template> </template>
<template id="question_search"> <template id="question_search">
@ -145,28 +174,7 @@
Question Question
</span> </span>
</div> </div>
<div class="col-xs-3"> <t t-call="website_forum.shorting" />
<h5>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Short by
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="#">By Date</a>
</li>
<li>
<a href="#">By Activity</a>
</li>
<li>
<a href="#">By Answer</a>
</li>
<li>
<a href="#">By Votes</a>
</li>
</ul>
</h5>
</div>
</div> </div>
<ul id="tabs" class="nav nav-tabs" data-tabs="tabs"> <ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
<li class="active"> <li class="active">
@ -245,24 +253,22 @@
</template> </template>
<template id="question_vote"> <template id="question_vote">
<div class="row"> <div class="col-md-1 col-xs-1">
<div class="col-md-1 col-xs-1"> <div class="row">
<div class="row"> <div class="col-xs-12 custom-arrow-height">
<div class="col-xs-12 custom-arrow-height"> <span class="glyphicon glyphicon-chevron-up" />
<span class="glyphicon glyphicon-chevron-up" />
</div>
</div> </div>
<div class="row"> </div>
<div class="col-xs-12 custom-vote-height"> <div class="row">
<h4> <div class="col-xs-12 custom-vote-height">
<span>0</span> <h4>
</h4> <span>0</span>
</div> </h4>
</div> </div>
<div class="row"> </div>
<div class="col-xs-12 custom-arrow-height"> <div class="row">
<span class="glyphicon glyphicon-chevron-down" /> <div class="col-xs-12 custom-arrow-height">
</div> <span class="glyphicon glyphicon-chevron-down" />
</div> </div>
</div> </div>
</div> </div>
@ -309,32 +315,12 @@
<div class="row"> <div class="row">
<div class="col-xs-12 page-header"> <div class="col-xs-12 page-header">
<span class="badge"> <span class="badge">
<t t-esc="len(question.child_ids)"/> Answers <t t-esc="len(question.child_ids)"/> Answer
</span> </span>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Short by
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="#">Oldest</a>
</li>
<li>
<a href="#">Newest</a>
</li>
<li>
<a href="#">Most Viewd</a>
</li>
</ul>
</div> </div>
<t t-call="website_forum.shorting" />
</div> </div>
<t t-call="website_forum.answer"/>
<ul class="media-list">
<li t-foreach="question.child_ids" t-as="answer" class="media">
<t t-call="website_forum.answer" />
</li>
</ul>
</div> </div>
</t> </t>
</template> </template>