summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkomalsheth2862016-11-29 21:10:25 +0530
committerkomalsheth2862016-11-29 21:10:25 +0530
commitd73779c5a599b572f27be0c2bd574b1032b8d901 (patch)
treee63ea252a62af28354b33b5d6f42c5c1dae726a8
parent56ed657600e7f1753825f1cde822caa89c5cdc41 (diff)
downloadSciPy2016-d73779c5a599b572f27be0c2bd574b1032b8d901.tar.gz
SciPy2016-d73779c5a599b572f27be0c2bd574b1032b8d901.tar.bz2
SciPy2016-d73779c5a599b572f27be0c2bd574b1032b8d901.zip
Renderng text issue fixed
-rwxr-xr-xwebsite/templates/abstract-details.html8
-rwxr-xr-xwebsite/templates/comment-abstract.html8
2 files changed, 8 insertions, 8 deletions
diff --git a/website/templates/abstract-details.html b/website/templates/abstract-details.html
index daacdbe..9b86593 100755
--- a/website/templates/abstract-details.html
+++ b/website/templates/abstract-details.html
@@ -48,10 +48,10 @@
<section id="content" class="main">
<h3>{{ proposal.user.first_name }} {{ proposal.user.last_name }}</h3>
<p><b>Title: </b>&nbsp;{{ proposal.title }}</p>
- <p><b>About Me: </b>&nbsp;{{ proposal.about_me }}</p>
- <p><b>Abstract: </b>&nbsp;{{ proposal.abstract }}</p>
+ <p><b>About Me: </b>&nbsp;{{ proposal.about_me | linebreaks }}</p>
+ <p><b>Abstract: </b>&nbsp;{{ proposal.abstract |linebreaks }}</p>
{% if proposal.prerequisite %}
- <p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite }}</p>
+ <p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite |linebreaks }}</p>
{% endif%}
<p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
{% if url %}
@@ -64,7 +64,7 @@
<div>
<strong>Comment By:</strong>
{{ comment.user.first_name }} {{ comment.user.last_name }}
- <p>{{ comment.comment|safe }}</p>
+ <p>{{ comment.comment| linebreaks }}</p>
</div>
<hr>
{% endfor %}
diff --git a/website/templates/comment-abstract.html b/website/templates/comment-abstract.html
index c01aa1c..c492a84 100755
--- a/website/templates/comment-abstract.html
+++ b/website/templates/comment-abstract.html
@@ -48,7 +48,7 @@
<section id="content" class="main">
<h3>{{ proposal.user.first_name }} {{ proposal.user.last_name }}</h3>
<p><b>Title: </b>&nbsp;{{ proposal.title }}</p>
- <p><b>About Me: </b>&nbsp;{{ proposal.about_me }}</p>
+ <p><b>About Me: </b>&nbsp;{{ proposal.about_me |linebreaks }}</p>
{% if proposal.proposal_type == "ABSTRACT"%}
@@ -56,9 +56,9 @@
{% else %}
<p><b>Description:</b>&nbsp;
{% endif %}
- {{ proposal.abstract }}</p>
+ {{ proposal.abstract | linebreaks }}</p>
{% if proposal.prerequisite %}
- <p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite }}</p>
+ <p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite| linebreaks }}</p>
{% endif%}
<p><b>Duration: </b>&nbsp;{{ proposal.duration }} {% if proposal.proposal_type == "ABSTRACT"%} Mins {% else %}Hours {%endif%}</p>
{% if proposal.proposal_type == "ABSTRACT"%}
@@ -106,7 +106,7 @@
<div>
<strong>Comment By:</strong>
{{ comment.user.first_name }} {{ comment.user.last_name }}
- <p>{{ comment.comment|safe }}</p>
+ <p>{{ comment.comment| linebreaks }}</p>
<!-- {% if user == comment.user %}
<form action="" method='POST' enctype="multipart/form-data">
{% csrf_token %}