diff --git a/scripts/planet/people/css/content.css b/scripts/planet/people/css/content.css new file mode 100644 index 0000000..982924e --- /dev/null +++ b/scripts/planet/people/css/content.css @@ -0,0 +1,237 @@ +.name-project, .name-release, .name-version { +} + +/* Front page H1 */ +#page-main h1 { + font-size: 1.35em; +} + +#page-main h1.center { + text-align: center; +} + +h1, h2, h3, h4 { + /* + font-style: italic; + */ + font-family: luxi sans,sans-serif; +} +h1 { + font-size: 1.75em; +} + +h2 { + font-size: 1.25em; +# background-color: #eee; +} + +h3 { + font-size: 1.1em; +} + +hr { + border: 0; + border-bottom: 1px solid #ccc; +} + +.fedora-side-right-content { + padding: 1 5px 1.5em; + font-size: 1em; +} +#fedora-side-right h1, #fedora-side-right h2, #fedora-side-right h3 { + margin: 0; + padding: 0 4pt 0; + font-size: 1em; + letter-spacing: 2pt; + border-bottom: 1px solid #bbb; +} +#fedora-side-right hr { + border-bottom: 1px solid #aaa; + margin: 0.5em 0; +} + +table tr { + font-size: 0.9em; +} + + +#link-offsite { +} +.link-offsite-notation { + font-size: 0.9em; + color: #777; + padding-left: 1pt; + text-decoration: none !important; +} +#fedora-content .link-offsite-notation { + color: #999; +} +#link-redhat { +} +#fedora-content #link-redhat { +} +#link-internal { +} + +#fedora-content li { + padding: 1pt; +} +#fedora-content h1 { + margin-top: 0; +} + +#fedora-content a img { + margin: 1px; + border: 0; +} +#fedora-content a:hover img { + margin: 0; + border: 1px solid #f00; +} +#fedora-content a img.noborder { + margin: 0; + border: 0; +} +#fedora-content a:hover img .noborder { + margin: 0; + border: 0; +} + +#fedora-project-maintainers p, #fedora-project-contributors p, #fedora-project-bugs p { + margin-left: 5pt; +} + +#fedora-project-download dt { + font-weight: bold; + margin-top: 8pt; + margin-left: 5pt; +} +#fedora-project-download dd { + padding: 0; + margin: 10px 20px 0; +} +#fedora-project-screenshots a img { + margin: 5px; +} +#fedora-project-screenshots a:hover img { + margin: 4px; +} +#fedora-project-todo ul { + border: 1px solid #cad4e9; + margin: 0 1em; + padding: 0; + list-style: none; + border-radius: 2.5px; + -moz-border-radius: 2.5px; +} +#fedora-project-todo li { + margin: 0; + padding: 6px 8px; +} +#fedora-project-todo li.odd { + background-color: #ecf0f7; +} +#fedora-project-todo li.even { + background-color: #f7f9fc; +} + +#fedora-list-packages { + border-collapse: collapse; + border: 1px solid #cad4e9; + border-radius: 2.5px; + -moz-border-radius: 2.5px; +} +#fedora-list-packages tr.odd td { + background-color: #ecf0f7; +} +#fedora-list-packages tr.even td { + background-color: #f7f9fc; +} +#fedora-list-packages th, +#fedora-list-packages td { + margin: 0; + padding: 6px 8px; +} +#fedora-list-packages td.column-2 { + text-align: center; +} +#fedora-list-packages th { + background-color: #cad4e9; + color: #000; + font-weight: bold; + text-align: center; + +} + +/* pre.screen is for DocBook HTML output */ +code.screen, pre.screen { + font-family: monospace; + font-size: 1em; + display: block; + padding: 10px; + border: 1px solid #bbb; + background-color: #eee; + color: #000; + overflow: auto; + border-radius: 2.5px; + -moz-border-radius: 2.5px; + margin: 0.5em 2em; +} +#fedora-project code.screen { + margin: 0; +} + +code.command, code.filename { + font-family: monospace; +} + +code.citetitle { + font-family: sans-serif; + font-style: italic; +} + +strong.application { + font-weight: bold; +} +.indent { + margin: 0 2em; +} +.fedora-docs-nav { + text-align: center; + position: relative; + padding: 1em; + margin-top: 2em; + border-top: 1px solid #ccc; +} +.fedora-docs-nav a { + padding: 0 1em; +} +.fedora-docs-nav-left { + position: absolute; + left: 0; +} +.fedora-docs-nav-right { + position: absolute; + right: 0; +} + +.fedoraEntry { + +padding-left: 10px; +padding-right: 10px; +padding-bottom: 10px; +padding-top: 10px; +border-bottom: 1px solid #ccc; +} + +.fedoraStory { +} + +.fedoraFace { + margin: 0 0 10px 10px; + float: right; +} + +.fedoraTitle { + font-size: 1.25em; +} diff --git a/scripts/planet/people/css/docbook.css b/scripts/planet/people/css/docbook.css new file mode 100644 index 0000000..3181bce --- /dev/null +++ b/scripts/planet/people/css/docbook.css @@ -0,0 +1,71 @@ +#fedora-content li p { + margin: 0.2em; +} + +#fedora-content div.table table { + width: 95%; + background-color: #DCDCDC; + color: #000000; + border-spacing: 0; +} + +#fedora-content div.table table th { + border: 1px solid #A9A9A9; + background-color: #A9A9A9; + color: #000000; +} + +#fedora-content div.table table td { + border: 1px solid #A9A9A9; + background-color: #DCDCDC; + color: #000000; + padding: 0.5em; + margin-bottom: 0.5em; + margin-top: 2px; + +} + +div.note table, div.tip table, div.important table, div.caution table, div.warning table { + width: 95%; + border: 2px solid #B0C4DE; + background-color: #F0F8FF; + color: #000000; + /* padding inside table area */ + padding: 0.5em; + margin-bottom: 0.5em; + margin-top: 0.5em; +} + +/* "Just the FAQs, ma'm." */ +.qandaset table { + border-collapse: collapse; +} +.qandaset { +} +.qandaset tr.question { +} +.qandaset tr.question td { + font-weight: bold; + padding: 0 0.5em; + margin: 0; +} +.qandaset tr.answer td { + padding: 0 0.5em 1.5em; + margin: 0; +} +.qandaset tr.question td, .qandaset tr.answer td { + vertical-align: top; +} +.qandaset strong { + text-align: right; +} + +.article .table table { + border: 0; + margin: 0 auto; + border-collapse: collapse; +} +.article .table table th { + padding: 5px; + text-align: center; +} diff --git a/scripts/planet/people/css/layout.css b/scripts/planet/people/css/layout.css new file mode 100644 index 0000000..6ceba83 --- /dev/null +++ b/scripts/planet/people/css/layout.css @@ -0,0 +1,362 @@ + body { + font-size: 0.9em; + font-family: bitstream vera sans,sans-serif; + margin: 0; + padding: 0; + /* (The background color is specified elsewhere, so do a global replacement if it ever changes) */ + background-color: #d9d9d9; +} + +a:link { + color: #900; +} +a:visited { + color: #48468f; +} +a:hover { + color: #f20; +} +a[name] { + color: inherit; + text-decoration: inherit; +} + +#fedora-header { + background-color: #fff; + height: 62px; +} +#fedora-header img { + border: 0; + vertical-align: middle; +} +#fedora-header-logo { + /* position is offset by the header padding amount */ + position: absolute; + left: 26px; + top: 13px; + z-index: 3; +} +#fedora-header-logo img { + width: 110px; + height: 40; +} +#fedora-header-items { + /* position is offset by the header padding amount */ + position: absolute; + right: 10px; + top: 15px; + text-align: right; + display: inline; +} +#fedora-header-items a { + color: #000; + text-decoration: none; + padding: 7pt; + font-size: 0.8em; +} +#fedora-header-items a:hover, #fedora-header-search-button:hover { + color: #f20; + cursor: pointer; +} +#fedora-header-items img { + margin-right: 1px; + width: 36px; + height: 36px; +} +#fedora-header-search { + height: 25px; +} +#fedora-header-search-entry { + vertical-align: top; + margin: 0.65em 4px 0 10px; + padding: 2px 4px; + background-color: #f5f5f5; + border: 1px solid #999; + font-size: 0.8em !important; +} +#fedora-header-search-entry:focus { + background-color: #fff; + border: 1px solid #555; +} +#fedora-header-search-button { + font-size: 0.8em !important; + vertical-align: top; + margin-top: 0.2em; + border: 0; + padding: 7px; + background: #fff url('../images/header-search.png') no-repeat left; + padding-left: 21px; +} +#fedora-header-items form { + float: right; +} +#fedora-header-items input { + font-size: 0.85em; +} +#fedora-nav { + margin: 0; + padding: 0; + background-color: #22437f; + font-size: 0; + height: 5px; + border-top: 1px solid #000; + border-bottom: 1px solid #f5f5f5; +} +#fedora-nav ul { + margin: 0; + padding: 0; +} +#fedora-nav li { + display: inline; + list-style: none; + padding: 0 5pt; +} +#fedora-nav li + li { + padding-left: 8pt; + border-left: 1px solid #99a5bf; +} +#fedora-nav a { + color: #c5ccdb; + text-decoration: none; +} +#fedora-nav a:hover { + color: #fff; +} + +#fedora-side-left { + position: absolute; + z-index: 2; + width: 11em; + /* Space down for the approx line height (fonts) */ + left: 12px; +} +#fedora-side-right { + position: absolute; + z-index: 1; + width: 20em; + right: 12px; + padding-top: 3px; + } +#fedora-side-left, #fedora-side-right { + top: 2px; + /* add to the top margin to compensate for the fixed sizes */ + margin-top: 75px; + color: #555; + font-size: 0.9em; +} +#fedora-side-right ul { + list-style: square inside; + padding: 0; + margin: 0; +} + +/* Left-side naviagation */ +#fedora-side-nav-label { + display: none; +} +#fedora-side-nav { + list-style: none; + margin: 0; + padding: 0; + border: 1px solid #5976b2; + border-top: 0; + background-color: #22437f; +} +#fedora-side-nav li { + margin: 0; + padding: 0; + border-top: 1px solid #5976b2; + /* IE/Win gets upset if there is no bottom border... Go figure. */ + border-bottom: 1px solid #22437f; +} +#fedora-side-nav a { + margin: 0; + color: #c5ccdb; + display: block; + text-decoration: none; + padding: 4px 6px; +} +#fedora-side-nav a:hover { + background-color: #34548f; + color: #fff; +} +#fedora-side-nav ul { + list-style: none; + margin: 0; + padding: 0; +} +#fedora-side-nav ul li { + border-top: 1px solid #34548e; + background-color: #34548e; + /* IE/Win gets upset if there is no bottom border... Go figure. */ + border-bottom: 1px solid #34548e; +} +#fedora-side-nav ul li:hover { + border-bottom: 1px solid #34548f; +} +#fedora-side-nav ul li a { + padding-left: 12px; + color: #a7b2c9; +} +#fedora-side-nav ul li a:hover { + background-color: #46659e; +} +#fedora-side-nav ul ul li a { + padding-left: 18px; +} +#fedora-side-nav strong a { + font-weight: normal; + color: #fff !important; + background-color: #10203b; +} +#fedora-side-nav strong a:hover { + background-color: #172e56 !important; +} + +/* content containers */ +#fedora-middle-one, #fedora-middle-two, #fedora-middle-three { + font-size: 0.9em; + /* position: relative; */ /* relative to utilize z-index */ + width: auto; + min-width: 120px; + margin: 10px; + z-index: 3; /* content can overlap when the browser is narrow */ +} +/* +#fedora-middle-two, #fedora-middle-three { + margin-left: 11em; + padding-left: 24px; +} +*/ +#fedora-middle-three { + margin-right: 20em; + padding-right: 24px; +} + +#fedora-content { + padding: 24px; + border: 1px solid #aaa; + background-color: #fff; +} + +#fedora-content > .fedora-corner-bottom { top: 0 } + +.fedora-corner-tl, .fedora-corner-tr, .fedora-corner-bl, .fedora-corner-br { + background-color: #d9d9d9; + position: relative; + width: 19px; + height: 19px; + /* The following line is to render PNGs with alpha transparency within IE/Win, using DirectX */ + /* Work-around for IE6/Mac borkage (Part 1) */ + display: none; +} + +.fedora-corner-tl, .fedora-corner-bl { float: left; left: 0px; } +.fedora-corner-tr, .fedora-corner-br { float: right; right: 0px; } +.fedora-corner-tl, .fedora-corner-tr { top: 0px; } +.fedora-corner-bl, .fedora-corner-br { bottom: 0px; margin-top: -19px; } + + +html>body .fedora-corner-tl { background: #d9d9d9 url("../images/corner-tl.png") no-repeat left top; } +html>body .fedora-corner-tr { background: #d9d9d9 url("../images/corner-tr.png") no-repeat right top; } +html>body .fedora-corner-bl { background: #d9d9d9 url("../images/corner-bl.png") no-repeat left bottom; } +html>body .fedora-corner-br { background: #d9d9d9 url("../images/corner-br.png") no-repeat right bottom; } + +.fedora-corner-tl { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-tl.png',sizingMethod='scale'); } +.fedora-corner-tr { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-tr.png',sizingMethod='scale'); } +.fedora-corner-br { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-br.png',sizingMethod='scale'); } +.fedora-corner-bl { filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/corner-bl.png',sizingMethod='scale'); } + +/* \*/ +.fedora-corner-tl, .fedora-corner-tr, .fedora-corner-bl, .fedora-corner-br { + /* Restore the view for everything but IE6/Mac (part 2 of the "IE/Mac fix") */ + display: block; +} +/* */ + +html*.fedora-corner-bl, html*.fedora-corner-br { + /* Compensate for Opera's inability to position some things correctly (Part 2) */ + top: 0px; +} + +.content { margin: 0 1em } + +#fedora-sidelist { + position: relative; + bottom: 3px; + margin: 0; + padding: 3px !important; + border: 1px solid #bbb; + background-color: #ccc; + border-radius: 2.5px; + -moz-border-radius: 2.5px; +} +#fedora-sidelist strong a { + font-weight: normal; + background-color: #555; + color: #fff; +} +#fedora-sidelist strong a:hover { + background-color: #333; + color: #fff; +} +#fedora-sidelist li { + list-style-position: outside; + font-size: 0.9em; + list-style: none; + border: 1px solid #ccc; + border-width: 1px 0; + padding: 0; + list-style: none; +} +#fedora-sidelist li a { + text-decoration: none; + display: block; + padding: 6px 8px; + border-radius: 2.5px; + -moz-border-radius: 2.5px; +} +#fedora-sidelist li a:hover { + background-color: #999; + color: #eee; +} + +#fedora-footer { + font-size: 0.75em; + text-align: center; + color: #777; + margin-bottom: 2em; +} +#fedora-printable { + text-align: center; + margin: 1em 0; + font-size: 0.85em; +} +#fedora-printable a { + text-decoration: none; + padding: 5px 0; + padding-left: 18px; + background: transparent url("../images/printable.png") no-repeat left; +} +#fedora-printable a:hover { + text-decoration: underline; +} + + +.left { + margin: 10px; + padding: 0px; + float: left; +} + +.right { + margin: 10px; + padding: 0px; + float: right; +} + + +.blosxomStory p { + margin-top: 7px; + margin-bottom: 7px; +} \ No newline at end of file diff --git a/scripts/planet/people/css/people-style.css b/scripts/planet/people/css/people-style.css new file mode 100644 index 0000000..9f95fc7 --- /dev/null +++ b/scripts/planet/people/css/people-style.css @@ -0,0 +1,169 @@ +html, body { + border: 0; + padding: 0; + margin: 0; + font-family: Verdana, Arial, Helvetica, sans-serif; + min-width: 912px; + background-color: #eeeff1; +} +#header { + margin-bottom: 23px; /* sync this value with margin-top of #content */ + background: #2963a5 url("../images/people-header.png") repeat-y 20% 0%; + height: 74px; +} +#header .logo { + position: absolute; + display: block; + left: 5px; + top: 3px; +} +#content { + margin-top: -23px; /* sync this value with margin-top of #content */ + margin-right: 210px; + background-color: white; +} +.blog-entries-daily { + background: white url("../images/people-entry-group-date-header.png") no-repeat top right; + margin-right: 25px; + position: relative; + padding-bottom: 12px; + margin-bottom: 30px; +} +.blog-date { + text-align: center; + background: transparent url("../images/people-entry-group-date-background.png") repeat-y top right; + color: white; + margin-top: 11px; + position: absolute; + right: 0; + font-size: 0.9em; + width: 229px; + height: 100%; +} +.blog-entry { + clear: both; + margin: 11px 0; + position: relative; + top: 40px; +} +.blog-entry-author { + float: left; + margin-top: 30px; + padding: 0 20px 30px 0; + width: 125px; + font-size: 0.8em; + text-align: center; +} +.blog-entry-author :link, .blog-entry-author :visited { + font-size: 0.9em; +} +.blog-entry-author .head { + display: block; + margin: 1ex auto; + border: 0; +} +.blog-entry-post { + margin: 1em 0 1em 145px; + border-radius: 20px; + background: transparent url("../images/people-entry-center-left.png") repeat-y center left; +} +.blog-entry-header { + background: transparent url("../images/people-entry-top-center.png") repeat-x top center; + height: 50px; +} +.blog-entry-title { + font-size: larger; + background: transparent url("../images/people-entry-top-left.png") no-repeat top left; + height: 50px; +} +.blog-entry-title a { + padding: 1em 0; + display: block; + margin-left: 25px; + background: transparent url("../images/people-entry-top-right.png") no-repeat top right; + height: 50px; +} +.blog-entry-content { + padding-top:10px; + padding-right: 3em; + margin-left: 25px; + text-align: justify; + font-size: 0.8em; + font-weight: normal; + background: transparent url("../images/people-entry-center-right.png") repeat-y center right; + padding-bottom:10px; + position: relative; + overflow: auto; +} +.blog-entry-content img { + max-width: 575px; + margin-left: 2ex; +} +.blog-entry-footer { + background: transparent url("../images/people-entry-bottom-center.png") repeat-x bottom center; +} +.blog-entry-timestamp { + font-size: x-small; + text-align: right; + color: #b3b3b3; + background: transparent url("../images/people-entry-bottom-left.png") no-repeat bottom left; +} +.blog-entry-timestamp a { + display: block; + color: #b3b3b3; + text-decoration: none; + height: 35px; + background: transparent url("../images/people-entry-bottom-right.png") no-repeat bottom right; + padding: 1em 5em 0 0; +} +#disclaimer { + font-size: x-small; + color: #b3b3b3; + text-align: center; + padding: 1em; +} +#sidebar { + color: #555555; + background-color: #eeeff1; + font-size: 0.8em; + position: absolute; + width: 210px; + min-width: 210px; + max-width: 210px; + top: 0; + right: 0; + margin: 0; + border-left: 2px solid white; + height: 100%; +} +#sidebar #sidebar-header { + display: block; + background-color: #2963a5; +} +#sidebar-inner { + padding: 10px; +} +#sidebar h2 { + font-size: 1.4em; + font-weight: normal; + border-bottom: 1px solid #cfd4d9; + margin: 5px 0px; + padding: 0px 5px; +} + +#sidebar ul { + list-style: square inside; + padding: 0; + margin: 0 0 1em 0; + color: #22538b; +} +#spacer { + height: 1em; +} +:link { + color: #337ACC; +} +:visited { + color: #6A3B18; +} + diff --git a/scripts/planet/people/css/print.css b/scripts/planet/people/css/print.css new file mode 100644 index 0000000..0be9bea --- /dev/null +++ b/scripts/planet/people/css/print.css @@ -0,0 +1,86 @@ +body { + background: white; + color: black; + font-size: 10pt; + font-family: sans-serif; + line-height: 1.25em; +} + +div { + border: 1px solid white; +} +li { + border: 1px solid white; + margin: 0; +} +li p { + display: inline; +} + +h1 { + font-size: 16pt; +} +h2 { + font-size: 12pt; +} +h3,h4,h5 { + font-size: 10pt; +} +img { + border: 1px solid white; + background-color: white; +} +hr { + border: 1px dotted gray; + border-width: 0 0 1 0; + margin: 1em; +} +table { + border-collapse: collapse; +} +td,th { + border: 1px solid gray; + padding: 8pt; + font-size: 10pt; +} +th { + font-weight: bold; +} +#fedora-header, #fedora-footer { + text-align: center; +} +#fedora-header-items, #fedora-side-left, #fedora-side-right { + display: none; +} + +#fedora-project-download dt { + font-weight: bold; + margin-top: 8pt; + margin-left: 5pt; +} +#fedora-project-download dd { + padding: 0; + margin: 10px 20px 0; +} + +code.screen, pre.screen { + font-family: monospace; + font-size: 1em; + display: block; + padding: 5pt; + border: 1px dashed gray; + margin: 0.5em 2em; +} +#fedora-project code.screen { + margin: 0; +} + +/* +#fedora-content a:link:after, #fedora-content a:visited:after { + content: " (" attr(href) ") "; + font-size: 80%; +} +*/ +.navheader table, .navheader table td { + border: 0 !important; +} diff --git a/scripts/planet/people/images/blue.png b/scripts/planet/people/images/blue.png new file mode 100644 index 0000000..6987cab Binary files /dev/null and b/scripts/planet/people/images/blue.png differ diff --git a/scripts/planet/people/images/corner-bl.png b/scripts/planet/people/images/corner-bl.png new file mode 100644 index 0000000..58d269c Binary files /dev/null and b/scripts/planet/people/images/corner-bl.png differ diff --git a/scripts/planet/people/images/corner-br.png b/scripts/planet/people/images/corner-br.png new file mode 100644 index 0000000..c03dd92 Binary files /dev/null and b/scripts/planet/people/images/corner-br.png differ diff --git a/scripts/planet/people/images/corner-tl.png b/scripts/planet/people/images/corner-tl.png new file mode 100644 index 0000000..08ab7a3 Binary files /dev/null and b/scripts/planet/people/images/corner-tl.png differ diff --git a/scripts/planet/people/images/corner-tr.png b/scripts/planet/people/images/corner-tr.png new file mode 100644 index 0000000..b279db2 Binary files /dev/null and b/scripts/planet/people/images/corner-tr.png differ diff --git a/scripts/planet/people/images/favicon.ico b/scripts/planet/people/images/favicon.ico new file mode 100644 index 0000000..d1ae2d2 Binary files /dev/null and b/scripts/planet/people/images/favicon.ico differ diff --git a/scripts/planet/people/images/header-download.png b/scripts/planet/people/images/header-download.png new file mode 100644 index 0000000..a1cf3e5 Binary files /dev/null and b/scripts/planet/people/images/header-download.png differ diff --git a/scripts/planet/people/images/header-faq.png b/scripts/planet/people/images/header-faq.png new file mode 100644 index 0000000..1e7c3c9 Binary files /dev/null and b/scripts/planet/people/images/header-faq.png differ diff --git a/scripts/planet/people/images/header-fedora_logo.png b/scripts/planet/people/images/header-fedora_logo.png new file mode 100644 index 0000000..552f201 Binary files /dev/null and b/scripts/planet/people/images/header-fedora_logo.png differ diff --git a/scripts/planet/people/images/header-projects.png b/scripts/planet/people/images/header-projects.png new file mode 100644 index 0000000..aad307e Binary files /dev/null and b/scripts/planet/people/images/header-projects.png differ diff --git a/scripts/planet/people/images/heads/default.png b/scripts/planet/people/images/heads/default.png new file mode 100644 index 0000000..407185b Binary files /dev/null and b/scripts/planet/people/images/heads/default.png differ diff --git a/scripts/planet/people/images/heads/fdp.png b/scripts/planet/people/images/heads/fdp.png new file mode 100644 index 0000000..5d00abe Binary files /dev/null and b/scripts/planet/people/images/heads/fdp.png differ diff --git a/scripts/planet/people/images/heads/map_brazil_fedora_small.png b/scripts/planet/people/images/heads/map_brazil_fedora_small.png new file mode 100644 index 0000000..7362552 Binary files /dev/null and b/scripts/planet/people/images/heads/map_brazil_fedora_small.png differ diff --git a/scripts/planet/people/images/intro-computer.png b/scripts/planet/people/images/intro-computer.png new file mode 100644 index 0000000..9298aec Binary files /dev/null and b/scripts/planet/people/images/intro-computer.png differ diff --git a/scripts/planet/people/images/intro-download.png b/scripts/planet/people/images/intro-download.png new file mode 100644 index 0000000..c77db0b Binary files /dev/null and b/scripts/planet/people/images/intro-download.png differ diff --git a/scripts/planet/people/images/logo-spacer.png b/scripts/planet/people/images/logo-spacer.png new file mode 100644 index 0000000..a104f55 Binary files /dev/null and b/scripts/planet/people/images/logo-spacer.png differ diff --git a/scripts/planet/people/images/logo.png b/scripts/planet/people/images/logo.png new file mode 100644 index 0000000..f277bf9 Binary files /dev/null and b/scripts/planet/people/images/logo.png differ diff --git a/scripts/planet/people/images/mainBack.png b/scripts/planet/people/images/mainBack.png new file mode 100644 index 0000000..1372780 Binary files /dev/null and b/scripts/planet/people/images/mainBack.png differ diff --git a/scripts/planet/people/images/people-entry-bottom-center.png b/scripts/planet/people/images/people-entry-bottom-center.png new file mode 100644 index 0000000..8d8ee6a Binary files /dev/null and b/scripts/planet/people/images/people-entry-bottom-center.png differ diff --git a/scripts/planet/people/images/people-entry-bottom-left.png b/scripts/planet/people/images/people-entry-bottom-left.png new file mode 100644 index 0000000..1aadc48 Binary files /dev/null and b/scripts/planet/people/images/people-entry-bottom-left.png differ diff --git a/scripts/planet/people/images/people-entry-bottom-right.png b/scripts/planet/people/images/people-entry-bottom-right.png new file mode 100644 index 0000000..047c908 Binary files /dev/null and b/scripts/planet/people/images/people-entry-bottom-right.png differ diff --git a/scripts/planet/people/images/people-entry-center-left.png b/scripts/planet/people/images/people-entry-center-left.png new file mode 100644 index 0000000..9da8d17 Binary files /dev/null and b/scripts/planet/people/images/people-entry-center-left.png differ diff --git a/scripts/planet/people/images/people-entry-center-right.png b/scripts/planet/people/images/people-entry-center-right.png new file mode 100644 index 0000000..379c8c0 Binary files /dev/null and b/scripts/planet/people/images/people-entry-center-right.png differ diff --git a/scripts/planet/people/images/people-entry-group-date-background.png b/scripts/planet/people/images/people-entry-group-date-background.png new file mode 100644 index 0000000..f029a67 Binary files /dev/null and b/scripts/planet/people/images/people-entry-group-date-background.png differ diff --git a/scripts/planet/people/images/people-entry-group-date-header.png b/scripts/planet/people/images/people-entry-group-date-header.png new file mode 100644 index 0000000..47ee607 Binary files /dev/null and b/scripts/planet/people/images/people-entry-group-date-header.png differ diff --git a/scripts/planet/people/images/people-entry-top-center.png b/scripts/planet/people/images/people-entry-top-center.png new file mode 100644 index 0000000..6b3b33a Binary files /dev/null and b/scripts/planet/people/images/people-entry-top-center.png differ diff --git a/scripts/planet/people/images/people-entry-top-left.png b/scripts/planet/people/images/people-entry-top-left.png new file mode 100644 index 0000000..007a1e2 Binary files /dev/null and b/scripts/planet/people/images/people-entry-top-left.png differ diff --git a/scripts/planet/people/images/people-entry-top-right.png b/scripts/planet/people/images/people-entry-top-right.png new file mode 100644 index 0000000..bfb41fb Binary files /dev/null and b/scripts/planet/people/images/people-entry-top-right.png differ diff --git a/scripts/planet/people/images/people-header.png b/scripts/planet/people/images/people-header.png new file mode 100644 index 0000000..d1fcbbc Binary files /dev/null and b/scripts/planet/people/images/people-header.png differ diff --git a/scripts/planet/people/images/people-logo.png b/scripts/planet/people/images/people-logo.png new file mode 100644 index 0000000..6404e08 Binary files /dev/null and b/scripts/planet/people/images/people-logo.png differ diff --git a/scripts/planet/people/images/people-logo.png.bak b/scripts/planet/people/images/people-logo.png.bak new file mode 100644 index 0000000..1543ebe Binary files /dev/null and b/scripts/planet/people/images/people-logo.png.bak differ diff --git a/scripts/planet/people/images/people-sidebar-header.png b/scripts/planet/people/images/people-sidebar-header.png new file mode 100644 index 0000000..c820256 Binary files /dev/null and b/scripts/planet/people/images/people-sidebar-header.png differ diff --git a/scripts/planet/people/images/planet.png b/scripts/planet/people/images/planet.png new file mode 100644 index 0000000..9606a0c Binary files /dev/null and b/scripts/planet/people/images/planet.png differ diff --git a/scripts/planet/people/templates/atom.xml.tmpl b/scripts/planet/people/templates/atom.xml.tmpl new file mode 100644 index 0000000..578f075 --- /dev/null +++ b/scripts/planet/people/templates/atom.xml.tmpl @@ -0,0 +1,64 @@ + + + + <TMPL_VAR name> + "/> + "/> + + + + + + xml:lang=""> + xml:lang="<TMPL_VAR title_language>"</TMPL_IF>><TMPL_VAR title ESCAPE="HTML"> + "/> + + + xml:lang=""> + + <img src="" width="" height="" alt="" style="float: right;"> + + + + + + + + + + + + + + + + + + + + + + <TMPL_VAR channel_title ESCAPE="HTML"> + + <TMPL_VAR channel_name ESCAPE="HTML"> + + + + + "/> + + + + + + + + + + + + + + + + diff --git a/scripts/planet/people/templates/foafroll.xml.tmpl b/scripts/planet/people/templates/foafroll.xml.tmpl new file mode 100644 index 0000000..b2cecf3 --- /dev/null +++ b/scripts/planet/people/templates/foafroll.xml.tmpl @@ -0,0 +1,31 @@ + + + + + + " /> + + + + + + + "> + + + " /> + + + + + + + + + diff --git a/scripts/planet/people/templates/heads.html.tmpl b/scripts/planet/people/templates/heads.html.tmpl new file mode 100644 index 0000000..1b3c377 --- /dev/null +++ b/scripts/planet/people/templates/heads.html.tmpl @@ -0,0 +1,111 @@ + + + +Planet Fedora + + + + + + + + + + + + + + +
+ + + + + + +
+
+
+ + +
+
+
+ +
+ + + + diff --git a/scripts/planet/people/templates/index.html.tmpl b/scripts/planet/people/templates/index.html.tmpl new file mode 100644 index 0000000..ecfae31 --- /dev/null +++ b/scripts/planet/people/templates/index.html.tmpl @@ -0,0 +1,125 @@ + + + +Planet Fedora + + + + + + + + + + + + + +
+ + + + + + +
+
+ + + +
+ +
+

+ + + +
+
+
+ + +
Untitled Post
+
+ +
+ +
+ +
+ +
+
+ +
+
+
+
+ +
+ + + + diff --git a/scripts/planet/people/templates/opml.xml.tmpl b/scripts/planet/people/templates/opml.xml.tmpl new file mode 100644 index 0000000..50bbabe --- /dev/null +++ b/scripts/planet/people/templates/opml.xml.tmpl @@ -0,0 +1,16 @@ + + + + <TMPL_VAR name> + + + + + + + + + " xmlUrl=""/> + + + diff --git a/scripts/planet/people/templates/rss10.xml.tmpl b/scripts/planet/people/templates/rss10.xml.tmpl new file mode 100644 index 0000000..a8d6bc0 --- /dev/null +++ b/scripts/planet/people/templates/rss10.xml.tmpl @@ -0,0 +1,33 @@ + + +"> + <TMPL_VAR name> + + Fedora People: http://planet.fedoraproject.org + + + + " /> + + + + + + +"> + <TMPL_VAR channel_name><TMPL_IF title>: <TMPL_VAR title></TMPL_IF> + + + + + + + + + diff --git a/scripts/planet/people/templates/rss20.xml.tmpl b/scripts/planet/people/templates/rss20.xml.tmpl new file mode 100644 index 0000000..6ca5dee --- /dev/null +++ b/scripts/planet/people/templates/rss20.xml.tmpl @@ -0,0 +1,27 @@ + + + + <TMPL_VAR name> + + en + Fedora People: http://planet.fedoraproject.org + + + + <TMPL_VAR channel_name><TMPL_IF title>: <TMPL_VAR title></TMPL_IF> + + + + + + + <img src="" width="" height="" alt="" style="float: right;"> + + + + + + + + + diff --git a/scripts/planet/planetconfigbuilder.py b/scripts/planet/planetconfigbuilder.py new file mode 100755 index 0000000..cdb49a7 --- /dev/null +++ b/scripts/planet/planetconfigbuilder.py @@ -0,0 +1,173 @@ +#!/usr/bin/python +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Copyright 2008 (c) Red Hat, Inc - written by Seth Vidal + +from ConfigParser import ConfigParser, ParsingError +import os +import os.path +import sys +import pwd +import time + +class Config(object): + def __init__(self, fn='/etc/planetbuilder.conf'): + """read in our config data""" + self.ignore_users = [] + self.banned_stanzas = ['Planet', 'main', 'DEFAULT'] + self.base_config = None + self.group = None + self.output = sys.stdout + self.output_fn = None + + cp = ConfigParser() + cp.read(fn) + if cp.has_section('main'): + if cp.has_option('main', 'base_config'): + self.base_config = cp.get('main', 'base_config') + if cp.has_option('main', 'group'): + self.group = cp.get('main', 'group') + + if cp.has_option('main', 'ignore_users'): + iu = cp.get('main', 'ignore_users') + iu = iu.replace(',',' ') + for user in iu.split(' '): + self.ignore_users.append(user) + if cp.has_option('main', 'banned_stanzas'): + bs = cp.get('main', 'banned_stanzas') + bs = bs.replace(',',' ') + for banned in bs.split(' '): + self.banned_stanzas.append(banned) + if cp.has_option('main', 'output'): + of = cp.get('main', 'output') + self.output = open(of, 'w') + self.output_fn = of + +def error_print(msg): + print >> sys.stderr, msg + +class PlanetBuilderException(Exception): + def __init__(self, value=None): + Exception.__init__(self) + self.value = value + + def __str__(self): + return "%s" %(self.value,) + + +class PlanetBuilder(object): + def __init__(self, config_file): + self.entries = {} + self.conf = Config(config_file) + + def add(self, entry): + if not entry.feed or not entry.name: + raise PlanetBuilderException, "entry %s lacks feed or name" % entry + + if entry.feed in self.conf.banned_stanzas: + raise PlanetBuilderException, "entry %s is in banned list" % entry + + if self.entries.has_key(entry.feed): + raise PlanetBuilderException, "entry %s already exists in list" % entry + + self.entries[entry.feed] = entry + + def compile(self): + result = "#planet config compiled on %s\n" % time.ctime() + result += "#using group %s and config %s\n" % (self.conf.group, self.conf.base_config) + if self.conf.base_config: + bc = open(self.conf.base_config, 'r').read() + result += bc + + for e in self.entries.values(): + e_format = "# Origin: %s\n" % (e.origin) + e_format += "[%s]\nname=%s\n" % (e.feed, e.name) + if e.face: + e_format += "face=%s\n" % (e.face) + result += e_format + result += "\n" + + self.result = result + + def produce_output(self): + self.conf.output.write(self.result) + self.conf.output.close() + +class PlanetEntry(object): + + def __init__(self, origin, feed=None, name=None, face=None): + self.origin = origin + self.feed = feed + self.name = name + if not name: + self.name = origin + self.face = face + + def __str__(self): + return '%s:%s' % (self.origin, self.feed) + +class PlanetFile(object): + def __init__(self, filename): + self.entries = [] + # open up with cp + cp = ConfigParser() + try: + cp.read(filename) + except ParsingError, e: + error_print("Problem parsing %s - %s" % (filename, str(e))) + return + + for s in cp.sections(): + name = face = None + if cp.has_option(s, 'name'): + name = cp.get(s, 'name') + if cp.has_option(s, 'face'): + face = cp.get(s, 'face') + e = PlanetEntry(filename, feed=s, name=name, face=face) + self.entries.append(e) + + def __iter__(self): + return self.entries.__iter__() + +def main(config_file='/etc/planetbuilder.conf'): + pb = PlanetBuilder(config_file) + + fn = '.planet' + if pb.conf.group: + fn = '.planet.%s' % pb.conf.group + + for (n, p, u, g, c, h, s) in pwd.getpwall(): + if u < 500: + continue + if n in pb.conf.ignore_users: + continue + + if os.path.exists(h + '/' + fn): + for entry in PlanetFile(h + '/' + fn): + pb.add(entry) + + pb.compile() + pb.produce_output() + print pb.conf.output_fn + + +if __name__ == "__main__": + if len(sys.argv) > 1: + main(sys.argv[1]) + else: + main() + + + +