
{% extends "new/adminLTE2_base.html" %}
{% load static %}

{% load humanize %}
{% load mathfilters %}
{% block headMedia %}
        <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.18/datatables.min.css"/>
{% endblock %}

{% block leftbar %}
<ul class="sidebar-menu tree" data-widget="tree">
	<li class="header">Wordcloud</li>
	<li class="treeview">
	        <a href="#">

			<span>	<img src="{% url 'ws-wordcloud' newsId=news.id %}" height="200px"/></span>
		</a>
	</li>
</ul>
{% endblock %}


{% load app_filters %}

{% block dash-title %}<a href="{{news.publisher.url}}" target="blank">{{news.publisher.name}}</a>{% endblock %}



{% block dash %}
<div class="row">
	<div class="col-lg-12">
		 <div class="panel panel-default">
		<div class="panel-heading news-title" >
			<a href="{{news.url}}" target="blank">{{news.title}}</a> <div style="float:right;">{{news.date}}</div>
		</div>
		<!-- .panel-heading -->
		<div class="panel-body">
			<div class="panel-group news-text" id="accordion" style="text-align: justify; text-justify: auto;">
			{% if "text" in request.GET and request.GET.text != ""%}
				{{news.text| safe |highlight:request.GET.text }}
			{% else %}
				{{news.text| safe}}
			{% endif %}
			</div>
		</div>
		<!-- .panel-body -->
		</div>
	    <!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
{% endblock %}

{% block scripts %}

{% endblock %}
