Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
39ea444c
Commit
39ea444c
authored
Oct 25, 2014
by
Chris McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed more tables where they aren't required. Improved table layout.
parent
52132f29
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
70 deletions
+48
-70
web/ccan.css
web/ccan.css
+5
-0
web/staticall.php
web/staticall.php
+2
-2
web/staticmoduleinfo.php
web/staticmoduleinfo.php
+39
-60
web/staticupload.php
web/staticupload.php
+1
-7
web/upload.php
web/upload.php
+1
-1
No files found.
web/ccan.css
View file @
39ea444c
...
...
@@ -82,6 +82,11 @@ ul.menu {
table
{
background
:
none
;
max-width
:
850px
;
margin-left
:
auto
;
margin-right
:
auto
;
padding
:
0px
;
width
:
100%
;
}
table
a
{
...
...
web/staticall.php
View file @
39ea444c
...
...
@@ -19,7 +19,7 @@ download.
Or you can just download the
<a
href=
"ccan.tar.bz2"
>
tarball of everything including CCAN tools (
<?=
$tarballsize
?>
K)
</a>
.
</p>
<table
align=
"center"
width=
"80%"
border=
"0"
cellpadding=
"3"
cellspacing=
"1"
>
<table
align=
"center"
cellpadding=
"3"
cellspacing=
"1"
>
<th
align=
"left"
>
Name
</th>
<th
align=
"left"
>
Summary / Link to details
</th>
<th
align=
"right"
>
Download
</th>
...
...
@@ -50,7 +50,7 @@ foreach ($modules as $module) {
(This is contributed code which was dumped here: these gems may need some polishing.)
<table
align=
"center"
width=
"80%"
border=
"0"
cellpadding=
"3"
cellspacing=
"1"
>
<table
align=
"center"
cellpadding=
"3"
cellspacing=
"1"
>
<?php
$d
=
dir
(
$argv
[
2
]);
...
...
web/staticmoduleinfo.php
View file @
39ea444c
...
...
@@ -17,116 +17,95 @@ $licence=extract_field('licence',$module_path);
$license
=
extract_field
(
'license'
,
$module_path
);
$url_prefix
=
getenv
(
"URLPREFIX"
);
?>
<div
class=
'content'
>
<table
align=
"center"
width=
"70%"
border=
"0"
cellpadding=
"3"
cellspacing=
"1"
>
<tr
align=
"center"
>
<td>
<a
href=
"
<?=
$repo_base
.
$module
?>
"
>
Browse Source
</a>
</td>
<td>
<a
href=
"
<?=
$url_prefix
?><?=
$tar_dir
?>
/with-deps/
<?=
$module
?>
.tar.bz2"
>
Download
</a>
<a
href=
"
<?=
$url_prefix
?><?=
$tar_dir
?>
/
<?=
$module
?>
.tar.bz2"
>
(without any required ccan dependencies)
</a>
</tr>
</table>
<div
class=
'content moduleinfo'
>
<p>
</p>
<p><a
href=
"
<?=
$repo_base
.
$module
?>
"
>
Browse Source
</a>
<a
href=
"
<?=
$url_prefix
?><?=
$tar_dir
?>
/with-deps/
<?=
$module
?>
.tar.bz2"
>
Download
</a>
<a
href=
"
<?=
$url_prefix
?><?=
$tar_dir
?>
/
<?=
$module
?>
.tar.bz2"
>
(without any required ccan dependencies)
</a></p>
<table
align=
"center"
width=
"70%"
border=
"0"
cellpadding=
"8"
cellspacing=
"1"
>
<tr
align=
"left"
>
<td><h3>
Module:
</h3>
<?=
$module
?>
</td>
</tr>
<h3>
Module:
</h3>
<p>
<?=
$module
?>
</p>
<tr
align=
"left"
>
<td><h3>
Summary:
</h3>
<?=
$summary
?>
</td>
</tr>
<h3>
Summary:
</h3>
<p>
<?=
$summary
?>
</p>
<?php
if
(
$maintainer
)
{
?>
<tr
align=
"left"
>
<td><h3>
Maintainer:
</h3>
<?=
$maintainer
?>
</td>
</tr>
<h3>
Maintainer:
</h3>
<p>
<?=
$maintainer
?>
</p>
<?php
}
if
(
$author
)
{
?>
<tr
align=
"left"
>
<td><h3>
Author:
</h3>
<?=
$author
?>
</td>
</tr>
<h3>
Author:
</h3>
<p>
<?=
$author
?>
</p>
<?php
}
if
(
$dependencies
)
{
?>
<tr
align=
"left"
>
<td><h3>
Dependencies:
</h3>
<pre>
<?php
<h3>
Dependencies:
</h3>
<ul
class=
'dependencies'
>
<?php
foreach
(
preg_split
(
"/\s+/"
,
$dependencies
)
as
$dep
)
{
echo
'<a href="'
.
substr
(
$dep
,
5
)
.
'.html">'
.
$dep
.
'</a> '
;
if
(
$dep
)
{
echo
'<li><a href="'
.
substr
(
$dep
,
5
)
.
'.html">'
.
$dep
.
'</a></li>'
;
}
}
?>
</pre></td>
</tr>
?>
</ul>
<?php
}
if
(
$extdepends
)
{
?>
<tr
align=
"left"
>
<td><h3>
External dependencies:
</h3>
<?php
<h3>
External dependencies:
</h3>
<ul
class=
'external-dependencies'
>
<?php
foreach
(
split
(
"
\n
"
,
$extdepends
)
as
$dep
)
{
$fields
=
preg_split
(
"/\s+/"
,
$dep
);
echo
$fields
[
0
]
.
' '
;
echo
"<li>"
.
$fields
[
0
]
.
' '
;
if
(
count
(
$fields
)
>
1
)
echo
'(version '
.
$fields
[
1
]
.
') '
;
echo
'<
br
>'
;
echo
'<
/li
>'
;
}
?>
</td>
</
tr
>
?>
</
ul
>
<?php
}
?>
<tr
align=
"left"
>
<
td><h3>
Description:
</h3>
<?=
$description
;
?>
</td
>
<
/tr
>
<
h3>
Description:
</h3
>
<
p>
<?=
$description
;
?>
</p
>
<?php
if
(
$see_also
)
{
?>
<tr
align=
"left"
>
<td><h3>
See Also:
</h3>
<pre>
<?php
<h3>
See Also:
</h3>
<ul
class=
'see-also'
>
<?php
foreach
(
preg_split
(
"/[\s,]+/"
,
trim
(
$see_also
))
as
$see
)
{
echo
'<
a href="'
.
substr
(
$see
,
5
)
.
'.html">'
.
$see
.
'</a>
'
;
echo
'<
li><a href="'
.
substr
(
$see
,
5
)
.
'.html">'
.
$see
.
'</a></li>
'
;
}
?>
</pre></td>
</tr>
<?php
}
if
(
$example
)
{
?>
<tr
align=
"left"
>
<td><h3>
Example:
</h3>
<pre>
<?=
$example
?>
</pre></td>
</tr>
</ul>
<?php
}
if
(
$
licenc
e
)
{
if
(
$
exampl
e
)
{
?>
<tr
align=
"left"
>
<td><h3>
License:
</h3>
<?=
$licence
?>
</td>
</tr>
<h3>
Example:
</h3>
<pre
class=
"lang-c prettyprint prettyprinted"
>
<?=
$example
?>
</pre>
<?php
}
if
(
$license
)
{
?>
<tr
align=
"left"
>
<td><h3>
License:
</h3>
<?=
$license
?>
</td>
</tr>
<h3>
License:
</h3>
<p>
<?=
$license
?>
</p>
<?php
}
?>
</table>
</div>
</body></html>
web/staticupload.php
View file @
39ea444c
...
...
@@ -8,9 +8,6 @@ include('static-configuration');
<div
class=
'content'
>
<h3
align=
"center"
>
Upload Code
</h3>
<table
width=
"70%"
align=
"center"
>
<tr>
<td>
<p>
Got C code sitting around which might help someone? Put it to work
by uploading here; .tar.gz, .zip or even single C files.
...
...
@@ -20,11 +17,8 @@ by uploading here; .tar.gz, .zip or even single C files.
main repository. Otherwise, it'll go into our "junkcode" area where
people can browse and download it.
</p>
</td>
</tr>
</table>
<table
width=
"70%"
align=
"center"
>
<table
align=
"center"
>
<tr>
<p>
<form
enctype=
"multipart/form-data"
action=
"
<?=
$uploadscript
?>
"
method=
"POST"
>
...
...
web/upload.php
View file @
39ea444c
...
...
@@ -17,7 +17,7 @@ main repository. Otherwise, it'll go into our "junkcode" area where
people can browse and download it.
</p>
<table
width=
"80%"
align=
"center"
>
<table
align=
"center"
>
<tr>
<th>
<p>
...
...
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