Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2323e572
Commit
2323e572
authored
Jun 26, 2003
by
Dries
Browse files
- Improvement: moved hard-coded CSS from user module to drupal.css. Patch
#57
by Kristjan.
parent
f7a6c42e
Changes
3
Show whitespace changes
Inline
Side-by-side
misc/drupal.css
View file @
2323e572
...
...
@@ -75,7 +75,7 @@ th { text-align: left; padding-right: 1em; border-bottom:
.ok
{
color
:
#080
;
}
.user-login-block
{
text-align
:
center
;
}
.user-login-block
,
.user-information-block
{
white-space
:
nowrap
;
}
tr
.dark
{
background-color
:
#ddd
;
}
tr
.light
{
background-color
:
#eee
;
}
pre
{
white-space
:
pre-wrap
;
white-space
:
-moz-pre-wrap
;
white-space
:
-o-pre-wrap
;
white-space
:
-pre-wrap
;}
...
...
modules/user.module
View file @
2323e572
...
...
@@ -388,19 +388,21 @@ function user_block($op = "list", $delta = 0) {
$output
.
=
theme
(
"theme_item_list"
,
$items
);
$block
[
"subject"
]
=
t
(
"User login"
);
$block
[
"content"
]
=
"<div style=
\"
white-space: nowrap;
\"
>
$output
</div>"
;
$block
[
"content"
]
=
$output
;
return
$block
;
}
break
;
case
1
:
if
(
$user
->
uid
)
{
$output
=
"<div class=
\"
user-information-block
\"
>
\n
"
;
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.create"
));
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.view"
));
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.settings"
));
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.misc"
));
$output
.
=
"</div>
\n
"
;
$block
[
"subject"
]
=
$user
->
name
;
$block
[
"content"
]
=
"<div style=
\"
white-space: nowrap;
\"
>
$output
</div>"
;
$block
[
"content"
]
=
$output
;
return
$block
;
}
break
;
...
...
modules/user/user.module
View file @
2323e572
...
...
@@ -388,19 +388,21 @@ function user_block($op = "list", $delta = 0) {
$output
.
=
theme
(
"theme_item_list"
,
$items
);
$block
[
"subject"
]
=
t
(
"User login"
);
$block
[
"content"
]
=
"<div style=
\"
white-space: nowrap;
\"
>
$output
</div>"
;
$block
[
"content"
]
=
$output
;
return
$block
;
}
break
;
case
1
:
if
(
$user
->
uid
)
{
$output
=
"<div class=
\"
user-information-block
\"
>
\n
"
;
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.create"
));
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.view"
));
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.settings"
));
$output
.
=
theme
(
"theme_menu_list"
,
module_invoke_all
(
"link"
,
"menu.misc"
));
$output
.
=
"</div>
\n
"
;
$block
[
"subject"
]
=
$user
->
name
;
$block
[
"content"
]
=
"<div style=
\"
white-space: nowrap;
\"
>
$output
</div>"
;
$block
[
"content"
]
=
$output
;
return
$block
;
}
break
;
...
...
Write
Preview
Supports
Markdown
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