2018-06-26 21:48:25 +00:00
|
|
|
{% if not status %}
|
|
|
|
{% set status = 0 %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<!-- Sidebar Widgets Column -->
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
|
|
|
<!-- Search Widget -->
|
|
|
|
<div class="card my-4" style="margin-top: 0 !important;">
|
|
|
|
<h5 style="transform: rotate(-0.4deg);" class="card-header">Search</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="input-group">
|
|
|
|
<input id="search_input" type="text" class="form-control" placeholder="Search for..." value="{% if key %}{{key}}{% endif %}">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button onclick="do_search()" style="border-top-left-radius: 0px;border-bottom-left-radius: 0px;" class="btn btn-primary" type="button">
|
|
|
|
Go!
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Categories Widget -->
|
|
|
|
<div class="card my-4">
|
|
|
|
<h5 style="transform: rotate(0.6deg);" class="card-header">Categories</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6">
|
|
|
|
<ul class="list-unstyled mb-0">
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('proposals', status=status, cat="wallets") }}">Wallets <small>({{summary_data['cats']['wallets']}})</small></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('proposals', status=status, cat="core") }}">Core <small>({{summary_data['cats']['core']}})</small></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('proposals', status=status, cat="marketing") }}">Marketing <small>({{summary_data['cats']['marketing']}})</small></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6">
|
|
|
|
<ul class="list-unstyled mb-0">
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('proposals', status=status, cat="misc") }}">Misc <small>({{summary_data['cats']['misc']}})</small></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ url_for('proposals', status=status, cat="design") }}">Design <small>({{summary_data['cats']['design']}})</small></a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Side Widget -->
|
|
|
|
<div class="card my-4">
|
2018-07-09 23:14:16 +00:00
|
|
|
<h5 class="card-header">Recent comments</h5>
|
2018-06-26 21:48:25 +00:00
|
|
|
<div class="card-body">
|
2018-07-09 23:14:16 +00:00
|
|
|
<ul class="b">
|
|
|
|
{% for c in recent_comments %}
|
|
|
|
<li>
|
|
|
|
<a href="">{{c.user.username}}</a> in
|
|
|
|
<a href="/proposal/{{c.proposal.id}}">#{{c.proposal.id}}</a>
|
|
|
|
<small>
|
|
|
|
<a href="/proposal/{{c.proposal.id}}#comment-{{c.id}}">({{c.ago}})</a>
|
|
|
|
</small>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</li>
|
2018-06-26 21:48:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
var search_input = document.getElementById("search_input");
|
|
|
|
|
|
|
|
function do_search(){
|
|
|
|
var url = '{{url_for('search')}}?key=' + search_input.value;
|
|
|
|
location.replace(url);
|
|
|
|
}
|
|
|
|
|
|
|
|
search_input.addEventListener("keyup", function(event) {
|
|
|
|
event.preventDefault();
|
|
|
|
if (event.keyCode === 13) {
|
|
|
|
do_search();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</div>
|