From 8a3043c012ebb748d57f55c6c52bd4672ace4568 Mon Sep 17 00:00:00 2001
From: Jayaram Pai
Date: Sun, 4 May 2014 16:49:50 +0530
Subject: added pretty urls to questions
---
static/website/templates/ajax-keyword-search.html | 4 +++-
static/website/templates/base.html | 6 +++++-
static/website/templates/filter.html | 4 +++-
static/website/templates/get-question.html | 4 ++++
static/website/templates/index.html | 4 +++-
5 files changed, 18 insertions(+), 4 deletions(-)
(limited to 'static/website/templates')
diff --git a/static/website/templates/ajax-keyword-search.html b/static/website/templates/ajax-keyword-search.html
index b4295c7..414ae81 100644
--- a/static/website/templates/ajax-keyword-search.html
+++ b/static/website/templates/ajax-keyword-search.html
@@ -1,3 +1,5 @@
+{% load helpers %}
+
{% if questions %}
- {{ question.title|truncatechars:40 }} + {{ question.title|truncatechars:40 }} | diff --git a/static/website/templates/base.html b/static/website/templates/base.html index d0697dd..d29571e 100644 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -2,7 +2,11 @@ {% load static %} -- {{ question.title|truncatechars:40 }} + {{ question.title|truncatechars:40 }} | diff --git a/static/website/templates/get-question.html b/static/website/templates/get-question.html index 0f43581..2983412 100644 --- a/static/website/templates/get-question.html +++ b/static/website/templates/get-question.html @@ -4,6 +4,10 @@ {% load permission_tags %} +{% block title %} + {{ question.category }} - {{ question.title }} - Spoken Tutorial Forums +{% endblock %} + {% block content %} diff --git a/static/website/templates/index.html b/static/website/templates/index.html index 5dd19e6..c12ca8b 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -2,6 +2,7 @@ {% load static %} {% load count_tags %} {% load notify %} +{% load helpers %} {% block content %}- {{ question.title|truncatechars:40 }} + {{ question.title|truncatechars:40 }} | @@ -173,6 +174,7 @@ e.preventDefault(); }); }); + $('span').tooltip(); {% endblock %} -- cgit