Revision 421369dc

b/settings.py.dist
13 13

  
14 14
DATABASES = {
15 15
    'default': {
16
        'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17
        'NAME': 'sqlite.file',                      # Or path to database file if using sqlite3.
16
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
17
        'NAME': '',                      # Or path to database file if using sqlite3.
18 18
        'USER': '',                      # Not used with sqlite3.
19 19
        'PASSWORD': '',                  # Not used with sqlite3.
20 20
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
......
75 75
)
76 76

  
77 77
TEMPLATE_CONTEXT_PROCESSORS = (
78
    "django.core.context_processors.request",
78 79
    'django.core.context_processors.i18n',
79 80
)
80 81

  
81 82
MIDDLEWARE_CLASSES = (
82
    'synnefo.middleware.StripURLMiddleware',
83
    'django.middleware.common.CommonMiddleware',
84 83
    'django.contrib.sessions.middleware.SessionMiddleware',
85
#    'django.middleware.csrf.CsrfViewMiddleware',
86
#    'django.contrib.auth.middleware.AuthenticationMiddleware',
87
    'django.contrib.messages.middleware.MessageMiddleware',
88 84
    'django.middleware.locale.LocaleMiddleware',
85
    'localeurl.middleware.LocaleURLMiddleware',
86
    'django.middleware.common.CommonMiddleware',
87
    'synnefo.middleware.StripURLMiddleware',
88
    'django.middleware.csrf.CsrfViewMiddleware',
89
    'django.contrib.auth.middleware.AuthenticationMiddleware',
90
    'django.contrib.messages.middleware.MessageMiddleware',
89 91
)
90 92

  
91 93
ROOT_URLCONF = 'synnefo.urls'
......
97 99
)
98 100

  
99 101
INSTALLED_APPS = (
102
    'localeurl',
100 103
    'django.contrib.auth',
101 104
    'django.contrib.contenttypes',
102 105
    'django.contrib.sessions',
......
115 118
  ('el', u'Ελληνικά'),
116 119
  ('en', 'English'),
117 120
)
121

  
b/ui/static/alt-main.css
10 10
	margin: 0;
11 11
	padding: 0;
12 12
	border: 0;
13
	outline: 0;
13 14
	font-size: 100%;
14 15
	vertical-align: baseline;
15 16
	background: transparent;
......
18 19

  
19 20
body {
20 21
	line-height: 1;
21
    background:#fff url(../static/degrade-background.png) repeat scroll 0 0;
22
    margin: 0;
23 22
}
24 23

  
25 24
ol, ul {
......
36 35
	content: none;
37 36
}
38 37

  
38
/* remember to define focus styles! */
39 39
:focus {
40
    outline: 1px dotted #87AADE;
40
	outline: 0;
41 41
}
42 42

  
43 43
/* remember to highlight inserts somehow! */
......
55 55
	border-spacing: 0;
56 56
}
57 57

  
58
body {
59
    background:#fff url(../static/degrade-background.png) repeat scroll 0 0;
60
    margin: 0;
61
}
62

  
58 63
h5 {
59 64
    font-weight: normal;
60 65
    font-size: 9pt;
61 66
    margin-bottom:3px;
62 67
}
63 68

  
69
/* get rid of those system borders being generated for A tags */
70
a:active {
71
  outline:none;
72
}
73

  
74
*:focus {
75
    outline:0 !important;
76
}
77

  
64 78
/* root element for tabs  */
65 79
ul.css-tabs {
66 80
	margin: 0 0 0 10px; 
......
543 557
    color: black !important;
544 558
}
545 559

  
546
.actions a:focus, .actions:hover a,.instance:hover .actions a {
560
.actions:hover a,.instance:hover .actions a {
547 561
    color: #3d3d3d;
548 562
}
549 563

  
......
805 819
    vertical-align: bottom;
806 820
    position: relative;
807 821
    top: -1px;
808
    overflow: hidden;
822
    *overflow: hidden;
809 823
}
810 824

  
811 825
#misc {
......
827 841
    opacity: .9;
828 842
}
829 843

  
830
div#user {
844
div#user, div#language {
831 845
    float:right;
846
    clear: both;
832 847
    color: #a0a0a0;
833 848
    font-size: 9pt;
834
    margin-top: 16px;
849
    margin-top: 1px;
835 850
}
836 851

  
837
div#user a {
852
div#user a, div#language a {
838 853
    color: #a0a0a0;
839 854
    text-decoration: none;
840 855
}
......
862 877
#networks.seperator {
863 878
    background-color: #9d6d6a;
864 879
}
865

  
866
.instance h5 {
867
    margin-left: 84px;
868
    margin-right: 60px;
869
}
b/ui/templates/home.html
1 1
{% load i18n %}
2
{% load localeurl_tags %}
2 3

  
3 4
<!DOCTYPE html>
4 5

  
......
13 14

  
14 15
<body>
15 16
    <div id="wrapper">
17

  
18
    {% get_available_languages as LANGUAGES %}
19
    
20
        <div id="language">
21
            {% for lang in LANGUAGES %}
22
                <a href="{{request.path|chlocale:lang.0}}">{{lang.1}}</a> 
23
            {% endfor %}
24
        </div>
25

  
16 26
        <div id='user'><a href="#">{% trans "username" %}</a> &nbsp;|&nbsp; <a href="#">{% trans "settings" %}</a>
17
            {% get_available_languages as LANGUAGES %}
18
            <form action="/i18n/setlang/" method="post">
19
                {% csrf_token %}
20
                <input name="next" type="hidden" value="/" />
21
                <select name="language">
22
                {% for language in LANGUAGES %}
23
                <option value="{{ language.0 }}">{{ language.1 }}::{{ language.0 }}</option>
24
                {% endfor %}
25
                </select>
26
                <input type="submit" value="Go" />
27
            </form>
27
{% comment %}
28
{% get_available_languages as LANGUAGES %}
29
<form action="/i18n/setlang/" method="post">
30
{% csrf_token %}
31
<input name="next" type="hidden" value="/" />
32
<select name="language">
33
{% for language in LANGUAGES %}
34
<option value="{{ language.0 }}">{{ language.1 }}::{{ language.0 }}</option>
35
{% endfor %}
36
</select>
37
<input type="submit" value="Go" />
38
</form>
39
{% endcomment %}
40

  
41

  
28 42
</div>
43

  
29 44
        <div id='nefo'><a href="/" class="logo"><img src="static/nefo.png"/></a></div>
30 45
        <div id="header">
46

  
47

  
48

  
31 49
            <div id="about">{% trans "Greek Research and Technology Network - Cloud management web interface" %}</div>
32 50
            <a href="/" class="logo">
33 51
                <h1>{{ project }}</h1>
......
52 70
		$(function() {
53 71
            if ($("link").attr("href") == "static/alt-main.css") {
54 72
			    $('ul.css-tabs li').hover(function(){
55
				    $(this).find('a:not(.current)').animate({top:'-3px'},{queue:false,duration:150});
56
                }, function(){
57
                    $(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
73
				    $(this).find('a').animate({top:'0px'},{queue:true, duration:'slow'});
58 74
			    });
59 75
            }
60 76
		});

Also available in: Unified diff