2014-02-21 13:16:08 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2014-02-28 05:33:13 +00:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<template id="editor_head" inherit_id="website.editor_head"
|
2014-03-03 15:53:55 +00:00
|
|
|
name="Event Editor">
|
2014-02-28 05:33:13 +00:00
|
|
|
<xpath expr="//script[@id='website_tour_js']" position="after">
|
|
|
|
<script type="text/javascript"
|
|
|
|
src="/website_forum/static/src/js/website.tour.forum.js"></script>
|
2014-03-03 15:53:55 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
FP Note: Why do we need this ? Can we remove this code?
|
|
|
|
The problem is that you add your script for every page, not only for the forum
|
|
|
|
-->
|
|
|
|
<script type="text/javascript"
|
|
|
|
src="/website_forum/static/src/js/website_forum.editor.js"></script>
|
2014-02-27 12:57:01 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
CKEDITOR.config.toolbar = [['Bold','Italic','Underline','Strike'],['NumberedList','BulletedList']
|
|
|
|
,['Outdent','Indent','Link','Unlink'],] ;
|
|
|
|
</script>
|
2014-02-28 05:33:13 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- Layout add nav and footer -->
|
|
|
|
<template id="header_footer_custom" inherit_id="website.layout"
|
|
|
|
name="Footer Questions Link">
|
|
|
|
<xpath expr="//footer//ul[@name='products']" position="inside">
|
|
|
|
<li>
|
2014-03-04 12:40:02 +00:00
|
|
|
<a t-attf-href="/forum/%(website_forum.forum_help)d/">Q&A</a>
|
2014-02-28 05:33:13 +00:00
|
|
|
</li>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- List of Questions -->
|
|
|
|
<template id="post_list">
|
2014-03-03 15:53:55 +00:00
|
|
|
<div class="question clearfix">
|
|
|
|
<div class="pull-left text-center">
|
|
|
|
<div t-attf-class="box #{len(question.child_ids) and 'oe_green' or 'oe_grey'}">
|
|
|
|
<span t-esc="len(question.child_ids)"/>
|
|
|
|
<div t-if="len(question.child_ids)>1">Answers</div>
|
|
|
|
<div t-if="len(question.child_ids)<=1">Answer</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-muted text-center">
|
|
|
|
<span t-field="question.views"/> Views
|
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
2014-03-03 20:22:24 +00:00
|
|
|
<div style="margin-left: 95px;">
|
2014-03-03 15:53:55 +00:00
|
|
|
<div class="question-name">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/question/#{ slug(question) }" t-field="question.name"/>
|
2014-03-03 15:53:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="text-muted">
|
2014-03-04 12:53:50 +00:00
|
|
|
by <a t-attf-href="/forum/#{ slug(forum) }/user/#{ question.create_uid.id }" t-field="question.create_uid"/>,
|
2014-03-03 15:53:55 +00:00
|
|
|
on <span t-field="question.write_date"/>
|
|
|
|
<div t-if="len(question.vote_ids)">
|
|
|
|
<strong>with <span t-esc="len(question.vote_ids)"/> votes</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<t t-foreach="question.tags" t-as="tag">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/tag/#{ tag.id }" class="badge" t-field="tag.name"/>
|
2014-03-03 15:53:55 +00:00
|
|
|
</t>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2014-03-03 15:53:55 +00:00
|
|
|
<!-- Page Index -->
|
|
|
|
<template id="header" name="Forum Index">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<t t-set="head">
|
|
|
|
<link rel='stylesheet' href='/website_forum/static/src/css/website_forum.css' />
|
|
|
|
</t>
|
|
|
|
<div class="container mt16">
|
|
|
|
<div class="navbar navbar-default">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#oe-help-navbar-collapse">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2014-03-03 19:17:48 +00:00
|
|
|
<a class="navbar-brand" href="/forum">Help</a>
|
|
|
|
<!-- FP Note: Replace by this when controllers have changed
|
|
|
|
<a class="navbar-brand" t-attf-href="/forum/#{slug(forum)}">
|
|
|
|
<span t-field="forum.name"/>
|
|
|
|
</a>
|
|
|
|
-->
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
2014-03-03 15:53:55 +00:00
|
|
|
<div class="collapse navbar-collapse" id="oe-help-navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2014-03-05 13:07:24 +00:00
|
|
|
<li t-att-class="searches.get('type') in ('all', 'unanswered','followed') and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }">Questions</a>
|
2014-03-03 19:17:48 +00:00
|
|
|
</li>
|
2014-03-03 11:06:20 +00:00
|
|
|
<li t-att-class="searches.get('users') and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/users">People</a>
|
2014-02-28 05:33:13 +00:00
|
|
|
</li>
|
2014-03-03 15:53:55 +00:00
|
|
|
<li t-att-class="searches.get('tags') and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/tags">Tags</a>
|
2014-02-28 05:33:13 +00:00
|
|
|
</li>
|
2014-03-03 15:53:55 +00:00
|
|
|
<li t-att-class="searches.get('badge') and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/badge">Badges</a>
|
2014-02-28 05:33:13 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2014-03-04 12:53:50 +00:00
|
|
|
<form class="navbar-form navbar-right" role="search" t-attf-action="/forum/#{ slug(forum) }" method="get">
|
2014-03-03 15:53:55 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<input type="search" class="form-control"
|
|
|
|
name="search" placeholder="Search a question..."
|
|
|
|
t-att-value="searches.get('search') or ''" />
|
|
|
|
<button type="submit" class="btn btn-default">Search</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="wrap" class="container">
|
|
|
|
<div class="row">
|
2014-03-03 15:53:55 +00:00
|
|
|
<div class="col-sm-9">
|
2014-03-03 20:41:42 +00:00
|
|
|
<div class="alert alert-success alert-dismissable">
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
|
|
|
|
<strong>Congratulation!</strong> You received the <em>New Author</em> badge!<br/>
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/badge" class="fa fa-arrow-right">View Your Badges</a>
|
2014-03-03 20:41:42 +00:00
|
|
|
</div>
|
2014-03-03 15:53:55 +00:00
|
|
|
<t t-raw="0"/>
|
|
|
|
</div><div class="col-sm-3" id="right-column">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a class="btn btn-primary btn-lg btn-block mb16" t-attf-href="/forum/#{ slug(forum) }/ask">Ask a Question</a>
|
2014-03-03 15:53:55 +00:00
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">About This Forum</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
This community is for professional and enthusiast about our
|
|
|
|
products and services.<br/>
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/faq" class="fa fa-arrow-right"> Read Guidelines</a>
|
2014-03-03 15:53:55 +00:00
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
2014-03-03 15:53:55 +00:00
|
|
|
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-03 15:53:55 +00:00
|
|
|
</t>
|
2014-02-28 05:33:13 +00:00
|
|
|
</template>
|
|
|
|
|
2014-03-04 10:49:30 +00:00
|
|
|
<template id="faq">
|
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<!--TODO: Improve template -->
|
|
|
|
<div>
|
|
|
|
<h1>F.A.Q</h1>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="forum_index">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<!--TODO: Improve template -->
|
|
|
|
<t t-foreach="forum_ids" t-as="forum">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }" class="box oe_green" t-field="forum.name"/>
|
2014-03-04 10:49:30 +00:00
|
|
|
</t>
|
|
|
|
<!--t t-call="website_forum.faq">
|
|
|
|
<div t-field="forum.faq"/>
|
|
|
|
</t-->
|
2014-03-03 19:36:54 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-03-04 12:40:02 +00:00
|
|
|
<template id="forum">
|
|
|
|
<t t-call="website.layout">
|
|
|
|
<!--TODO: Improve template -->
|
|
|
|
<div class="row">
|
2014-03-04 12:53:50 +00:00
|
|
|
<h1 class="text-center" t-attf-href="/forum/#{ slug(forum) }" t-field="forum.name"/>
|
2014-03-04 12:40:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2014-03-04 12:53:50 +00:00
|
|
|
<h1 class="text-center" t-attf-href="/forum/#{ slug(forum) }/faq" t-field="forum.faq"/>
|
2014-03-04 12:40:02 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-03-03 15:53:55 +00:00
|
|
|
<template id="index">
|
|
|
|
<t t-call="website_forum.header">
|
2014-03-03 19:29:27 +00:00
|
|
|
<h1 class="page-header mt0">
|
|
|
|
<t t-esc="total_questions"/>
|
|
|
|
<span>Questions</span>
|
|
|
|
<small class="dropdown" t-if="searches.get('type') in ('all', 'unanswered','followed')">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<t t-if="searches.get('type') == 'all'">No filter</t>
|
|
|
|
<t t-if="searches.get('type') == 'unanswered'">Filter: Unanswered</t>
|
|
|
|
<t t-if="searches.get('type') == 'followed'">Filter: Followed</t>
|
|
|
|
<b class="caret"/>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li class="dropdown-header">Filter on</li>
|
|
|
|
<li t-att-class="searches.get('type') == 'all' and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/?{{ keep_query( type='all') }}">All</a>
|
2014-03-03 19:29:27 +00:00
|
|
|
</li>
|
|
|
|
<li t-att-class="searches.get('type') == 'unanswered' and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/?{{ keep_query( type='unanswered') }}">Unanswered</a>
|
2014-03-03 19:29:27 +00:00
|
|
|
</li>
|
|
|
|
<li t-att-class="searches.get('type') == 'followed' and 'active' or '' ">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/?{{ keep_query( type='followed') }}">Followed</a>
|
2014-03-03 19:29:27 +00:00
|
|
|
</li>
|
|
|
|
<li class="dropdown-header">Sort by</li>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="active">Last activity date</a> <!-- default order to implement -->
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#">Most answered</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#">Most voted</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</small>
|
|
|
|
</h1>
|
2014-03-03 15:53:55 +00:00
|
|
|
<div t-foreach="question_ids" t-as="question" class="mb16">
|
|
|
|
<t t-call="website_forum.post_list" />
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
2014-03-03 15:53:55 +00:00
|
|
|
<t t-call="website.pager" />
|
2014-02-28 05:33:13 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="404">
|
2014-03-03 15:53:55 +00:00
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<div class="oe_structure oe_empty"/>
|
|
|
|
<h1 class="mt32">Question not found!</h1>
|
|
|
|
<p>Sorry, this question is not available anymore.</p>
|
|
|
|
<p>
|
|
|
|
<a t-attf-href="/forum">Return to the question list.</a>
|
|
|
|
</p>
|
2014-02-28 05:33:13 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="user_detail">
|
2014-03-03 19:17:48 +00:00
|
|
|
<div>
|
|
|
|
<span t-field="user.image" t-field-options='{"widget": "image", "class":"pull-left img img-circle img-avatar"}' />
|
|
|
|
<div>
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/user/#{ slug(user) }" t-field="user.name"/>
|
2014-03-03 19:17:48 +00:00
|
|
|
<t t-raw="separator or ', '"/>
|
|
|
|
<b>11 badges:</b>
|
|
|
|
<span class="fa fa-certificate badge-gold"></span>
|
|
|
|
1
|
|
|
|
<span class="fa fa-certificate badge-silver"></span>
|
|
|
|
10
|
|
|
|
<span class="fa fa-certificate badge-bronze"></span>
|
|
|
|
5
|
|
|
|
<br/>
|
|
|
|
<t t-raw="0"/>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="ask_question">
|
2014-03-03 19:17:48 +00:00
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<h1 class="mt0">Ask your Question</h1>
|
|
|
|
<ul>
|
2014-03-05 07:33:58 +00:00
|
|
|
<li> please, try to make your question interesting to others </li>
|
|
|
|
<li> provide enough details and, if possible, give an example </li>
|
|
|
|
<li> be clear and concise, avoid unnecessary introductions (Hi, ... Thanks...) </li>
|
2014-03-03 19:17:48 +00:00
|
|
|
</ul>
|
2014-03-04 12:53:50 +00:00
|
|
|
<form t-attf-action="/forum/#{ slug(forum) }/question/ask/" method="post" role="form">
|
2014-03-05 07:33:58 +00:00
|
|
|
<input type="text" name="question_name" required="True" t-attf-value="#{question_name or ''}"
|
|
|
|
class="form-control" placeholder="Enter your Question"/>
|
|
|
|
<h5 class="mt20">Please enter a descriptive question (should finish by a '?')</h5>
|
|
|
|
<textarea name="question_content" required="True" class="form-control"
|
|
|
|
t-attf-value="#{question_content or ''}" id="textarea_ckeditor"/>
|
|
|
|
<input type="text" name="question_tag" t-attf-value="#{question_tag or ''}"
|
|
|
|
class="form-control" style="margin-top: 10px" placeholder="Tags"/>
|
|
|
|
<button class="btn btn-default forum_button" id="btn_ask_your_question"> Post Your Question </button>
|
2014-03-03 19:17:48 +00:00
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
CKEDITOR.replace("textarea_ckeditor");
|
|
|
|
</script>
|
2014-02-28 05:33:13 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="post_answer">
|
2014-03-05 07:33:58 +00:00
|
|
|
<h3 class="mt10">Your answer</h3>
|
|
|
|
<p>
|
|
|
|
<b>Please try to give a substantial answer.</b> If you wanted to comment on the question or answer, just
|
|
|
|
<b>use the commenting tool.</b> Please remember that you can always <b>revise your answers</b>
|
|
|
|
- no need to answer the same question twice. Also, please <b>don't forget to vote</b>
|
|
|
|
- it really helps to select the best questions and answers!
|
|
|
|
</p>
|
|
|
|
<form t-attf-action="/forum/#{ slug(forum) }/question/postanswer/" method="post" role="form">
|
|
|
|
<textarea name="answer_content" t-attf-value="#{answer_content or ''}"
|
|
|
|
class="form-control" id="textarea_ckeditor" required="True"/>
|
|
|
|
<input name="post_id" t-att-value="question.id" type="hidden"/>
|
|
|
|
<button class="btn btn-default forum_button" id="btn_ask_your_question"> Post Your Answer </button>
|
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
CKEDITOR.replace("textarea_ckeditor");
|
|
|
|
</script>
|
2014-02-28 05:33:13 +00:00
|
|
|
</template>
|
2014-02-26 19:20:53 +00:00
|
|
|
|
2014-02-27 12:57:01 +00:00
|
|
|
<template id="edit_answer">
|
2014-03-05 07:33:58 +00:00
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<h3>Edit answer</h3>
|
|
|
|
<form t-attf-action="/forum/#{ slug(forum) }/question/saveanswer/" method="post" role="form">
|
|
|
|
<textarea name="answer_content" required="True" value="content" class="form-control" id="textarea_ckeditor"/>
|
|
|
|
<input name="post_id" t-att-value="post.id" type="hidden"/>
|
|
|
|
<input name="answer_id" t-att-value="post_answer.id" type="hidden"/>
|
|
|
|
<button class="btn btn-default btn-lg forum_button"> Save edit </button>
|
|
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
|
|
CKEDITOR.replace("textarea_ckeditor");
|
|
|
|
</script>
|
2014-02-27 12:57:01 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-03-03 15:53:55 +00:00
|
|
|
<template id="post_description_full" name="Question Navigation">
|
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<div class="question">
|
2014-03-03 19:17:48 +00:00
|
|
|
<div class="text-center pull-left">
|
2014-03-03 15:53:55 +00:00
|
|
|
<div t-attf-class="box oe_grey">
|
2014-03-03 19:17:48 +00:00
|
|
|
<a href="#" class="fa fa-thumbs-up text-success"/>
|
2014-03-03 15:53:55 +00:00
|
|
|
<span t-esc="len(question.vote_ids)"/>
|
2014-03-03 19:17:48 +00:00
|
|
|
<a href="#" class="fa fa-thumbs-down text-warning"/>
|
|
|
|
<div>
|
|
|
|
votes
|
2014-03-03 15:53:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-muted">
|
|
|
|
<span t-esc="len(question.child_ids)"/>
|
|
|
|
<span t-if="len(question.child_ids)>1">Answers</span>
|
|
|
|
<span t-if="len(question.child_ids)<=1">Answer</span>
|
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
2014-03-03 20:22:24 +00:00
|
|
|
<div style="margin-left: 95px;">
|
2014-03-03 15:53:55 +00:00
|
|
|
<h1 t-field="question.name" class="mt0"/>
|
|
|
|
<t t-raw="question.content"/>
|
2014-03-03 19:17:48 +00:00
|
|
|
|
|
|
|
<div class="mt16 clearfix">
|
|
|
|
<div class="pull-right">
|
|
|
|
<t t-foreach="question.tags" t-as="tag">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/tag/#{ tag.id }" class="badge" t-field="tag.name"/>
|
2014-03-03 19:17:48 +00:00
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
<t t-set="user" t-value="question.create_uid"/>
|
|
|
|
<t t-call="website_forum.user_detail">
|
|
|
|
<span class="text-muted">Asked on <span t-field="question.write_date"/></span>
|
2014-03-03 15:53:55 +00:00
|
|
|
</t>
|
2014-02-28 09:56:40 +00:00
|
|
|
</div>
|
2014-02-27 12:57:01 +00:00
|
|
|
</div>
|
2014-02-28 09:56:40 +00:00
|
|
|
</div>
|
|
|
|
<hr/>
|
2014-03-03 15:53:55 +00:00
|
|
|
|
2014-03-03 19:17:48 +00:00
|
|
|
<div t-foreach="question.child_ids" t-as="answer" class="mt16 mb32">
|
|
|
|
<div class="text-center pull-left">
|
|
|
|
<div t-attf-class="box oe_grey">
|
|
|
|
<a href="#" class="fa fa-thumbs-up text-success"/>
|
|
|
|
<span t-esc="len(question.vote_ids)"/>
|
|
|
|
<a href="#" class="fa fa-thumbs-down text-warning"/>
|
|
|
|
<div>
|
|
|
|
votes
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="text-muted">
|
|
|
|
<a href="#" class="fa fa-2x fa-check"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-03 20:22:24 +00:00
|
|
|
<div style="margin-left: 95px;" class="clearfix">
|
2014-03-03 19:17:48 +00:00
|
|
|
<t t-raw="answer.content" />
|
|
|
|
<div class="mt16">
|
|
|
|
<div class="pull-right">
|
|
|
|
<a class="action-links" href="">
|
|
|
|
<span class="fa fa-edit"></span>
|
|
|
|
</a>
|
|
|
|
<a class="action-links" href="">
|
|
|
|
<span class="fa fa-flag"></span>
|
|
|
|
</a>
|
|
|
|
<a class="action-links" href="">
|
|
|
|
<span class="fa-trash-o"></span>
|
|
|
|
</a>
|
|
|
|
<a class="action-links" href="">
|
|
|
|
<span class="fa fa-link"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<t t-set="user" t-value="answer.create_uid"/>
|
|
|
|
<t t-call="website_forum.user_detail">
|
|
|
|
<span class="text-muted">Answered on <span t-field="answer.create_date"/></span>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
2014-02-28 09:56:40 +00:00
|
|
|
<div t-if="not answer_done">
|
|
|
|
<t t-call="website_forum.post_answer"/>
|
|
|
|
</div>
|
2014-03-05 07:33:58 +00:00
|
|
|
<div t-if="answer_done">
|
|
|
|
<a class="btn btn-primary mb16" t-attf-href="/forum/#{ slug(forum) }/question/#{ question.id }/editanswer">Edit Your Previous Answer</a>
|
|
|
|
<span style="margin-bottom: 10px;">(only one answer per question is allowed)</span>
|
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-02-28 09:56:40 +00:00
|
|
|
|
2014-03-03 11:06:20 +00:00
|
|
|
<template id="tag">
|
2014-03-03 19:17:48 +00:00
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<h1 class="mt0">
|
|
|
|
Question by Tags
|
|
|
|
</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3 mt16" t-foreach="tags" t-as="tag">
|
2014-03-04 12:53:50 +00:00
|
|
|
<a t-attf-href="/forum/#{ slug(forum) }/tag/#{ slug(tag) }" class="badge">
|
2014-03-03 19:17:48 +00:00
|
|
|
<span t-field="tag.name" />
|
2014-03-03 11:06:20 +00:00
|
|
|
</a>
|
|
|
|
<span>
|
|
|
|
X <t t-esc="len(tag.post_ids)"/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="users">
|
2014-03-03 19:17:48 +00:00
|
|
|
<t t-call="website_forum.header">
|
|
|
|
<div class="row">
|
|
|
|
<div t-foreach="users" t-as="user" class="col-sm-4">
|
|
|
|
<t t-set="separator"><br/></t>
|
|
|
|
<t t-call="website_forum.user_detail"/>
|
|
|
|
<span class="text-muted">Joined on <span t-field="user.create_date"/></span>
|
2014-03-03 11:06:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-03 19:17:48 +00:00
|
|
|
<div class="pull-left">
|
|
|
|
<t t-call="website.pager" />
|
|
|
|
</div>
|
2014-03-03 11:06:20 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-02-28 05:33:13 +00:00
|
|
|
<template id="user_detail_full">
|
2014-03-03 19:17:48 +00:00
|
|
|
<t t-call="website_forum.header">
|
2014-03-03 20:22:24 +00:00
|
|
|
<h1 class="mt0 page-header">
|
|
|
|
<span t-field="user.name" />
|
|
|
|
<small>profile</small>
|
|
|
|
</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span t-field="user.image"
|
|
|
|
t-field-options='{"widget": "image", "class": "img img-responsive img-circle"}'/>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
Karma :
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<b t-field="user.karma" />
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
Member since :
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<b>
|
|
|
|
<t t-esc="user.create_date" />
|
|
|
|
3
|
|
|
|
</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
Last Seen :
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<b>Feb 15'14</b>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-12">
|
|
|
|
Todays unused votes 30 votes left
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2>
|
|
|
|
<t t-esc="len(user.vote_ids)" />
|
|
|
|
<span>Votes</span>
|
|
|
|
</h2>
|
2014-02-28 05:33:13 +00:00
|
|
|
<h3>
|
2014-03-03 20:22:24 +00:00
|
|
|
<span class="glyphicon glyphicon-thumbs-up"></span>
|
|
|
|
<b> 15 </b>
|
|
|
|
</h3>
|
|
|
|
<h3>
|
|
|
|
<span class="glyphicon glyphicon-thumbs-down"></span>
|
|
|
|
<b> 0 </b>
|
2014-02-28 05:33:13 +00:00
|
|
|
</h3>
|
|
|
|
</div>
|
2014-03-03 20:22:24 +00:00
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
|
2014-03-03 20:22:24 +00:00
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active">
|
2014-03-03 20:26:47 +00:00
|
|
|
<a href="#questions" data-toggle="tab"><t t-esc="len(user.question_ids)"/> Questions</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#answers" data-toggle="tab"><t t-esc="len(user.answer_ids)"/> Answers</a>
|
2014-03-03 20:22:24 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
2014-03-05 13:07:24 +00:00
|
|
|
<a href="#activity" data-toggle="tab">Activity</a>
|
2014-03-03 20:22:24 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#followed_question" data-toggle="tab">Followed Question</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2014-03-03 20:26:47 +00:00
|
|
|
<div class="tab-content mt16">
|
|
|
|
<div class="tab-pane active" id="questions">
|
|
|
|
<div t-foreach="user.question_ids" t-as="question">
|
|
|
|
<t t-call="website_forum.post_list" />
|
|
|
|
</div>
|
|
|
|
</div><div class="tab-pane" id="answers">
|
|
|
|
<div t-foreach="answers" t-as="question">
|
|
|
|
<t t-call="website_forum.post_list" />
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-03 20:22:24 +00:00
|
|
|
<div class="tab-pane" id="karma">
|
|
|
|
<h1>Karma</h1>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="followed_question">
|
|
|
|
<h1>Followed Questions</h1>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="activity">
|
2014-03-05 13:07:24 +00:00
|
|
|
<t t-call="website_forum.user_activity" />
|
2014-03-03 20:22:24 +00:00
|
|
|
</div>
|
2014-02-28 05:33:13 +00:00
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-03-05 13:07:24 +00:00
|
|
|
<template id="user_activity">
|
|
|
|
<ul class="media-list">
|
|
|
|
<li t-foreach="user.activity_ids" t-as="activity" class="media">
|
2014-03-05 13:23:27 +00:00
|
|
|
<small t-esc="activity.create_date" class="pull-left"/>
|
|
|
|
<span t-field="activity.type" class="label label-info"/>
|
|
|
|
<a t-esc="activity.name" t-if="not activity.post_id.parent_id"/>
|
|
|
|
<t t-if="activity.post_id.parent_id">
|
|
|
|
<a t-esc="activity.post_id.parent_id.name"/>
|
|
|
|
<span class="glyphicon glyphicon-play"/>
|
|
|
|
<t t-esc="activity.post_id.content[0:100]"/>
|
|
|
|
<strong> ... </strong>
|
|
|
|
</t>
|
2014-03-05 13:07:24 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
2014-03-05 13:23:27 +00:00
|
|
|
|
2014-02-28 05:33:13 +00:00
|
|
|
</data>
|
2014-02-21 13:16:08 +00:00
|
|
|
</openerp>
|