From 20998fcb52d55b25da2f63965c98e7b171d4f1ed Mon Sep 17 00:00:00 2001
From: holyantony
Date: Thu, 30 Apr 2015 17:20:46 +0530
Subject: Subject:Adjusted logo and changed CSS for look and feel
Description:
---
ReadMe.rst | 10 +++++-----
static/website/css/main.css | 12 ++++++++----
static/website/images/logo1.png | Bin 0 -> 19335 bytes
static/website/templates/ajax-keyword-search.html | 11 +++++++----
static/website/templates/index.html | 10 +++++-----
website/models.py | 2 +-
6 files changed, 26 insertions(+), 19 deletions(-)
create mode 100644 static/website/images/logo1.png
diff --git a/ReadMe.rst b/ReadMe.rst
index 1a1eece..dc6d16a 100644
--- a/ReadMe.rst
+++ b/ReadMe.rst
@@ -33,7 +33,7 @@ Installation
cd /path/to/spoken-tutorial-forums
-- Install pre-requisites using the command ::
+- Install pre-requisites using the command (please don't use sudo) ::
pip install -r requirement.txt
@@ -45,12 +45,12 @@ Installation
Usage
-----
-- Using MySql (For development server only). Though, we recommend to use `mysql` for deployment
+- Using MySQL (For development server only). Though, we recommend to use `MySQL` for deployment
server. See `settings.py` file for usage.
- Create 'forum' database in 'MySQL'.
-- Only for Server deployment, Open `spoken-tutorial-forums/forums/settings.py` file and do the following changes ::
+- Only for Server deployment, open `spoken-tutorial-forums/forums/settings.py` file and make the following changes ::
DATABASES = {
'default': {
@@ -64,13 +64,13 @@ Usage
}
-- For development on your machine, create a file `config.py` to `spoken-tutorial-forums/forums/` and write ::
+- For development on your machine, create a file `config.py` in `spoken-tutorial-forums/forums/` and add ::
db_user='root' #(MySql username)
db_pass = 'root' #(MySql password)
-- For development on your machine, Open `spoken-tutorial-forums/forums/settings.py` file and do the following changes ::
+- For development on your machine, open `spoken-tutorial-forums/forums/settings.py` file and make the following changes ::
DATABASES = {
'default': {
diff --git a/static/website/css/main.css b/static/website/css/main.css
index 855a3bb..b847cd3 100644
--- a/static/website/css/main.css
+++ b/static/website/css/main.css
@@ -14,7 +14,11 @@ hr {
}
#filter-container {
background: #f5f5f5;
- padding: 15px;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ padding-left: 20px;
+ padding-right: 20px;
+
}
#filter-form {
margin-bottom: 0;
@@ -50,15 +54,15 @@ body {
#header-inner {
}
#logo {
- width: 25px;
- margin-top: -3px;
+ width: 90px;
+ margin-top: -7px;
margin-right: 4px;
}
#content-wrapper {
position: relative;
max-width: 970px;
margin:0 auto;
- padding: 30px 0 55px 0;
+ padding: 25px 0 15px 0;
background: #ffffff;
}
#content-inner {
diff --git a/static/website/images/logo1.png b/static/website/images/logo1.png
new file mode 100644
index 0000000..ecd7e44
Binary files /dev/null and b/static/website/images/logo1.png differ
diff --git a/static/website/templates/ajax-keyword-search.html b/static/website/templates/ajax-keyword-search.html
index 414ae81..6200d95 100644
--- a/static/website/templates/ajax-keyword-search.html
+++ b/static/website/templates/ajax-keyword-search.html
@@ -1,17 +1,19 @@
{% load helpers %}
+
+{{ quesions }}
+
+
{% if questions %}
FOSS | -Tutorial | -Min | -Sec | Question | Date | Views | Answers | User | + {% for question in questions %}
---|---|
@@ -23,6 +25,7 @@ | +
diff --git a/static/website/templates/index.html b/static/website/templates/index.html
index fa076b9..fcdf8cb 100644
--- a/static/website/templates/index.html
+++ b/static/website/templates/index.html
@@ -34,18 +34,18 @@
-
{% total_question_count %}-Questions+{% total_question_count %}+Questions
-
{% total_answer_count %}-Answers+{% total_answer_count %}+Answers |