From e6666f3c3a116b6b7fbea64bdeb25c1de138a526 Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 28 Mar 2012 03:09:36 +0200 Subject: [PATCH] fix styles again --- example/settings.py | 3 ++ teleforma/htdocs/css/teleforma_black.css | 3 +- teleforma/templates/telemeta/base.html | 14 ++----- teleforma/templates/telemeta/home.html | 52 ++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 12 deletions(-) create mode 100644 teleforma/templates/telemeta/home.html diff --git a/example/settings.py b/example/settings.py index ffde0958..af77a8c8 100644 --- a/example/settings.py +++ b/example/settings.py @@ -154,6 +154,9 @@ TELEMETA_PUBLIC_ACCESS_PERIOD = 51 AUTH_PROFILE_MODULE = 'telemeta.userprofile' SESSION_EXPIRE_AT_BROWSER_CLOSE = False +LOGIN_URL = '/login' +LOGIN_REDIRECT_URL = '/desk/courses' + EMAIL_HOST = 'localhost' DEFAULT_FROM_EMAIL = 'webmaster@parisson.com' diff --git a/teleforma/htdocs/css/teleforma_black.css b/teleforma/htdocs/css/teleforma_black.css index c2260112..827c9e69 100644 --- a/teleforma/htdocs/css/teleforma_black.css +++ b/teleforma/htdocs/css/teleforma_black.css @@ -518,10 +518,11 @@ color:#FFF; border-bottom:2px solid #000000; background-color: #000000; color: #FFF; + width:100%; } #nav ul li { - width:100px; + width: 100%; float:left; border-bottom:0px solid #fff; } diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html index d22c2dfd..a7429c94 100644 --- a/teleforma/templates/telemeta/base.html +++ b/teleforma/templates/telemeta/base.html @@ -63,6 +63,7 @@ alt="Telemeta Powered"/> {% else %}
  • {% trans "Home" %}
  • +
  • {% trans "Sign in" %}
  • {% endif %} {% if user.is_authenticated %} @@ -81,16 +82,9 @@ alt="Telemeta Powered"/>
  • {% trans "Collections" %}
  • {% trans "Items" %}
  • - -
  • {% trans "Admin" %} - -
  • +
  • {% trans "Admin" %}
  • {% endif %} {% if user.is_authenticated %} @@ -105,9 +99,7 @@ alt="Telemeta Powered"/>
  • {% trans "Sign out" %}
  • - - {% else %} -
  • {% trans "Sign in" %}
  • + {% endif %} {% endif %} diff --git a/teleforma/templates/telemeta/home.html b/teleforma/templates/telemeta/home.html new file mode 100644 index 00000000..e2e27505 --- /dev/null +++ b/teleforma/templates/telemeta/home.html @@ -0,0 +1,52 @@ +{% extends "telemeta/base.html" %} +{% load telemeta_utils %} +{% load i18n %} + +{% block content %} +
    +
    + +{% block modules %} + +{% if sound_pub_item %} +
    +

    playlist + {% trans "Musical selection" %}

    +
      +
    • {{ sound_pub_item }}{% if sound_pub_item.alt_title %} ({{ sound_pub_item.alt_title }}){% endif %}
      {{ sound_pub_item.location.fullnames|to_string }}
      + +
    • +
    +
    +{% endif %} + +{% with "Last changes" as title %} +{% include "telemeta/inc/module_revisions.html" %} +{% endwith %} + +{{ block.super }} + +{% endblock %} + +
    + +
    +vox +{{ page_content|render_flatpage }} +
    + +{% if sound_pub_items %} +
    +
    +

    playlists + {% trans "Musical selection" %}

    +
    +{% for item in sound_pub_items %} +
    {{ item }}{% if item.alt_title %} ({{ item.alt_title }}){% endif %}
    {{ item.location.fullnames|to_string }}
    +
    +{% endfor %} +
    +{% endif %} + +
    +{% endblock %} -- 2.39.5