summaryrefslogtreecommitdiff
path: root/website/templates
diff options
context:
space:
mode:
authorkomalsheth2862016-11-16 12:51:48 +0530
committerkomalsheth2862016-11-16 12:51:48 +0530
commitff764c34183f3a2ee619068a406737c640b249f2 (patch)
treec5fa3259852d09925cddea56ce6341dcfe787e2e /website/templates
parentcc5284a3ed78d4840a9365ca24bdd91e3fa9c77c (diff)
downloadSciPy2016-ff764c34183f3a2ee619068a406737c640b249f2.tar.gz
SciPy2016-ff764c34183f3a2ee619068a406737c640b249f2.tar.bz2
SciPy2016-ff764c34183f3a2ee619068a406737c640b249f2.zip
Attachment is made Optional
Diffstat (limited to 'website/templates')
-rwxr-xr-xwebsite/templates/abstract-details.html2
-rwxr-xr-xwebsite/templates/comment-abstract.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/website/templates/abstract-details.html b/website/templates/abstract-details.html
index 42c5d59..daacdbe 100755
--- a/website/templates/abstract-details.html
+++ b/website/templates/abstract-details.html
@@ -54,7 +54,7 @@
<p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite }}</p>
{% endif%}
<p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
- {% if proposal.attachment.url %}
+ {% if url %}
<p><b>Attachment: </b>&nbsp;
<a href="{{ url }}" class="btn btn-info" target="_blank">{{filename}}</a></p>
{% endif %}
diff --git a/website/templates/comment-abstract.html b/website/templates/comment-abstract.html
index 27b1837..992ae91 100755
--- a/website/templates/comment-abstract.html
+++ b/website/templates/comment-abstract.html
@@ -60,7 +60,7 @@
{% if proposal.prerequisite %}
<p><b>Prerequisite: </b>&nbsp;{{ proposal.prerequisite }}</p>
{% endif%}
- {% if proposal.attachment.url %}
+ {% if url %}
<b>Attachment: </b>&nbsp;<a href="{{ url }}" class="btn btn-info" target="_blank">{{ filename }}</a>
{% endif %}
<p><b>Date Created: </b>&nbsp;{{ proposal.date_created }}</p>
@@ -111,7 +111,7 @@
{% endfor %}
<form action="{% url 'website:comment_abstract' proposal.id %}" method='POST' enctype="multipart/form-data">
{% csrf_token %}
- <textarea rows="5" cols="100" id="comment" class= "comment" name="comment" placeholder = "Add commnet here..."></textarea><br>
+ <textarea rows="5" cols="100" id="comment" class= "comment" name="comment" placeholder = "Add commnet here..."></textarea><br/>
<input class="button special" style="background:#d44727" type="submit" value="Comment">
</form>