Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamara El Naboulsi
ensembl
Commits
75ba6e25
Commit
75ba6e25
authored
11 years ago
by
Laurent Gil
Browse files
Options
Downloads
Patches
Plain Diff
Fixed minor issue with the display of groups with more thant 15 tables
parent
bbedef1a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/sql2html.pl
+12
-1
12 additions, 1 deletion
misc-scripts/sql2html.pl
with
12 additions
and
1 deletion
misc-scripts/sql2html.pl
+
12
−
1
View file @
75ba6e25
...
...
@@ -533,6 +533,7 @@ sub display_tables_list {
my
$count
=
scalar
@
{
$tables
};
next
if
(
$count
==
0
);
# Number of columns needed to display the tables of the group
my
$nb_col
=
ceil
(
$count
/
$nb_by_col
);
my
$nbc
=
$nb_col
;
my
$table_count
=
0
;
...
...
@@ -553,7 +554,7 @@ sub display_tables_list {
if
(
$nb_col_line
+
$nbc
>
4
and
$format_headers
==
1
)
{
$html
.=
qq{ <div style="clear:both" />\n</div>\n\n<div>}
;
$nb_col_line
=
0
;
}
}
$html
.=
display_header
(
$header_name
,
$nbc
);
$nb_col_line
+=
$nbc
;
...
...
@@ -561,15 +562,25 @@ sub display_tables_list {
}
# List of tables #
$html
.=
qq{\n <div style="float:left">}
if
(
$count
>
$nb_by_col
);
$html
.=
qq{\n <ul style="padding:0px 4px 0px 22px;margin-bottom:2px">\n}
;
my
$t_count
=
0
;
foreach
my
$t_name
(
@
{
$tables
})
{
my
$t_colour
;
if
(
$has_header
==
0
&&
$show_colour
)
{
$t_colour
=
$documentation
->
{
$header_name
}{'
tables
'}{
$t_name
}{'
colour
'};
}
$html
.=
add_table_name_to_list
(
$t_name
,
$t_colour
);
$t_count
++
;
if
(
$t_count
>=
$nb_by_col
)
{
$html
.=
qq{\n </ul>\n </div>}
;
$html
.=
qq{\n <div style="float:left">}
;
$html
.=
qq{\n <ul style="padding:0px 4px 0px 22px;margin-bottom:2px">\n}
;
$t_count
=
0
;
}
}
$html
.=
qq{ </ul>}
;
$html
.=
qq{\n </div>}
if
(
$count
>
$nb_by_col
);
if
(
$format_headers
==
1
)
{
$html
.=
qq{ </div>\n}
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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