Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Ask
website
Commits
86cf6a30
Commit
86cf6a30
authored
Jul 05, 2012
by
Giuseppe Terrasi
Browse files
Options
Browse Files
Download
Plain Diff
corretto altro errore di distrazione...
parents
d6e43737
5970e9eb
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
417 additions
and
176 deletions
+417
-176
forum/skins/light/media/images/light/accessibility.png
forum/skins/light/media/images/light/accessibility.png
+0
-0
forum/skins/light/media/images/light/dotted.png
forum/skins/light/media/images/light/dotted.png
+0
-0
forum/skins/light/media/images/light/header-shadow.png
forum/skins/light/media/images/light/header-shadow.png
+0
-0
forum/skins/light/media/images/light/header.png
forum/skins/light/media/images/light/header.png
+0
-0
forum/skins/light/media/images/light/header_b.png
forum/skins/light/media/images/light/header_b.png
+0
-0
forum/skins/light/media/images/light/header_b_active.png
forum/skins/light/media/images/light/header_b_active.png
+0
-0
forum/skins/light/media/images/light/topnav_divider.png
forum/skins/light/media/images/light/topnav_divider.png
+0
-0
forum/skins/light/media/js/accessibility.js
forum/skins/light/media/js/accessibility.js
+70
-0
forum/skins/light/media/js/cookies.js
forum/skins/light/media/js/cookies.js
+66
-0
forum/skins/light/media/style/style.css
forum/skins/light/media/style/style.css
+194
-114
forum/skins/light/templates/base_content.html
forum/skins/light/templates/base_content.html
+2
-0
forum/skins/light/templates/footer.html
forum/skins/light/templates/footer.html
+6
-8
forum/skins/light/templates/header.html
forum/skins/light/templates/header.html
+65
-53
forum/skins/light/templates/index.html
forum/skins/light/templates/index.html
+13
-0
forum_modules/openidauth/authentication.py
forum_modules/openidauth/authentication.py
+1
-1
No files found.
forum/skins/light/media/images/light/accessibility.png
0 → 100644
View file @
86cf6a30
1.55 KB
forum/skins/light/media/images/
ubuntu
/dotted.png
→
forum/skins/light/media/images/
light
/dotted.png
View file @
86cf6a30
File moved
forum/skins/light/media/images/
ubuntu
/header-shadow.png
→
forum/skins/light/media/images/
light
/header-shadow.png
View file @
86cf6a30
File moved
forum/skins/light/media/images/
ubuntu
/header.png
→
forum/skins/light/media/images/
light
/header.png
View file @
86cf6a30
File moved
forum/skins/light/media/images/light/header_b.png
0 → 100644
View file @
86cf6a30
369 Bytes
forum/skins/light/media/images/
ubuntu
/header_b_active.png
→
forum/skins/light/media/images/
light
/header_b_active.png
View file @
86cf6a30
File moved
forum/skins/light/media/images/
ubuntu
/topnav_divider.png
→
forum/skins/light/media/images/
light
/topnav_divider.png
View file @
86cf6a30
File moved
forum/skins/light/media/js/accessibility.js
0 → 100644
View file @
86cf6a30
/*
** This file contains function to enable and
** disable Accessibility stylesheet in ubuntu-it
*/
//ACCESSIBILITY_CSS_THEME_DIR = 'light-drupal-theme/styles';
//ACCESSIBILITY_CSS_FILE_NAME = 'accessibility.css' ;
ACCESSIBILITY_CSS_ABSPATH
=
[
'
http://ubuntu-it.org/sites/all/themes/light-drupal-theme/styles/accessibility.css
'
];
ACCESSIBILITY_COOKIE_VALUE_ON
=
'
on
'
;
ACCESSIBILITY_COOKIE_VALUE_OFF
=
'
off
'
;
// This function adds the accessibility css into the Head section
// and set the cookie value ON
function
accessibility_set_on
()
{
head
=
document
.
getElementsByTagName
(
'
head
'
)[
0
];
for
(
i
=
0
;
i
<
ACCESSIBILITY_CSS_ABSPATH
.
length
;
i
++
)
{
link
=
document
.
createElement
(
'
link
'
);
link
.
setAttribute
(
'
type
'
,
'
text/css
'
);
link
.
setAttribute
(
'
rel
'
,
'
stylesheet
'
);
link
.
setAttribute
(
'
media
'
,
'
screen
'
);
link
.
setAttribute
(
'
href
'
,
ACCESSIBILITY_CSS_ABSPATH
[
i
]);
head
.
appendChild
(
link
);
}
set_cookie_accessibility
(
ACCESSIBILITY_COOKIE_VALUE_ON
);
}
// This function removes the accessibility css from the Head section
// and set the cookie value OFF
function
accessibility_set_off
()
{
head
=
document
.
getElementsByTagName
(
'
head
'
)[
0
];
links
=
head
.
getElementsByTagName
(
'
link
'
);
links_to_remove
=
[]
for
(
i
=
0
;
i
<
links
.
length
;
i
++
)
{
link
=
links
[
i
];
if
(
link
.
getAttribute
(
'
type
'
)
==
'
text/css
'
)
{
for
(
j
=
0
;
j
<
ACCESSIBILITY_CSS_ABSPATH
.
length
;
j
++
)
{
if
(
link
.
getAttribute
(
'
href
'
).
indexOf
(
ACCESSIBILITY_CSS_ABSPATH
[
j
])
>=
0
)
{
links_to_remove
.
push
(
link
);
}
}
}
}
for
(
i
=
0
;
i
<
links_to_remove
.
length
;
i
++
)
{
head
.
removeChild
(
links_to_remove
[
i
]);
}
set_cookie_accessibility
(
ACCESSIBILITY_COOKIE_VALUE_OFF
);
}
function
accessibility_toggle
()
{
value
=
get_cookie_accessibility
();
// If accessibility is ON, remove the css stylesheet
if
(
value
==
ACCESSIBILITY_COOKIE_VALUE_ON
)
accessibility_set_off
();
else
accessibility_set_on
();
}
// The main function
function
accessibility
()
{
value
=
get_cookie_accessibility
();
// If accessibility is ON, add the css stylesheet
if
(
value
==
ACCESSIBILITY_COOKIE_VALUE_ON
)
accessibility_set_on
();
}
forum/skins/light/media/js/cookies.js
0 → 100644
View file @
86cf6a30
// Common variabiles
COOKIE_DOMAIN
=
"
ubuntu-it.org
"
;
COOKIE_PREFIX
=
"
ubuntu-it_custom_
"
;
COOKIE_ACCESIBILITY_NAME
=
"
accessibility
"
;
// Start Cookie in browser functions
function
set_cookie
(
name
,
value
,
expires
,
path
,
domain
,
secure
)
{
name
=
COOKIE_PREFIX
+
name
;
var
cookie_string
=
name
+
"
=
"
+
escape
(
value
);
if
(
expires
)
{
cookie_string
+=
"
; expires=
"
+
expires
.
toGMTString
();
}
else
{
var
expires
=
new
Date
(
2100
,
1
,
1
);
// never expires
cookie_string
+=
"
; expires=
"
+
expires
.
toGMTString
();
}
if
(
path
)
cookie_string
+=
"
; path=
"
+
escape
(
path
);
else
cookie_string
+=
"
; path=
"
+
escape
(
"
/
"
)
if
(
domain
)
cookie_string
+=
"
; domain=
"
+
escape
(
domain
);
else
// cookie_string += "; domain=" + escape (location.host)
cookie_string
+=
"
; domain=
"
+
escape
(
COOKIE_DOMAIN
);
if
(
secure
)
cookie_string
+=
"
; secure
"
;
document
.
cookie
=
cookie_string
;
}
function
delete_cookie
(
cookie_name
)
{
cookie_name
=
COOKIE_PREFIX
+
cookie_name
;
var
cookie_date
=
new
Date
(
);
// current date & time
cookie_date
.
setTime
(
cookie_date
.
getTime
()
-
1
);
document
.
cookie
=
cookie_name
+=
"
=; expires=
"
+
cookie_date
.
toGMTString
();
}
function
get_cookie
(
cookie_name
)
{
cookie_name
=
COOKIE_PREFIX
+
cookie_name
;
var
results
=
document
.
cookie
.
match
(
'
(^|;) ?
'
+
cookie_name
+
'
=([^;]*)(;|$)
'
);
if
(
results
)
return
(
unescape
(
results
[
2
]
)
);
else
return
null
;
}
// End Cookie in browser functions
// Accessibility
function
set_cookie_accessibility
(
cookie_value
)
{
cookie_name
=
COOKIE_ACCESIBILITY_NAME
;
set_cookie
(
cookie_name
,
cookie_value
);
}
function
get_cookie_accessibility
()
{
cookie_name
=
COOKIE_ACCESIBILITY_NAME
;
return
get_cookie
(
cookie_name
);
}
forum/skins/light/media/style/style.css
View file @
86cf6a30
...
@@ -8,7 +8,7 @@ html {
...
@@ -8,7 +8,7 @@ html {
}
}
body
{
body
{
background
:
url("../images/
ubuntu
/dotted.png")
repeat
scroll
0
0
#F5F6F7
;
background
:
url("../images/
light
/dotted.png")
repeat
scroll
0
0
#F5F6F7
;
min-width
:
985px
;
min-width
:
985px
;
margin
:
0
1px
0
0
;
margin
:
0
1px
0
0
;
padding
:
0
;
padding
:
0
;
...
@@ -193,78 +193,83 @@ blockquote blockquote {
...
@@ -193,78 +193,83 @@ blockquote blockquote {
background-color
:
#FFF
;
background-color
:
#FFF
;
}
}
#fixed-header
{
height
:
120px
;
}
.container
{
background
:
transparent
;
margin
:
0
15px
;
padding
:
0
;
}
#wrap
{
min-width
:
985px
;
}
#header
{
#header
{
background
:
url("../images/
ubuntu/header
.png")
repeat-x
scroll
left
top
#DD4814
;
background
:
url("../images/
light/header_b
.png")
repeat-x
scroll
left
top
#DD4814
;
height
:
64px
;
height
:
64px
;
margin
:
0
2px
;
margin
:
0
2px
;
text-shadow
:
0
1px
black
;
text-shadow
:
0
1px
black
;
min-width
:
985px
;
min-width
:
985px
;
padding
:
0
5px
;
padding
:
0
5px
;
position
:
relative
;
position
:
relative
;
font-size
:
12px
;
font-size
:
12px
;
}
}
#
roof
{
#
header
.container
{
background
:
url("../images/
ubuntu
/topnav_divider.png")
no-repeat
scroll
left
top
transparent
!important
;
background
:
url("../images/
light
/topnav_divider.png")
no-repeat
scroll
left
top
transparent
!important
;
height
:
100%
;
height
:
100%
;
padding-left
:
2px
;
padding-left
:
2px
;
}
#room
{
background-color
:
#FFFFFF
;
border-bottom
:
1px
solid
#777777
;
padding
:
10px
0
;
}
}
#CALeft
{
#header
li
,
#header
li
.last
{
float
:
left
;
border
:
0
none
;
position
:
relative
;
width
:
740px
;
}
}
#CARight
{
#header
.links
{
float
:
right
;
margin-left
:
0
;
width
:
240px
;
}
}
#CAFull
{
#header
li
{
background
:
url("../images/light/topnav_divider.png")
no-repeat
scroll
right
top
transparent
!important
;
padding-right
:
2px
;
float
:
left
;
float
:
left
;
padding
:
0
5px
;
margin
:
0
;
width
:
950px
;
padding-right
:
2px
;
}
list-style
:
none
;
text-transform
:
capitalize
;
#ground
{
padding-bottom
:
0
;
padding-top
:
6px
;
text-align
:
center
;
width
:
990px
;
}
}
#ground
a
,
#ground
a
:hover
,
#ground
a
:visited
{
#header
li
a
{
color
:
black
;
background
:
url("../images/light/header_b.png")
repeat-x
scroll
left
top
#DD4814
;
height
:
64px
;
line-height
:
64px
;
padding
:
0
7px
0
5px
;
color
:
#FFFFFF
;
text-shadow
:
1px
1px
1px
#333333
;
float
:
left
;
}
}
#top
{
#header
li
.active-trail
a
,
#header
li
a
.active
,
#header
li
.active
a
,
#header
li
a
:hover
,
#header
li
a
.on
{
float
:
right
;
background
:
url("../images/light/header_b_active.png")
repeat-x
scroll
left
top
#B83A10
!important
;
padding
:
3px
;
text-decoration
:
none
;
text-align
:
right
;
width
:
500px
;
}
}
#top
a
{
#page-header
{
display
:
none
;
}
color
:
#333333
;
#page-body
{
font-size
:
12px
;
overflow
:
hidden
;
height
:
35px
;
margin-top
:
0px
;
margin-left
:
20px
;
padding-top
:
4px
;
text-align
:
right
;
text-decoration
:
underline
;
}
}
#logo
{
#logo
{
float
:
right
;
float
:
right
;
padding
:
0
15px
0
0
;
color
:
white
;
color
:
white
;
text-shadow
:
none
;
text-shadow
:
none
;
padding
:
0
;
}
}
#logo
>
span
{
#logo
>
span
{
...
@@ -295,6 +300,27 @@ blockquote blockquote {
...
@@ -295,6 +300,27 @@ blockquote blockquote {
text-decoration
:
none
;
text-decoration
:
none
;
}
}
#header
.buttons
{
cursor
:
pointer
;
float
:
left
;
margin-left
:
5px
;
margin-top
:
5px
;
}
#header
.buttons
#accessibility
{
background
:
url("../images/light/accessibility.png")
repeat
scroll
0
0
transparent
;
height
:
24px
;
width
:
24px
;
}
#header
.buttons
#accessibility
:hover
{
background-position
:
center
bottom
;
}
#header
.buttons
#accessibility
:active
{
background-position
:
24px
50%
;
}
#header
#ubuntu-it-sites
{
#header
#ubuntu-it-sites
{
float
:
right
;
float
:
right
;
font-size
:
10.5px
;
font-size
:
10.5px
;
...
@@ -313,7 +339,7 @@ blockquote blockquote {
...
@@ -313,7 +339,7 @@ blockquote blockquote {
}
}
#header
#ubuntu-it-sites
a
.active
{
#header
#ubuntu-it-sites
a
.active
{
background
:
url(images/light/header-uit-bk.png)
repeat
;
background
:
url(
../
images/light/header-uit-bk.png)
repeat
;
border
:
1px
solid
#6F202A
;
border
:
1px
solid
#6F202A
;
background
:
rgba
(
0
,
0
,
0
,
0.25
);
background
:
rgba
(
0
,
0
,
0
,
0.25
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
...
@@ -321,45 +347,13 @@ blockquote blockquote {
...
@@ -321,45 +347,13 @@ blockquote blockquote {
border-radius
:
0
0
4px
4px
;
border-radius
:
0
0
4px
4px
;
}
}
#subheader
.container-inside
{
#nav
{
background
:
url("../images/light/header-shadow.png")
repeat-x
scroll
center
top
#F7F7F7
;
margin
:
0
;
padding
:
0
;
}
#nav
a
{
background
:
url("../images/ubuntu/header.png")
repeat-x
scroll
left
top
#DD4814
;
height
:
64px
;
line-height
:
64px
;
padding
:
0
7px
0
5px
;
color
:
#FFFFFF
;
text-shadow
:
1px
1px
1px
#333333
;
float
:
left
;
text-decoration
:
none
;
text-transform
:
capitalize
;
margin
:
0
;
}
#nav
a
.on
,
#nav
a
:hover
{
background
:
url("../images/ubuntu/header_b_active.png")
repeat-x
scroll
left
top
#B83A10
!important
;
text-decoration
:
none
;
}
#nav
li
{
background
:
url("../images/ubuntu/topnav_divider.png")
no-repeat
scroll
right
top
transparent
!important
;
padding-right
:
2px
;
float
:
left
;
margin
:
0
;
list-style-type
:
none
;
display
:
inline
;
}
#sub_header
{
background
:
url("../images/ubuntu/header-shadow.png")
repeat-x
scroll
center
top
#F7F7F7
;
border-radius
:
0
0
8px
8px
;
border-radius
:
0
0
8px
8px
;
-webkit-border-radius
:
0
0
8px
8px
;
-webkit-border-radius
:
0
0
8px
8px
;
-moz-border-radius
:
0
0
8px
8px
;
-moz-border-radius
:
0
0
8px
8px
;
margin
:
0
auto
25px
auto
;
height
:
39px
;
margin
:
0
auto
;
position
:
relative
;
position
:
relative
;
width
:
96%
;
width
:
96%
;
background-color
:
#F7F7F7
;
background-color
:
#F7F7F7
;
...
@@ -367,54 +361,72 @@ blockquote blockquote {
...
@@ -367,54 +361,72 @@ blockquote blockquote {
-webkit-box-shadow
:
0
1px
1px
#DFDFDF
;
-webkit-box-shadow
:
0
1px
1px
#DFDFDF
;
-moz-box-shadow
:
0
1px
1px
#DFDFDF
;
-moz-box-shadow
:
0
1px
1px
#DFDFDF
;
font-size
:
12px
;
font-size
:
12px
;
padding-top
:
16px
;
padding-right
:
15px
;
height
:
44px
;
}
}
#sub_header_options
{
#top
{
float
:
left
;
display
:
block
;
padding
:
0
10px
;
float
:
right
;
}
}
#sub_header_search
{
#top
a
{
clear
:
none
;
color
:
#333333
;
display
:
block
;
float
:
left
;
float
:
left
;
text-shadow
:
none
;
width
:
auto
;
line-height
:
40px
;
margin
:
0
;
padding
:
0
15px
;
text-decoration
:
none
;
}
}
#searchBar
{
#top
a
:focus
,
#top
a
:hover
,
#top
a
:active
,
#top
li
.active
a
{
float
:
left
;
background
:
url("../images/light/header-shadow.png")
repeat-x
scroll
center
top
#F2F2F2
;
border-bottom
:
medium
solid
#666666
;
color
:
#DD4814
;
}
}
#searchBar
.content
{
#top
a
:hover
{
border-color
:
#DD4814
;
}
}
#searchBar
.searchInput
{
#room
{
border
:
0px
;
background-color
:
#FFFFFF
;
padding
:
3px
;
border-bottom
:
1px
solid
#777777
;
font-size
:
13px
;
padding
:
10px
0
;
height
:
18px
;
width
:
400px
;
}
}
#
searchBar
.searchBtn
{
#
CALeft
{
f
ont-size
:
14px
;
f
loat
:
left
;
height
:
26px
;
position
:
relative
;
width
:
8
0px
;
width
:
8
4%
;
}
}
#searchBar
.options
{
#CARight
{
color
:
#333333
;
float
:
right
;
font-size
:
120%
;
width
:
15%
;
padding
:
3px
0
;
}
}
#searchBar
.options
input
{
#CAFull
{
margin
:
0
3px
0
15px
;
float
:
left
;
padding
:
0
5px
;
width
:
950px
;
}
}
#searchBar
.options
input
:hover
{
#ground
{
cursor
:
pointer
;
padding-bottom
:
0
;
padding-top
:
6px
;
text-align
:
center
;
width
:
990px
;
}
#ground
a
,
#ground
a
:hover
,
#ground
a
:visited
{
color
:
black
;
}
}
#listA
{
#listA
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
float
:
left
;
float
:
left
;
...
@@ -432,7 +444,7 @@ blockquote blockquote {
...
@@ -432,7 +444,7 @@ blockquote blockquote {
overflow
:
hidden
;
overflow
:
hidden
;
padding
:
3px
0px
5px
0
;
padding
:
3px
0px
5px
0
;
position
:
relative
;
position
:
relative
;
width
:
740px
;
width
:
100%
;
}
}
#listA
.short-summary
:first-of-type
{
#listA
.short-summary
:first-of-type
{
...
@@ -472,7 +484,7 @@ blockquote blockquote {
...
@@ -472,7 +484,7 @@ blockquote blockquote {
}
}
.short-summary
.question-summary-wrapper
{
.short-summary
.question-summary-wrapper
{
float
:
righ
t
;
float
:
lef
t
;
width
:
565px
;
width
:
565px
;
}
}
...
@@ -1253,14 +1265,82 @@ ins {
...
@@ -1253,14 +1265,82 @@ ins {
margin-left
:
3px
;
margin-left
:
3px
;
}
}
.footerLinks
{
#subheader
.score
,
.accept_rate
{
color
:
#3060A8
;
float
:
left
;
font-size
:
13px
;
line-height
:
40px
;
margin-left
:
0px
;
}
}
.footerLinks
a
{
#subheader
.silver
,
.badge2
{
color
:
#3060A8
;
float
:
left
;
line-height
:
40px
;
margin-left
:
0px
;
}
#subheader
.bronze
,
.badge3
{
float
:
left
;
line-height
:
40px
;
margin-left
:
0px
;
}
#subheader
.badgecount
{
float
:
left
;
line-height
:
40px
;
margin-left
:
0px
;
}
#sub_header_options
{
float
:
left
;
}
#sub_header_search
{
float
:
left
;
margin-left
:
15px
;
}
#searchBar
{
float
:
left
;
margin-left
:
15px
;
margin-top
:
7px
;
}
#searchBar
.content
{
}
#searchBar
.searchInput
{
border
:
0px
;
padding
:
3px
;
font-size
:
13px
;
font-size
:
13px
;
height
:
18px
;
width
:
380px
;
}
#searchBar
.searchBtn
{
font-size
:
14px
;
height
:
26px
;
width
:
80px
;
}
#searchBar
.options
{
color
:
#333333
;
font-size
:
120%
;
padding
:
3px
0
;
}
#searchBar
.options
input
{
margin
:
0
3px
0
15px
;
}
#searchBar
.options
input
:hover
{
cursor
:
pointer
;
}
#footer
*
{
color
:
#666
;
font-size
:
10px
;
text-align
:
center
;
text-shadow
:
0
1px
0
white
;
padding
:
6px
;
}
}
.user
{
.user
{
...
...
forum/skins/light/templates/base_content.html
View file @
86cf6a30
...
@@ -52,6 +52,8 @@
...
@@ -52,6 +52,8 @@
}
}
/*]]>*/
/*]]>*/
</script>
</script>
<script
type=
"text/javascript"
src=
"{% media "
/
media
/
js
/
accessibility
.
js
"
%}"
></script>
<script
type=
"text/javascript"
src=
"{% media "
/
media
/
js
/
cookies
.
js
"
%}"
></script>
<script
type=
"text/javascript"
src=
"{% media "
/
media
/
js
/
osqa
.
main
.
js
"
%}"
></script>
<script
type=
"text/javascript"
src=
"{% media "
/
media
/
js
/
osqa
.
main
.
js
"
%}"
></script>
{% if user_messages %}
{% if user_messages %}
<style
type=
"text/css"
>
<style
type=
"text/css"
>
...
...
forum/skins/light/templates/footer.html
View file @
86cf6a30
{% load extra_tags ui_registry i18n %}
{% load extra_tags ui_registry i18n %}
<div>
<div
id=
"footer"
>
<!--<div class="footerLinks" >
<!--<div class="footerLinks" >
{% loadregistry footer_links %}<span class="link-separator"> |</span>{% endloadregistry %}
{% loadregistry footer_links %}<span class="link-separator"> |</span>{% endloadregistry %}
</div>-->
</div>-->
<p>
<p>
<a
href=
"http://osqa.net"
target=
"_blank"
title=
"OSQA {{ settings.OSQA_VERSION }} ({{ settings.SVN_REVISION }})"
>
<a
href=
"http://osqa.net"
target=
"_blank"
title=
"OSQA {{ settings.OSQA_VERSION }} ({{ settings.SVN_REVISION }})"
>
powered by OSQA
</a>
powered by OSQA
•
<a
href=
"http://www.postgresql.org/"
target=
"_blank"
>
PostgreSQL database
</a><br/>
</a>
Ubuntu e Canonical sono marchi registrati da Canonical Ltd.
•
<a
href=
"http://www.postgresql.org/"
target=
"_blank"
>
PostgreSQL
</a>
database
<br/>
</p>
Ubuntu e Canonical sono marchi registrati da Canonical Ltd.
</p>
</div>
</div>
<!-- <div id="licenseLogo">
<!-- <div id="licenseLogo">
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
...
...
forum/skins/light/templates/header.html
View file @
86cf6a30
<!-- template header.html -->
<!-- template header.html -->
{% load extra_tags ui_registry i18n extra_filters markup %}
{% load extra_tags ui_registry i18n extra_filters markup %}
<div
id=
"header"
class=
"shadowed curved-bottom"
>
<div
id=
"fixed-header"
>
<div
id=
"roof"
>
<div
id=
"header"
class=
"shadowed curved-bottom"
>
<!--Menù arancione-->
<div
class=
"container"
>
<ul
id=
"nav"
>
<ul
class=
"links"
>
{% loopregistry page_top_tabs %}{% spaceless %}
<li><a
id=
"nav_index"
href=
"{% url index %}"
>
{% trans "home" %}
</a></li>
<li><a
id=
"nav_{{ tab_name }}"
{%
ifequal
tab
tab_name
%}
class=
"on"
{%
endifequal
%}
href=
"{{ tab_url }}"
>
{{ tab_title }}
</a></li>
{% loopregistry page_top_tabs %}{% spaceless %}
{% endspaceless %}{% endloopregistry %}
<li><a
id=
"nav_{{ tab_name }}"
{%
ifequal
tab
tab_name
%}
class=
"on"
{%
endifequal
%}
href=
"{{ tab_url }}"
>
{{ tab_title }}
</a></li>
<li><a
id=
"nav_{{ tab_name }}"
href=
"{% url ask %}"
>
{% trans "ask a question" %}
</a></li>
{% endspaceless %}{% endloopregistry %}
</ul>
<li><a
id=
"nav_{{ tab_name }}"
href=
"{% url ask %}"
>
{% trans "ask a question" %}
</a></li>
</ul>
<div
id=
"logo"
>
<div
id=
"ubuntu-it-sites"
>
<div
id=
"logo"
>
<a
id=
""
href=
"http://www.ubuntu-it.org"
>
web
</a>
<div
id=
"ubuntu-it-sites"
>
<a
href=
"http://wiki.ubuntu-it.org"
>
wiki
</a>
<a
id=
""
href=
"http://www.ubuntu-it.org"
>
web
</a>
<a
id=
""
href=
"http://forum.ubuntu-it.org"
>
forum
</a>
<a
href=
"http://wiki.ubuntu-it.org"
>
wiki
</a>
<a
class=
"active"
id=
""
href=
"http://chiedi.ubuntu-it.org"
>
chiedi
</a>
<a
id=
""
href=
"http://forum.ubuntu-it.org"
>
forum
</a>
<a
id=
""
href=
"http://cerca.ubuntu-it.org"
>
cerca
</a>
<a
class=
"active"
id=
""
href=
"http://chiedi.ubuntu-it.org"
>
chiedi
</a>
<a
id=
""
href=
"http://planet.ubuntu-it.org"
>
planet
</a>
<a
id=
""
href=
"http://cerca.ubuntu-it.org"
>
cerca
</a>
</div>
<a
id=
""
href=
"http://planet.ubuntu-it.org"
>
planet
</a>
<a
href=
"/"
title=
"Ubuntu - Chiedi alla comunità italiana"
>
<span>
chiedi
</span>
ubuntu-it
</a>
<span>
comunità italiana
</span>
</div>
</div>
</div>
<div
class=
"clear"
></div>
<div
id=
"sub_header"
>
<div
id=
"searchBar"
>
<form
action=
"{% url search %}"
method=
"get"
>
<div
class=
"options"
id=
"sub_header_options"
>
<input
id=
"type-question"
type=
"radio"
value=
"question"
name=
"t"
checked=
"checked"
/><label
for=
"type-question"
>
{% trans "questions" %}
</label>
<input
id=
"type-tag"
type=
"radio"
value=
"tag"
name=
"t"
/><label
for=
"type-tag"
>
{% trans "tags" %}
</label>
<input
id=
"type-user"
type=
"radio"
value=
"user"
name=
"t"
/><label
for=
"type-user"
>
{% trans "users" %}
</label>
</div>
</div>
{% csrf_token %}
<a
href=
"/"
title=
"Ubuntu - Chiedi alla comunità italiana"
>
<div
id=
"sub_header_search"
>
<span>
chiedi
</span>
ubuntu-it
<input
type=
"text"
class=
"searchInput"
value=
"{{ keywords }}"
name=
"q"
id=
"keywords"
/>
</a>
<input
type=
"submit"
name=
"Submit"
value=
"{% trans "
search
"
%}"
class=
"searchBtn"
/>
<span>
comunità italiana
</span>
</div>
</div>
</form>
<div
class=
"buttons"
>
<div
id=
"accessibility"
title=
"Maggiore focus ai contenuti"
onclick=
"accessibility_toggle();"
></div>
</div>
</div>
</div>
<div
id=
"top"
>
</div>
{% loadregistry header_links %}{% endloadregistry %}
</div>
</div>
<div
class=
"clear"
></div>
{% if settings.USE_ANNOUNCEMENT_BAR|or_preview:request %}
<div
id=
"announcement"
>
{{ settings.ANNOUNCEMENT_BAR|or_preview:request|static_content:settings.ANNOUNCEMENT_BAR_RENDER_MODE }}
</div>
{% endif %}
<div
id=
"subheader"
>
<div
class=
"container"
>
<div
class=
"container-inside"
>
<div
id=
"searchBar"
>
<form
action=
"{% url search %}"
method=
"get"
>
{% csrf_token %}
<div
class=
"options"
id=
"sub_header_options"
>
<select
name=
"t"
>
<option
value=
"question"
selected
>
{% trans "questions" %}
</option>
<option
value=
"tag"
>
{% trans "tags" %}
</option>
<option
value=
"user"
>
{% trans "users" %}
</option>
</select>
</div>
<div
id=
"sub_header_search"
>
<input
type=
"text"
class=
"searchInput"
value=
"{{ keywords }}"
name=
"q"
id=
"keywords"
/>
<input
type=
"submit"
name=
"Submit"
value=
"{% trans "
search
"
%}"
class=
"searchBtn"
/>
</div>
</form>
</div>
<div
id=
"top"
>
{% loadregistry header_links %}{% endloadregistry %}
</div>
</div>
</div>
<div
class=
"clear"
></div>
{% if settings.USE_ANNOUNCEMENT_BAR|or_preview:request %}
<div
id=
"announcement"
>
{{ settings.ANNOUNCEMENT_BAR|or_preview:request|static_content:settings.ANNOUNCEMENT_BAR_RENDER_MODE }}
</div>
{% endif %}
</div>
</div>
<!-- end template header.html -->
<!-- end template header.html -->
forum/skins/light/templates/index.html
View file @
86cf6a30
...
@@ -4,6 +4,19 @@
...
@@ -4,6 +4,19 @@
{% load question_list_tags %}
{% load question_list_tags %}
{% load i18n %}
{% load i18n %}
{% block fulltitle %}{{ settings.APP_TITLE }}{% endblock %}
{% block fulltitle %}{{ settings.APP_TITLE }}{% endblock %}
{% block forejs %}
<style>
#header
li
#nav_questions
{
background
:
url("m/light/media/images/light/header_b.png")
repeat-x
scroll
left
top
#DD4814
!important
;
}
#header
li
a
#nav_questions
:hover
{
background
:
url("m/light/media/images/light/header_b_active.png")
repeat-x
scroll
left
top
#B83A10
!important
;
}
#header
li
#nav_index
{
background
:
url("m/light/media/images/light/header_b_active.png")
repeat-x
scroll
left
top
#B83A10
;
}
</style>
{% endblock %}
{% block sidebar %}
{% block sidebar %}
{% if not request.user.is_authenticated %}
{% if not request.user.is_authenticated %}
{% if settings.SHOW_WELCOME_BOX %}
{% if settings.SHOW_WELCOME_BOX %}
...
...
forum_modules/openidauth/authentication.py
View file @
86cf6a30
...
@@ -27,7 +27,7 @@ class LaunchpadAuthConsumer(OpenIdAbstractAuthConsumer):
...
@@ -27,7 +27,7 @@ class LaunchpadAuthConsumer(OpenIdAbstractAuthConsumer):
def
get_user_url
(
self
,
request
):
def
get_user_url
(
self
,
request
):
return
'https://login.launchpad.net'
return
'https://login.launchpad.net'
class
LaunchpadAuthCon
sumer
(
ConsumerTemplateContext
):
class
LaunchpadAuthCon
text
(
ConsumerTemplateContext
):
mode
=
'BIGICON'
mode
=
'BIGICON'
type
=
'DIRECT'
type
=
'DIRECT'
weight
=
200
weight
=
200
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment