From 764bbe1fde98daf8ba549f4cc3ba5f3273b71ef0 Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Mon, 23 Dec 2013 13:58:39 +0530 Subject: added reply count, link option for nicedit, change in date format --- static/website/js/thread-user.js | 4 +-- static/website/templates/ajax-keyword-search.html | 31 ++++++++++++++++------- static/website/templates/ajax-time-search.html | 31 ++++++++++++++++------- static/website/templates/filter.html | 28 ++++++++++++-------- static/website/templates/get-question.html | 2 +- static/website/templates/index.html | 28 ++++++++++++-------- static/website/templates/new-question.html | 2 +- 7 files changed, 84 insertions(+), 42 deletions(-) (limited to 'static') diff --git a/static/website/js/thread-user.js b/static/website/js/thread-user.js index a8e7eee..502f0ce 100644 --- a/static/website/js/thread-user.js +++ b/static/website/js/thread-user.js @@ -1,7 +1,7 @@ bkLib.onDomLoaded(function() { var questionNicEditor = new nicEditor({ - buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image'], + buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image', 'link'], iconsPath: "/static/website/js/nicEditorIcons.gif", }); questionNicEditor.setPanel('questionNicPanel'); @@ -71,7 +71,7 @@ $(document).ready(function() { $replyPanelWrapper = $("#replyPanelWrapper"); var replyNicEditor = new nicEditor({ - buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image'], + buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image', 'link'], iconsPath: "/static/website/js/nicEditorIcons.gif", }); replyNicEditor.panelInstance('replyNicPanel'); diff --git a/static/website/templates/ajax-keyword-search.html b/static/website/templates/ajax-keyword-search.html index 2426e55..db9fbc7 100644 --- a/static/website/templates/ajax-keyword-search.html +++ b/static/website/templates/ajax-keyword-search.html @@ -2,12 +2,14 @@
- - - - - - + + + + + + + + {% for question in questions %} - + + + + + + {% endfor %}
FOSS TUTORIAL MIN SEC QUESTION DATE USER Tutorial Min Sec Question Date Views Replies User
@@ -53,14 +55,25 @@ - {{ question.date_created|date:"y-m-d" }} + {{ question.date_created|date:"d-m-y" }} - {{ question.user }} + {{ question.views}} + {{ question.reply_set.count }} + + + {{ question.user|truncatechars:10 }} + +
diff --git a/static/website/templates/ajax-time-search.html b/static/website/templates/ajax-time-search.html index 2426e55..0b1673c 100644 --- a/static/website/templates/ajax-time-search.html +++ b/static/website/templates/ajax-time-search.html @@ -2,12 +2,14 @@
- - - - - - + + + + + + + + {% for question in questions %} - + + + + + + {% endfor %}
FOSS TUTORIAL MIN SEC QUESTION DATE USER Tutorial Min Sec Question Date Views Replies User
@@ -53,14 +55,25 @@ - {{ question.date_created|date:"y-m-d" }} + {{ question.date_created|date:"d-m-y" }} + {{ question.views}} + - {{ question.user }} + {{ question.reply_set.count }} + + + {{ question.user|truncatechars:10 }} +
diff --git a/static/website/templates/filter.html b/static/website/templates/filter.html index 79943c1..64eeb5c 100644 --- a/static/website/templates/filter.html +++ b/static/website/templates/filter.html @@ -40,7 +40,7 @@ - {{ question.date_created|date:"y-m-d" }}, {{ question.date_created|time }} + {{ question.date_created|date:"d-m-y" }}, {{ question.date_created|time }} @@ -74,13 +74,14 @@ - - - - - - - + + + + + + + + {% for question in questions %} @@ -136,8 +137,15 @@ + + + {% endfor %}
FOSS ST MIN SEC QUESTION DATEVIEWS USER Tutorial Min Sec Question Date Views Replies User
@@ -126,7 +127,7 @@ - {{ question.date_created|date:"y-d-m" }} + {{ question.date_created|date:"d-m-y" }} - {{ question.user }} + {{ question.reply_set.count }} + + + {{ question.user|truncatechars:10 }} +
diff --git a/static/website/templates/get-question.html b/static/website/templates/get-question.html index 15c0197..8c242d6 100644 --- a/static/website/templates/get-question.html +++ b/static/website/templates/get-question.html @@ -117,7 +117,7 @@ bkLib.onDomLoaded(function() { new nicEditor({ iconsPath: "{% static 'website/js/nicEditorIcons.gif' %}", - buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image'] + buttonList : ['fontSize','bold','italic','underline','strikeThrough','subscript','superscript','html','image', 'link'] }).panelInstance('id_body'); }); diff --git a/static/website/templates/index.html b/static/website/templates/index.html index ea0b43f..1823f4e 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -4,13 +4,14 @@

Recent Questions

- - - - - - - + + + + + + + + {% for question in questions %} @@ -64,12 +65,19 @@ - + + + {% endfor %} +
FOSS TUTORIAL MIN SEC QUESTION DATEVIEWS USER Tutorial Min Sec Question Date Views Replies User
@@ -56,7 +57,7 @@ - {{ question.date_created|date:"y-m-d" }} + {{ question.date_created|date:"d-m-y" }} {{ question.views}} - {{ question.user }} + {{ question.reply_set.count }} + + + {{ question.user|truncatechars:10 }} +
{% if total > 10 %}