Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ctools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
ctools
Commits
ec465d4f
Commit
ec465d4f
authored
16 years ago
by
Earl Miles
Browse files
Options
Downloads
Patches
Plain Diff
#414304 by jcmarco: Fix visual problems when context list is entirely empty on context page.
parent
0385fee1
No related branches found
Branches containing commit
Tags
6.x-1.0-alpha3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/context.theme.inc
+11
-8
11 additions, 8 deletions
includes/context.theme.inc
with
11 additions
and
8 deletions
includes/context.theme.inc
+
11
−
8
View file @
ec465d4f
...
@@ -118,6 +118,7 @@ function theme_ctools_context_list($object, $header = '') {
...
@@ -118,6 +118,7 @@ function theme_ctools_context_list($object, $header = '') {
$titles
=
array
();
$titles
=
array
();
$output
=
''
;
$output
=
''
;
$count
=
1
;
$count
=
1
;
// Describe 'built in' contexts.
// Describe 'built in' contexts.
if
(
!
empty
(
$object
->
base_contexts
))
{
if
(
!
empty
(
$object
->
base_contexts
))
{
foreach
(
$object
->
base_contexts
as
$id
=>
$context
)
{
foreach
(
$object
->
base_contexts
as
$id
=>
$context
)
{
...
@@ -152,6 +153,7 @@ function theme_ctools_context_list($object, $header = '') {
...
@@ -152,6 +153,7 @@ function theme_ctools_context_list($object, $header = '') {
$count
++
;
$count
++
;
}
}
}
}
$count
=
1
;
$count
=
1
;
// Then, make a nice list of contexts.
// Then, make a nice list of contexts.
if
(
!
empty
(
$object
->
contexts
))
{
if
(
!
empty
(
$object
->
contexts
))
{
...
@@ -168,6 +170,7 @@ function theme_ctools_context_list($object, $header = '') {
...
@@ -168,6 +170,7 @@ function theme_ctools_context_list($object, $header = '') {
$count
++
;
$count
++
;
}
}
}
}
// And relationships
// And relationships
if
(
!
empty
(
$object
->
relationships
))
{
if
(
!
empty
(
$object
->
relationships
))
{
foreach
(
$object
->
relationships
as
$relationship
)
{
foreach
(
$object
->
relationships
as
$relationship
)
{
...
@@ -183,15 +186,15 @@ function theme_ctools_context_list($object, $header = '') {
...
@@ -183,15 +186,15 @@ function theme_ctools_context_list($object, $header = '') {
$count
++
;
$count
++
;
}
}
}
}
if
(
$output
)
{
$head
=
''
;
$head
=
''
;
if
(
$header
)
{
if
(
$header
)
{
$head
.
=
'<thead><tr>'
;
$head
.
=
'<thead><tr>'
;
$head
.
=
'<th colspan="2">'
.
$header
.
'</th>'
;
$head
.
=
'<th colspan="2">'
.
$header
.
'</th>'
;
$head
.
=
'</tr></thead>'
;
$head
.
=
'</tr></thead>'
;
}
return
"<table>
$head
<tbody>
$output
</tbody></table>
\n
"
;
}
}
return
$output
?
"<table>
$head
<tbody>
$output
</tbody></table>
\n
"
:
"<table>
$head
</table>
\n
"
;
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment