From 99bbf8ec16fca5eeec9d0ddad5f0a5ae169e4218 Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Wed, 23 Apr 2014 17:18:27 +0530 Subject: changed slick in index page changed login:next_url modified the forms.py for initial value --- static/website/css/main.css | 48 +++++++++++++-------- static/website/templates/filter.html | 3 ++ static/website/templates/index.html | 61 ++++++++++----------------- static/website/templates/latest_question.html | 11 +++++ static/website/templates/new-question.html | 8 +++- 5 files changed, 73 insertions(+), 58 deletions(-) create mode 100644 static/website/templates/latest_question.html (limited to 'static/website') diff --git a/static/website/css/main.css b/static/website/css/main.css index ae785bc..4726635 100644 --- a/static/website/css/main.css +++ b/static/website/css/main.css @@ -12,23 +12,6 @@ hr { .navbar-default { margin-bottom: 0; } -.carousel, .slick-list { - height: 100px; - margin-right: -2px; -} -.carousel .item { - border: 1px solid #333333; - position: relative; -} -.carousel .thumb { - text-align: center; - height: 75px; -} -.carousel .descp { - position: absolute; - bottom: 0; - width: 100%; -} #filter-container { background: #f5f5f5; padding: 15px; @@ -340,3 +323,34 @@ table .title a { .slick-prev:after { color: #a26dc8; } +.carousel, .slick-list { + height: 245px; + margin-right: -2px; +} +.carousel .thumbnail { + width: 97%; + height: 245px; + border: 1px solid #cccccc; +} +.carousel .thumbnail img { + height: 100px; +} +.carousel .caption .category { + display: block; + width: 100%; + white-space: nowrap; + overflow: hidden; + text-align: center; +} +.carousel .caption .latest { + display: block; + padding: 5px 0 5px 0; + border-top: 1px solid #cccccc; + width: 100%; + white-space: nowrap; + overflow: hidden; + text-align: center; +} +.carousel .caption .btn { + margin-top: 7px; +} diff --git a/static/website/templates/filter.html b/static/website/templates/filter.html index dada403..7496c0c 100644 --- a/static/website/templates/filter.html +++ b/static/website/templates/filter.html @@ -70,7 +70,10 @@ > {{ second_range }} sec {% endif %} + Ask a new question. +
+
diff --git a/static/website/templates/index.html b/static/website/templates/index.html index 95c8500..991c777 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -1,45 +1,33 @@ {% extends 'website/templates/base.html' %} {% load static %} {% load count_tags %} +{% load notify %} {% block content %}
-

Filter questions . . .

-
-
- -
-
- -
-
+ View all previous questions.
@@ -57,15 +45,10 @@
-
+
Recent questions - - - View all questions - -
FOSS
@@ -157,9 +140,9 @@ dots: false, touchMove: false, draggable: false, - slidesToShow: 8, - slidesToScroll: 3, - speed: 500, + slidesToShow: 4, + slidesToScroll: 1, + speed: 1000, autoplay: true, autoplaySpeed: 1000, }); diff --git a/static/website/templates/latest_question.html b/static/website/templates/latest_question.html new file mode 100644 index 0000000..5279f19 --- /dev/null +++ b/static/website/templates/latest_question.html @@ -0,0 +1,11 @@ +{% if question %} + + {{ question.title }} + + View previous questions +{% else %} + + Be the first to ask question. + + View previous questions +{% endif %} diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html index d9576bb..16c6021 100644 --- a/static/website/templates/new-question.html +++ b/static/website/templates/new-question.html @@ -11,7 +11,7 @@ {% with WIDGET_ERROR_CLASS='field_error' %}

- Please enter the tutorial details. + Please enter the tutorial details. {{ category }}

@@ -19,7 +19,11 @@ {% render_field form.category class+="form-control"%}
- {% render_field form.tutorial class+="form-control" disabled="disabled" %} + {% if category %} + {% render_field form.tutorial class+="form-control" %} + {% else %} + {% render_field form.tutorial class+="form-control" disabled="disabled" %} + {% endif %}
{% render_field form.minute_range class+="form-control" disabled="disabled" %} -- cgit